Felix Yan pushed to branch main at Arch Linux / Packaging / Packages / 
python-pint


Commits:
aa699af2 by loqs at 2024-03-14T13:57:54+00:00
Backport fixes for test failures.

https://github.com/hgrecco/pint/commit/1b2b0592f88a1c9fdf9b5649ebade19fa81adea4
https://github.com/hgrecco/pint/commit/833a5ca4dfb11eb3670c600b63ad67a061251d8a
https://github.com/hgrecco/pint/commit/b3b18277ecc682bff7ca1fa9e48992f7ec68e47f
Fixes 
https://gitlab.archlinux.org/archlinux/packaging/packages/python-pint/-/issues/1.

- - - - -
2c8a13ac by loqs at 2024-03-14T13:58:00+00:00
Change to a PEP 517 based workflow

- - - - -
dfaea014 by loqs at 2024-03-14T13:58:02+00:00
Change to SPDX license identifier

https://github.com/hgrecco/pint/blob/0.19.2/LICENSE

- - - - -
258a7984 by loqs at 2024-03-14T16:37:51+00:00
upgpkg: python-pint 0.22

Related 
https://gitlab.archlinux.org/archlinux/packaging/packages/python-xarray/-/issues/1.

- - - - -
a026ecc3 by loqs at 2024-03-14T16:38:46+00:00
upgpkg: python-pint 0.23

- - - - -


1 changed file:

- PKGBUILD


Changes:

=====================================
PKGBUILD
=====================================
@@ -2,30 +2,31 @@
 # Contributor: Matthew Sloan [email protected]
 
 pkgname=python-pint
-pkgver=0.19.2
-pkgrel=3
+pkgver=0.23
+pkgrel=1
 pkgdesc="A unit library for Python"
 arch=('any')
-license=('BSD')
+license=('BSD-3-Clause')
 url="https://pint.readthedocs.org";
 depends=('python')
-makedepends=('python-setuptools-scm')
-checkdepends=('python-pytest-subtests' 'python-numpy' 'python-uncertainties')
+makedepends=('python-setuptools-scm' 'python-setuptools' 'python-wheel' 
'python-build' 'python-installer')
+checkdepends=(python-pytest-benchmark 'python-pytest-subtests' 'python-numpy' 
'python-uncertainties')
 source=("https://pypi.io/packages/source/P/Pint/Pint-$pkgver.tar.gz";)
-sha512sums=('9f4a00142159d298bf09fdc8ed2c4367a9ef2328663466b43bb4fbc31361c4fa63b1f0d5dec6a71fc5e50ddff22cb86e37abac5e75a13569c5332bb52884c7ee')
+sha512sums=('80abfedab0c2b959c84958ad731a8e03469991b7a3970d99e344b513237b96c764098cdfe9e11f94c4208667fd965bd1cc043d820450d45cbb6a914ee1742ac6')
 
-prepare() {
+build() {
   cd Pint-$pkgver
-  sed -i 's/pkg_resources.extern.//' pint/quantity.py
+  python -m build --wheel --no-isolation
 }
 
 check() {
   cd Pint-$pkgver
-  pytest
+  # https://github.com/hgrecco/pint/issues/1898
+  pytest -k 'not test_load_definitions_stage_2'
 }
 
 package() {
   cd Pint-$pkgver
-  python setup.py install --root="$pkgdir" --optimize=1
+  python -m installer --destdir="$pkgdir" dist/*.whl
   install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
 }



View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/python-pint/-/compare/499fc6261f36d8b41d64b79980324ec3fa1a7a0e...a026ecc333a9e61280ea5205f550c5af49b02033

-- 
View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/python-pint/-/compare/499fc6261f36d8b41d64b79980324ec3fa1a7a0e...a026ecc333a9e61280ea5205f550c5af49b02033
You're receiving this email because of your account on gitlab.archlinux.org.


Reply via email to