Antonio Rojas pushed to branch main at Arch Linux / Packaging / Packages / 
python-pep440


Commits:
50b54f6c by Antonio Rojas at 2024-04-20T23:33:56+02:00
upgpkg: 0.1.2-4: Run tests

- - - - -


2 changed files:

- .SRCINFO
- PKGBUILD


Changes:

=====================================
.SRCINFO
=====================================
@@ -1,16 +1,17 @@
 pkgbase = python-pep440
        pkgdesc = A simple package with utils to check whether versions number 
match PEP 440
        pkgver = 0.1.2
-       pkgrel = 3
+       pkgrel = 4
        url = https://github.com/Carreau/pep440
        arch = any
-       license = custom
+       license = MIT
        checkdepends = python-pytest-console-scripts
+       makedepends = git
        makedepends = python-build
-       makedepends = python-installer
        makedepends = python-flit-core
+       makedepends = python-installer
        depends = python
-       source = https://pypi.io/packages/source/p/pep440/pep440-0.1.2.tar.gz
-       sha256sums = 
58b37246cc2b13fee1ca2a3c092cb3704d21ecf621a5bdbb168e44e697f6d04d
+       source = git+https://github.com/Carreau/pep440#tag=0.1.2
+       sha256sums = 
3216a273e9ab81adaa870977252c1cb22b7c21b2d6d0fec89b8485cac0ed94c2
 
 pkgname = python-pep440


=====================================
PKGBUILD
=====================================
@@ -1,26 +1,37 @@
 # Maintainer: Antonio Rojas <aro...@archlinux.org>
 
-_pipname=pep440
-pkgname=python-$_pipname
+_pyname=pep440
+pkgname=python-$_pyname
 pkgver=0.1.2
-pkgrel=3
+pkgrel=4
 pkgdesc='A simple package with utils to check whether versions number match 
PEP 440'
 arch=(any)
 url='https://github.com/Carreau/pep440'
-license=(custom)
+license=(MIT)
 depends=(python)
-makedepends=(python-build python-installer python-flit-core)
+makedepends=(git
+             python-build
+             python-flit-core
+             python-installer)
 checkdepends=(python-pytest-console-scripts)
-source=(https://pypi.io/packages/source/p/$_pipname/$_pipname-$pkgver.tar.gz)
-sha256sums=('58b37246cc2b13fee1ca2a3c092cb3704d21ecf621a5bdbb168e44e697f6d04d')
+source=(git+https://github.com/Carreau/pep440#tag=$pkgver)
+sha256sums=('3216a273e9ab81adaa870977252c1cb22b7c21b2d6d0fec89b8485cac0ed94c2')
 
 build() {
-  cd $_pipname-$pkgver
+  cd $_pyname
   python -m build --wheel --no-isolation
 }
 
+check() {
+  cd $_pyname
+  python -m venv --system-site-packages test-env
+  test-env/bin/python -m installer dist/*.whl
+  PATH="$PWD/test-env/bin:$PATH" \
+  test-env/bin/python -m pytest -v
+}
+
 package() {
-  cd $_pipname-$pkgver
+  cd $_pyname
   python -m installer --destdir="$pkgdir" dist/*.whl
 
   install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE



View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/python-pep440/-/commit/50b54f6ce1c3744b747126a68815d6a27bdf86b9

-- 
This project does not include diff previews in email notifications.
View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/python-pep440/-/commit/50b54f6ce1c3744b747126a68815d6a27bdf86b9
You're receiving this email because of your account on gitlab.archlinux.org.


Reply via email to