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


Commits:
20eb34e0 by Felix Yan at 2023-09-15T15:51:27+03:00
upgpkg: 3.0.0-1

- - - - -


1 changed file:

- PKGBUILD


Changes:

=====================================
PKGBUILD
=====================================
@@ -1,38 +1,32 @@
 # Maintainer: Felix Yan <[email protected]>
 
 pkgname=python-semver
-pkgver=2.13.0
-pkgrel=6
+pkgver=3.0.0
+_commit=3a7680dc436211227c0aeae84c9b45e0b3345b8f
+pkgrel=1
 pkgdesc="Python helper for Semantic Versioning"
-url="https://github.com/k-bx/python-semver";
+url="https://github.com/python-semver/python-semver";
 license=('BSD')
 arch=('any')
 depends=('python')
-makedepends=('python-setuptools')
-checkdepends=('python-pytest-runner' 'python-pytest-cov')
-source=("$pkgname-$pkgver.tar.gz::https://github.com/k-bx/python-semver/archive/$pkgver.tar.gz";
-        
fix-tests-for-python-3-10.patch::https://github.com/python-semver/python-semver/commit/8d72677cf964365c8db033fbd436ff5dd342fb1b.patch)
-sha512sums=('ca0d408d8bb7305e90802ea04d935cd7b76b8f166a9ec97ed3427dbc2cf60eeca0b2d27ad0cb2f15f32f5b2589d6717a63717c463183374c5335bf79e1eec222'
-            
'f603b21f848e2271dfb3d368126cf24dac31d4489e5f846884e0e56290ea310602b477eef1d72b78341de7c3c7a34023cc686bfb6bae78124e839ed83a2836bf')
-
-prepare() {
-  cd "$srcdir"/python-semver-$pkgver
-  sed -i '/tests_require/d' setup.py
-  patch -p1 <"$srcdir"/fix-tests-for-python-3-10.patch
-}
+makedepends=('git' 'python-build' 'python-installer' 'python-setuptools' 
'python-setuptools-scm'
+             'python-wheel')
+checkdepends=('python-pytest' 'python-pytest-cov')
+source=("git+https://github.com/python-semver/python-semver.git#commit=$_commit";)
+sha512sums=('SKIP')
 
 build() {
-  cd "$srcdir"/python-semver-$pkgver
-  python setup.py build
+  cd python-semver
+  python -m build -nw
 }
 
 check() {
-  cd "$srcdir"/python-semver-$pkgver
-  python setup.py pytest
+  cd python-semver
+  pytest
 }
 
 package() {
-  cd python-semver-$pkgver
-  python setup.py install --root="$pkgdir" --optimize=1
-  install -Dm644 LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.txt
+  cd python-semver
+  python -m installer -d "$pkgdir" dist/*.whl
+  install -Dm644 LICENSE.txt -t "$pkgdir"/usr/share/licenses/$pkgname/
 }



View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/python-semver/-/commit/20eb34e0bed1e87c700b8db6da9b3d2ef78f863d

-- 
View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/python-semver/-/commit/20eb34e0bed1e87c700b8db6da9b3d2ef78f863d
You're receiving this email because of your account on gitlab.archlinux.org.


Reply via email to