[arch-commits] Commit in python-pytest-socket/repos/community-staging-any (2 files)

Felix Yan felixonmars at gemini.archlinux.org
Thu Dec 2 23:28:04 UTC 2021


    Date: Thursday, December 2, 2021 @ 23:28:04
  Author: felixonmars
Revision: 1063031

archrelease: copy trunk to community-staging-any

Added:
  python-pytest-socket/repos/community-staging-any/PKGBUILD
    (from rev 1063029, python-pytest-socket/trunk/PKGBUILD)
Deleted:
  python-pytest-socket/repos/community-staging-any/PKGBUILD

----------+
 PKGBUILD |   90 ++++++++++++++++++++++++++++++-------------------------------
 1 file changed, 45 insertions(+), 45 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2021-12-02 23:28:03 UTC (rev 1063030)
+++ PKGBUILD	2021-12-02 23:28:04 UTC (rev 1063031)
@@ -1,45 +0,0 @@
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-
-pkgname=python-pytest-socket
-pkgver=0.4.1
-pkgrel=2
-pkgdesc='Pytest Plugin to disable socket calls during tests'
-arch=('any')
-license=('MIT')
-url='https://github.com/miketheman/pytest-socket'
-depends=('python-pytest')
-makedepends=('python-dephell')
-checkdepends=('python-asynctest' 'python-pytest-cov' 'python-pytest-flake8' 'python-pytest-httpbin'
-              'python-starlette')
-source=("https://github.com/miketheman/pytest-socket/archive/$pkgver/$pkgname-$pkgver.tar.gz")
-sha512sums=('3a9cda0dd91e43d83c2a28c6e4e068f6c152c129d6f558de1aa6764d508cf430406ab3943a4b76ebdfb017c59f1ac7b55c570d38938f1b94ccf1de09d087924e')
-
-prepare() {
-  cd pytest-socket-$pkgver
-  dephell deps convert --from pyproject.toml --to setup.py
-
-  # dephell does not generate py_modules into setup.py, so the resulting installation is missing
-  # the module source code itself. Patching it here as a workaround until we fix it properly.
-  sed -i '/license=/a \    py_modules=["pytest_socket"],' setup.py
-}
-
-build() {
-  cd pytest-socket-$pkgver
-  python setup.py build
-}
-
-check() {
-  # Hack entry points by installing it
-
-  cd pytest-socket-$pkgver
-  python setup.py install --root="$PWD/tmp_install" --optimize=1
-  PYTHONPATH="$PWD/tmp_install/usr/lib/python3.10/site-packages:$PYTHONPATH" pytest --deselect setup.py
-  }
-
-package() {
-  cd pytest-socket-$pkgver
-  python setup.py install --root="$pkgdir" --optimize=1
-  install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
-}
-
-# vim:set ts=2 sw=2 et:

Copied: python-pytest-socket/repos/community-staging-any/PKGBUILD (from rev 1063029, python-pytest-socket/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2021-12-02 23:28:04 UTC (rev 1063031)
@@ -0,0 +1,45 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-pytest-socket
+pkgver=0.4.1
+pkgrel=3
+pkgdesc='Pytest Plugin to disable socket calls during tests'
+arch=('any')
+license=('MIT')
+url='https://github.com/miketheman/pytest-socket'
+depends=('python-pytest')
+makedepends=('python-dephell')
+checkdepends=('python-asynctest' 'python-pytest-cov' 'python-pytest-flake8' 'python-pytest-httpbin'
+              'python-starlette')
+source=("https://github.com/miketheman/pytest-socket/archive/$pkgver/$pkgname-$pkgver.tar.gz")
+sha512sums=('3a9cda0dd91e43d83c2a28c6e4e068f6c152c129d6f558de1aa6764d508cf430406ab3943a4b76ebdfb017c59f1ac7b55c570d38938f1b94ccf1de09d087924e')
+
+prepare() {
+  cd pytest-socket-$pkgver
+  dephell deps convert --from pyproject.toml --to setup.py
+
+  # dephell does not generate py_modules into setup.py, so the resulting installation is missing
+  # the module source code itself. Patching it here as a workaround until we fix it properly.
+  sed -i '/license=/a \    py_modules=["pytest_socket"],' setup.py
+}
+
+build() {
+  cd pytest-socket-$pkgver
+  python setup.py build
+}
+
+check() {
+  # Hack entry points by installing it
+
+  cd pytest-socket-$pkgver
+  python setup.py install --root="$PWD/tmp_install" --optimize=1
+  PYTHONPATH="$PWD/tmp_install/usr/lib/python3.10/site-packages:$PYTHONPATH" pytest --deselect setup.py
+  }
+
+package() {
+  cd pytest-socket-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+  install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+# vim:set ts=2 sw=2 et:



More information about the arch-commits mailing list