diff options
-rw-r--r-- | linhes/python-future/.nvchecker.toml | 3 | ||||
-rw-r--r-- | linhes/python-future/PKGBUILD | 41 |
2 files changed, 44 insertions, 0 deletions
diff --git a/linhes/python-future/.nvchecker.toml b/linhes/python-future/.nvchecker.toml new file mode 100644 index 0000000..399c8bd --- /dev/null +++ b/linhes/python-future/.nvchecker.toml @@ -0,0 +1,3 @@ +[python-future] +source = "pypi" +pypi = "future" diff --git a/linhes/python-future/PKGBUILD b/linhes/python-future/PKGBUILD new file mode 100644 index 0000000..8e6a2a2 --- /dev/null +++ b/linhes/python-future/PKGBUILD @@ -0,0 +1,41 @@ +# Contributor: Felix Yan <felixonmars@archlinux.org> +# Contributor: Christopher Arndt <aur -at- chrisarndt -dot- de> +# Contributor: Gaute Hope <eg@gaute.vetsj.com> +# Contributor: Melissa Padilla <mpadilla2 at hotmail dot com> + +pkgname=python-future +pkgver=1.0.0 +pkgrel=2 +pkgdesc="Clean single-source support for Python 3 and 2" +url="https://python-future.org/" +arch=('any') +license=('MIT') +depends=('python') +provides=('futurize' 'pasteurize') +#checkdepends=('python-requests' 'python-pytest') +makedepends=('python-build' 'python-installer' 'python-setuptools' 'python-wheel') +optdepends=('python-setuptools: futurize and pasteurize scripts') +options=('!emptydirs') +source=("https://pypi.io/packages/source/f/future/future-$pkgver.tar.gz") +sha512sums=('8e28d53172e3ae7b3b27c424a48fb698a6e86bf1c648cdf74e7fd57d34901a9bda18429fe4e176d70be67fc6c80b7f961b3021356594e38b5f294406af40bc61') + +build() { + cd "$srcdir"/future-$pkgver + python -m build --wheel +} +# https://github.com/PythonCharmers/python-future/issues/640 +# https://python-future.org/overview.html#status +#check() { +# cd "$srcdir"/future-$pkgver +# # test_future needs python2 so it is disabled here +# #PYTHONPATH="$PWD/build/lib:$PYTHONPATH" pytest -v tests/test_future +# PYTHONPATH="$PWD/build/lib:$PYTHONPATH" pytest -v tests/test_past +#} + +package() { + cd future-$pkgver + + python -m installer --destdir="$pkgdir" dist/*.whl + install -D -m644 LICENSE.txt \ + "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.txt +} |