David Runge pushed to branch main at Arch Linux / Packaging / Packages / 
python-nptyping


Commits:
fa79ca2e by David Runge at 2024-04-20T16:37:05+02:00
Abstract project name with custom variable

Signed-off-by: David Runge <dv...@archlinux.org>

- - - - -
2fdf3836 by David Runge at 2024-04-20T16:37:26+02:00
Simplify source by reusing url variable

Signed-off-by: David Runge <dv...@archlinux.org>

- - - - -
8e1650c7 by David Runge at 2024-04-20T16:38:31+02:00
Install license file.

Signed-off-by: David Runge <dv...@archlinux.org>

- - - - -
a9221492 by David Runge at 2024-04-20T16:39:13+02:00
Remove unnecessary quotes and curly braces

Signed-off-by: David Runge <dv...@archlinux.org>

- - - - -
3de0225a by David Runge at 2024-04-20T16:41:06+02:00
Use bash arrays with one entry per line for easier handling

Signed-off-by: David Runge <dv...@archlinux.org>

- - - - -
1325c2ee by David Runge at 2024-04-20T16:50:01+02:00
upgpkg: 2.5.0-4: Rebuild against Python 3.12

- - - - -


2 changed files:

- .SRCINFO
- PKGBUILD


Changes:

=====================================
.SRCINFO
=====================================
@@ -1,15 +1,19 @@
 pkgbase = python-nptyping
        pkgdesc = Type hints for Numpy
        pkgver = 2.5.0
-       pkgrel = 3
+       pkgrel = 4
        url = https://github.com/ramonhagenaars/nptyping
        arch = x86_64
        license = MIT
+       checkdepends = python-feedparser
+       checkdepends = python-pandas
        checkdepends = python-pytest
+       checkdepends = python-pytest-mypy
        makedepends = python-build
        makedepends = python-installer
        makedepends = python-setuptools
        makedepends = python-wheel
+       depends = python
        depends = python-numpy
        depends = python-typing_extensions
        source = 
python-nptyping-2.5.0.tar.gz::https://github.com/ramonhagenaars/nptyping/archive/v2.5.0.tar.gz


=====================================
PKGBUILD
=====================================
@@ -2,24 +2,58 @@
 # Contributor: Grey Christoforo <grey at christoforo dot net>
 
 pkgname=python-nptyping
+_name="${pkgname#python-}"
 pkgver=2.5.0
-pkgrel=3
+pkgrel=4
 pkgdesc='Type hints for Numpy'
 url="https://github.com/ramonhagenaars/nptyping";
 arch=(x86_64)
 license=(MIT)
-depends=(python-numpy python-typing_extensions)
-makedepends=(python-build python-installer python-setuptools python-wheel)
-checkdepends=(python-pytest)
-source=("${pkgname}-${pkgver}.tar.gz::https://github.com/ramonhagenaars/nptyping/archive/v${pkgver}.tar.gz";)
+depends=(
+  python
+  python-numpy
+  python-typing_extensions
+)
+makedepends=(
+  python-build
+  python-installer
+  python-setuptools
+  python-wheel
+)
+checkdepends=(
+  python-feedparser
+  python-pandas
+  python-pytest
+  python-pytest-mypy
+)
+source=($pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz)
 
sha512sums=('2cde9c5f7694d4f916b85c93b86df7f72709a70b2ffa91b7bbc98c5884236f5b36bb545a89c37e8c02a9b460065c97151d77c64f8d93b92fd93bcff406f039d9')
 
 build() {
-  cd nptyping-${pkgver}
+  cd $_name-$pkgver
   python -m build --wheel --no-isolation
 }
 
+check() {
+  local pytest_options=(
+    -vv
+    --ignore tests/test_beartype.py  # python-beartype not packaged
+    --ignore tests/test_mypy.py  # requires outdated version
+    --ignore tests/test_pyright.py  # pyright not properly detected and likely 
not useful either way
+    # unclear test failures, needs upstream tickets
+    --deselect 
tests/pandas_/test_mypy_dataframe.py::MyPyDataFrameTest::test_mypy_accepts_dataframe
+    --deselect 
tests/pandas_/test_mypy_dataframe.py::MyPyDataFrameTest::test_mypy_disapproves_dataframe_with_wrong_function_arguments
+    --deselect 
tests/pandas_/test_mypy_dataframe.py::MyPyDataFrameTest::test_mypy_knows_of_dataframe_methods
+    --deselect tests/test_package_info.py::PackageInfoTest::test_version_bump
+    --deselect tests/test_typeguard.py::TypeguardTest::test_success
+  )
+
+  cd $_name-$pkgver
+  pytest "${pytest_options[@]}"
+}
+
 package() {
-  cd nptyping-${pkgver}
+  cd $_name-$pkgver
   python -m installer --destdir="$pkgdir" dist/*.whl
+  install -vDm 644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname/"
 }



View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/python-nptyping/-/compare/6435dff35a27c55e17cde7816f44ad91640ae727...1325c2ee004c66c17138c43c9041ca7d6cd815d9

-- 
This project does not include diff previews in email notifications.
View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/python-nptyping/-/compare/6435dff35a27c55e17cde7816f44ad91640ae727...1325c2ee004c66c17138c43c9041ca7d6cd815d9
You're receiving this email because of your account on gitlab.archlinux.org.


Reply via email to