diff options
author | GI_Jack | 2023-05-13 21:20:34 -0700 |
---|---|---|
committer | GI_Jack | 2023-05-13 21:20:34 -0700 |
commit | 85caeedad926563f85a36fce07e9e22aae1cdc81 (patch) | |
tree | 36e1c9aa6b1c6d8f78afeebaa47743f4a8e4fb08 /PKGBUILD | |
parent | e7254c96de92b17b1b18a10abfb095b0d735107c (diff) | |
download | aur-python-travispy.tar.gz |
updated for moden packaging guidelines
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 16 |
1 files changed, 9 insertions, 7 deletions
@@ -3,20 +3,22 @@ pkgname=python-travispy _pypiname=travispy pkgver=0.3.5 -pkgrel=1 +pkgrel=2 pkgdesc="TravisPy is a Python API for Travis CI. It follows the official API and is implemented as similar as possible to Ruby implementation." url="https://github.com/menegazzo/travispy" arch=('any') license=('GPLv3') depends=('python-coverage' 'python-pytest' 'python-pytest-rerunfailures' 'python-requests') -makedepends=('python-setuptools') +makedepends=('python-build' 'python-installer' 'python-wheel') source=(${_pypiname}-${pkgver}.tar.gz::"https://github.com/menegazzo/travispy/archive/v${pkgver}.tar.gz") sha256sums=('85293ac89d2cea0244c2a9cb64e447096993ac53fa41cc3ab8ae18d6a4d575b0') -package_python-travispy() { - cd ${_pypiname}-${pkgver} - python setup.py install -O1 --root="${pkgdir}" --prefix=/usr +build() { + cd "${_pypiname}-${pkgver}" + python -m build --wheel --no-isolation } - - +package() { + cd "${_pypiname}-${pkgver}" + python -m installer --destdir="${pkgdir}" dist/*.whl +} |