diff options
author | prspkt <prspkt@protonmail.com> | 2019-07-04 23:44:20 +0300 |
---|---|---|
committer | prspkt <prspkt@protonmail.com> | 2019-07-04 23:44:26 +0300 |
commit | 44d3d96a441aa8c8b0693923579bfa15ca0e92b5 (patch) | |
tree | 2deab3dc20683df63029bdf49966791570b77c00 /testing/py3-vcversioner | |
parent | 383d0d046287779a61497cd803f03cbf5cc0a5b9 (diff) | |
download | aports-44d3d96a441aa8c8b0693923579bfa15ca0e92b5.tar.bz2 aports-44d3d96a441aa8c8b0693923579bfa15ca0e92b5.tar.xz |
testing/py3-vcversioner: modernize
* Switch source to github and run provided test suite.
Diffstat (limited to 'testing/py3-vcversioner')
-rw-r--r-- | testing/py3-vcversioner/APKBUILD | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/testing/py3-vcversioner/APKBUILD b/testing/py3-vcversioner/APKBUILD index eaa2077e1f..d3aa70f07f 100644 --- a/testing/py3-vcversioner/APKBUILD +++ b/testing/py3-vcversioner/APKBUILD @@ -3,28 +3,35 @@ pkgname=py3-vcversioner _pkgname=vcversioner pkgver=2.16.0.0 -pkgrel=0 +pkgrel=1 pkgdesc="Use version control tags to discover version numbers" url="https://pypi.python.org/pypi/vcversioner" arch="noarch" license="ISC" depends="python3" makedepends="py3-setuptools" -source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz" - +checkdepends="py3-pytest" +source="$_pkgname-$pkgver.tar.gz::https://github.com/habnabit/vcversioner/archive/$pkgver.tar.gz" builddir="$srcdir/$_pkgname-$pkgver" replaces=py-vcversioner # Backwards compatibility provides=py-vcversioner=$pkgver-r$pkgrel # Backwards compatibility +prepare() { + default_prepare + echo -n "${pkgver}-0-UNKNOWN" > version.txt +} + build() { - cd "$builddir" python3 setup.py build } +check() { + py.test-3 -v +} + package() { - cd "$builddir" python3 setup.py install --prefix=/usr --root="$pkgdir" } -sha512sums="e4e34693aa813e57991eca01d20102bd2e939b536461e2e9e063ac0e3558580e57d7e8d5e08d010690b3c901c97e53f187f20b48520b333eb492ec33e85757d8 vcversioner-2.16.0.0.tar.gz" +sha512sums="0ce7edf28d0626707f977b565f938a754d374d0cada8683f05fa6d1088930d4d858213dbcb5dba149d828e76341eec4a168ef1998ce9894b72c35c1eef59bd08 vcversioner-2.16.0.0.tar.gz" |