Skip to content
Snippets Groups Projects
Commit 8acec74e authored by Antoine Martin's avatar Antoine Martin Committed by Patrycja Rosa
Browse files

community/py3-shortuuid: move from testing, move to gpep517, take maintainership

parent 4fdd7b43
No related branches found
No related tags found
1 merge request!65252community/py3-django-extensions: fix for python 3.12
# Maintainer:
# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
pkgname=py3-shortuuid
_pkgname=shortuuid
pkgver=1.0.11
pkgrel=3
pkgrel=4
pkgdesc="Python library that generates short, pretty, unambiguous unique IDs"
url="https://pypi.org/project/shortuuid/"
arch="noarch"
license="BSD-3-Clause"
depends="python3"
makedepends="py3-setuptools"
checkdepends="py3-django"
makedepends="py3-setuptools py3-wheel py3-installer poetry py3-gpep517"
checkdepends="py3-pytest-django"
subpackages="$pkgname-pyc"
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
source="https://files.pythonhosted.org/packages/source/s/shortuuid/shortuuid-$pkgver.tar.gz"
builddir="$srcdir/shortuuid-$pkgver"
replaces="py-shortuuid" # Backwards compatibility
provides="py-shortuuid=$pkgver-r$pkgrel" # Backwards compatibility
build() {
python3 setup.py build
gpep517 build-wheel \
--wheel-dir .dist \
--output-fd 3 3>&1 >&2
}
check() {
python3 setup.py test
python3 -m venv --clear --without-pip --system-site-packages .testenv
.testenv/bin/python3 -m installer .dist/*.whl
.testenv/bin/python3 -m pytest -v
}
package() {
python3 setup.py install --skip-build --root="$pkgdir"
python3 -m installer -d "$pkgdir" \
.dist/*.whl
}
sha512sums="
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment