diff options
author | Mark Wagie | 2022-04-15 10:41:18 -0600 |
---|---|---|
committer | Mark Wagie | 2022-04-15 10:41:18 -0600 |
commit | 5fff9944e2b4055bd6e2928dadd220b582652667 (patch) | |
tree | 43209c78ad00e2f3fb8b44b6cc8d967d326245d1 | |
parent | 212a3d91e97c9fea76930f6cc984c0588cb98464 (diff) | |
download | aur-5fff9944e2b4055bd6e2928dadd220b582652667.tar.gz |
standards based build
-rw-r--r-- | .SRCINFO | 15 | ||||
-rw-r--r-- | PKGBUILD | 25 |
2 files changed, 21 insertions, 19 deletions
@@ -1,15 +1,20 @@ pkgbase = python-strenum pkgdesc = A Python Enum that inherits from str. pkgver = 0.4.7 - pkgrel = 1 + pkgrel = 2 url = https://github.com/irgeek/StrEnum arch = any license = MIT + checkdepends = python-pytest-black + checkdepends = python-pytest-cov + checkdepends = python-pytest-pylint + checkdepends = python-pytest-runner + makedepends = python-build + makedepends = python-installer makedepends = python-setuptools + makedepends = python-wheel depends = python - source = https://files.pythonhosted.org/packages/source/S/StrEnum/StrEnum-0.4.7.tar.gz - source = https://raw.githubusercontent.com/irgeek/StrEnum/v0.4.7/LICENSE - sha256sums = 6019e9cc1738af6a236c022b82184372178ecadf12438f11f5b680a02a462377 - sha256sums = bcd733d0a46522162b95dbab61f7cdc1c3e36861dfa127d68a4435240d36ad36 + source = StrEnum-0.4.7.tar.gz::https://github.com/irgeek/StrEnum/archive/refs/tags/v0.4.7.tar.gz + sha256sums = 996e2ebf5eab505dbfdf2c03ea0c54753dde352e1aa31a930b0e917962bedd2f pkgname = python-strenum @@ -2,33 +2,30 @@ pkgname=python-strenum _name=StrEnum pkgver=0.4.7 -pkgrel=1 +pkgrel=2 pkgdesc="A Python Enum that inherits from str." arch=('any') url="https://github.com/irgeek/StrEnum" license=('MIT') depends=('python') -makedepends=('python-setuptools') -source=("https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz" - "https://raw.githubusercontent.com/irgeek/StrEnum/v$pkgver/LICENSE") -sha256sums=('6019e9cc1738af6a236c022b82184372178ecadf12438f11f5b680a02a462377' - 'bcd733d0a46522162b95dbab61f7cdc1c3e36861dfa127d68a4435240d36ad36') +makedepends=('python-build' 'python-installer' 'python-setuptools' 'python-wheel') +checkdepends=('python-pytest-black' 'python-pytest-cov' 'python-pytest-pylint' 'python-pytest-runner') +source=("$_name-$pkgver.tar.gz::https://github.com/irgeek/StrEnum/archive/refs/tags/v$pkgver.tar.gz") +sha256sums=('996e2ebf5eab505dbfdf2c03ea0c54753dde352e1aa31a930b0e917962bedd2f') -prepare() { +build() { cd "$_name-$pkgver" - - # Does not require pytest-runner to build - sed -i '/setup_requires/d' ./setup.py + python -m build --wheel --no-isolation } -build() { +check() { cd "$_name-$pkgver" - python setup.py build + pytest } package() { cd "$_name-$pkgver" - python setup.py install --root="$pkgdir" --optimize=1 --skip-build + python -m installer --destdir="$pkgdir" dist/*.whl - install -Dm644 $srcdir/LICENSE -t "$pkgdir/usr/share/licenses/$pkgname" + install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname" } |