2013-09-23 21:31:56 +00:00
|
|
|
# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
|
|
|
|
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
|
2019-06-11 00:44:53 +03:00
|
|
|
pkgname=py3-doit
|
2013-09-23 21:31:56 +00:00
|
|
|
_pkgname=doit
|
2022-07-25 23:30:42 +02:00
|
|
|
pkgver=0.36.0
|
2024-08-30 23:22:26 +02:00
|
|
|
pkgrel=5
|
2013-09-23 21:31:56 +00:00
|
|
|
pkgdesc="A Python Automation Tool"
|
2019-06-05 15:07:14 -03:00
|
|
|
url="https://pydoit.org/"
|
2022-07-07 13:16:25 +02:00
|
|
|
arch="noarch"
|
2013-09-23 21:33:22 +00:00
|
|
|
license="MIT"
|
2022-11-09 01:14:04 +00:00
|
|
|
depends="py3-importlib-metadata py3-cloudpickle python3"
|
2024-08-30 23:22:26 +02:00
|
|
|
makedepends="py3-setuptools py3-gpep517"
|
2023-04-21 23:46:55 +02:00
|
|
|
subpackages="$pkgname-pyc"
|
2016-07-06 19:34:49 +02:00
|
|
|
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
|
2016-11-08 21:41:31 +00:00
|
|
|
builddir="$srcdir"/$_pkgname-$pkgver
|
2013-09-23 21:31:56 +00:00
|
|
|
|
2019-06-11 00:44:53 +03:00
|
|
|
replaces="py-doit" # Backwards compatibility
|
|
|
|
provides="py-doit=$pkgver-r$pkgrel" # Backwards compatibility
|
|
|
|
|
2013-09-23 21:31:56 +00:00
|
|
|
build() {
|
2024-08-30 23:22:26 +02:00
|
|
|
gpep517 build-wheel \
|
|
|
|
--wheel-dir .dist \
|
|
|
|
--output-fd 3 3>&1 >&2
|
2013-09-23 21:31:56 +00:00
|
|
|
}
|
|
|
|
|
2022-07-25 23:30:42 +02:00
|
|
|
check() {
|
2024-08-30 23:22:26 +02:00
|
|
|
python3 -m venv --clear --without-pip --system-site-packages .testenv
|
|
|
|
gpep517 install-wheel --destdir .testenv --prefix '' .dist/*.whl
|
|
|
|
.testenv/bin/python3 -m doit --version
|
2022-07-25 23:30:42 +02:00
|
|
|
}
|
|
|
|
|
2013-09-23 21:31:56 +00:00
|
|
|
package() {
|
2024-08-30 23:22:26 +02:00
|
|
|
gpep517 install-wheel --destdir "$pkgdir" \
|
|
|
|
.dist/*.whl
|
2013-09-23 21:31:56 +00:00
|
|
|
}
|
|
|
|
|
2022-07-25 23:30:42 +02:00
|
|
|
sha512sums="
|
|
|
|
d4caa31701755c7f59213dde0f89fd3616c0c01b7f06245cbfd9f1a315d503e62f3556c3b86685cd0ebfcffcc9cae0987ca150f037aa7b3cd960439a1191be42 doit-0.36.0.tar.gz
|
|
|
|
"
|