Date: Tuesday, January 31, 2023 @ 20:24:30
  Author: felixonmars
Revision: 1391545

archrelease: copy trunk to community-any

Added:
  python-pytest-mypy/repos/community-any/PKGBUILD
    (from rev 1391544, python-pytest-mypy/trunk/PKGBUILD)
Deleted:
  python-pytest-mypy/repos/community-any/PKGBUILD

----------+
 PKGBUILD |   74 ++++++++++++++++++++++++++++++-------------------------------
 1 file changed, 37 insertions(+), 37 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD    2023-01-31 20:24:17 UTC (rev 1391544)
+++ PKGBUILD    2023-01-31 20:24:30 UTC (rev 1391545)
@@ -1,37 +0,0 @@
-# Maintainer: Felix Yan <[email protected]>
-
-pkgname=python-pytest-mypy
-pkgver=0.10.3
-pkgrel=1
-pkgdesc='Mypy static type checker plugin for Pytest'
-arch=('any')
-license=('MIT')
-url='https://github.com/dbader/pytest-mypy'
-depends=('mypy' 'python-filelock' 'python-pytest')
-makedepends=('python-setuptools-scm')
-checkdepends=('python-pytest-xdist' 'python-pexpect')
-source=("https://github.com/dbader/pytest-mypy/archive/v$pkgver/$pkgname-$pkgver.tar.gz";)
-sha512sums=('74e0a6759cedd745ea57c0025698b09fe1297fc9fa344b72130a04f43ee06b7f4ceedf8473948429086f15fbb69efed51f5c934a83343cf7b4c92a5b400e6795')
-
-export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
-
-build() {
-  cd pytest-mypy-$pkgver
-  python setup.py build
-}
-
-check() {
-  # Hack entry points by installing it
-
-  cd pytest-mypy-$pkgver
-  python setup.py install --root="$PWD/tmp_install" --optimize=1
-  PYTHONPATH="$PWD/tmp_install/usr/lib/python3.10/site-packages:$PYTHONPATH" 
pytest
-}
-
-package() {
-  cd pytest-mypy-$pkgver
-  python setup.py install --root="$pkgdir" --optimize=1
-  install -D -m644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
-}
-
-# vim:set ts=2 sw=2 et:

Copied: python-pytest-mypy/repos/community-any/PKGBUILD (from rev 1391544, 
python-pytest-mypy/trunk/PKGBUILD)
===================================================================
--- PKGBUILD                            (rev 0)
+++ PKGBUILD    2023-01-31 20:24:30 UTC (rev 1391545)
@@ -0,0 +1,37 @@
+# Maintainer: Felix Yan <[email protected]>
+
+pkgname=python-pytest-mypy
+pkgver=0.10.3
+_commit=62c03db621543896ff6166dddd9e9e4f7c78ad7a
+pkgrel=2
+pkgdesc='Mypy static type checker plugin for Pytest'
+arch=('any')
+license=('MIT')
+url='https://github.com/dbader/pytest-mypy'
+depends=('mypy' 'python-filelock' 'python-pytest')
+makedepends=('git' 'python-setuptools-scm')
+checkdepends=('python-pytest-xdist' 'python-pexpect')
+source=("git+https://github.com/dbader/pytest-mypy.git#commit=$_commit";)
+sha512sums=('SKIP')
+
+build() {
+  cd pytest-mypy
+  python setup.py build
+}
+
+check() {
+  # Hack entry points by installing it
+
+  local site_packages=$(python -c "import site; 
print(site.getsitepackages()[0])")
+  cd pytest-mypy
+  python setup.py install --root="$PWD/tmp_install" --optimize=1
+  PYTHONPATH="$PWD/tmp_install$site_packages:$PYTHONPATH" pytest
+}
+
+package() {
+  cd pytest-mypy
+  python setup.py install --root="$pkgdir" --optimize=1
+  install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
+}
+
+# vim:set ts=2 sw=2 et:

Reply via email to