Daniel M. Capella pushed to branch main at Arch Linux / Packaging / Packages / python-hyperlink
Commits: d615b65c by Rafael Fontenelle at 2024-03-01T18:23:40-05:00 Remove pytest-runner, fix license, use pypa build and installer - - - - - a4925a0d by Daniel M. Capella at 2024-03-01T18:24:20-05:00 Add SRCINFO - - - - - 2 changed files: - + .SRCINFO - PKGBUILD Changes: ===================================== .SRCINFO ===================================== @@ -0,0 +1,17 @@ +pkgbase = python-hyperlink + pkgdesc = A featureful, correct URL for Python + pkgver = 21.0.0 + pkgrel = 5 + url = https://github.com/python-hyper/hyperlink + arch = any + license = MIT + checkdepends = python-pytest + makedepends = python-setuptools + makedepends = python-build + makedepends = python-installer + makedepends = python-wheel + depends = python-idna + source = https://github.com/python-hyper/hyperlink/archive/v21.0.0/python-hyperlink-21.0.0.tar.gz + sha512sums = fa6c9da0e414319bf20be66dc5593b3fe2e8772c62d36adf2de32c277e49469ada952ca591f41fae8d2229812d79f1e6b7eaa23e63995c7f02ce10aa5569cd61 + +pkgname = python-hyperlink ===================================== PKGBUILD ===================================== @@ -5,31 +5,28 @@ pkgver=21.0.0 pkgrel=5 pkgdesc='A featureful, correct URL for Python' arch=('any') -license=('BSD') +license=('MIT') url='https://github.com/python-hyper/hyperlink' depends=('python-idna') -makedepends=('python-setuptools') -checkdepends=('python-pytest-runner') +makedepends=('python-setuptools' 'python-build' 'python-installer' 'python-wheel') +checkdepends=('python-pytest') source=("https://github.com/python-hyper/hyperlink/archive/v$pkgver/$pkgname-$pkgver.tar.gz") sha512sums=('fa6c9da0e414319bf20be66dc5593b3fe2e8772c62d36adf2de32c277e49469ada952ca591f41fae8d2229812d79f1e6b7eaa23e63995c7f02ce10aa5569cd61') build() { cd hyperlink-$pkgver - python setup.py build + python -m build --wheel --no-isolation } check() { cd hyperlink-$pkgver - python setup.py pytest - - # clean-up non-reproducible files generated during test - rm -rf hyperlink/test/__pycache__/ + pytest } package() { cd hyperlink-$pkgver - python setup.py install --root="$pkgdir" --optimize=1 + python -m installer --destdir="$pkgdir" dist/*.whl install -D -m644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/ } View it on GitLab: https://gitlab.archlinux.org/archlinux/packaging/packages/python-hyperlink/-/compare/06ef58247935d75cebd146e90820e25b9f7830a3...a4925a0d2ee851f270f5b985cefe22fd62d9be0a -- View it on GitLab: https://gitlab.archlinux.org/archlinux/packaging/packages/python-hyperlink/-/compare/06ef58247935d75cebd146e90820e25b9f7830a3...a4925a0d2ee851f270f5b985cefe22fd62d9be0a You're receiving this email because of your account on gitlab.archlinux.org.
