diff options
author | Carlos Aznarán Laos | 2022-01-03 18:03:49 -0500 |
---|---|---|
committer | Carlos Aznarán Laos | 2022-01-03 18:03:49 -0500 |
commit | 691a0f969ec928bbdb4353d12c79a4764ec91258 (patch) | |
tree | 48105a66785fa377961afd1c5fe66ac6b023418f | |
parent | 7ba8af29485b121449b24f9649b1a53f05cb13ac (diff) | |
download | aur-691a0f969ec928bbdb4353d12c79a4764ec91258.tar.gz |
Drop python2 support
-rw-r--r-- | .SRCINFO | 21 | ||||
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | PKGBUILD | 64 |
3 files changed, 25 insertions, 61 deletions
@@ -1,20 +1,13 @@ pkgbase = python-algopy - pkgdesc = A tool for Algorithmic Differentiation (AD) and Taylor polynomial approximations. + pkgdesc = A library for Automatic Differentation in Python pkgver = 0.5.7 - pkgrel = 1 - url = https://pythonhosted.org/algopy/ + pkgrel = 2 + url = https://pythonhosted.org/algopy arch = any - license = BSD - makedepends = python2-setuptools + license = custom makedepends = python-setuptools - options = !libtool - source = https://pypi.python.org/packages/source/a/algopy/algopy-0.5.7.zip - sha256sums = 6955f676fce3858fa3585cb7f3f7e1796cb93377d24016419b6699291584b7df - -pkgname = python2-algopy - optdepends = + depends = python-scipy + source = https://pypi.org/packages/source/a/algopy/algopy-0.5.7.zip + sha512sums = 1d2cb62154f7bc344605e2db1d90125a76b93e99628056ef007a27b05546d0af3e1d52587dc3217d03118f8dddac298742c303ae9d39185ab33375e56ae3a1ba pkgname = python-algopy - depends = python-numpydoc - optdepends = - diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..f59ec20aabf5 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +*
\ No newline at end of file @@ -1,56 +1,26 @@ +# Maintainer: Carlos Aznarán <caznaranl@uni.pe> +# Contributor: khomutsky <bogdan@khomutsky.com> # Contributor: Hector <hsearaDOTatDOTgmailDOTcom> -# Maintainer: khomutsky <bogdan@khomutsky.com> - - -pkgbase=python-algopy -pkgname=('python2-algopy' 'python-algopy') +_base=algopy +pkgname=python-${_base} pkgver=0.5.7 -pkgrel=1 -pkgdesc='A tool for Algorithmic Differentiation (AD) and Taylor polynomial approximations.' -url='https://pythonhosted.org/algopy/' -license=('BSD') +pkgrel=2 +pkgdesc="A library for Automatic Differentation in Python" +url="https://pythonhosted.org/${_base}" +license=('custom') arch=('any') -depends=() -makedepends=('python2-setuptools' 'python-setuptools') -options=('!libtool') -source=("https://pypi.python.org/packages/source/a/algopy/algopy-${pkgver}.zip") -sha256sums=('6955f676fce3858fa3585cb7f3f7e1796cb93377d24016419b6699291584b7df') - -prepare() { - cd "$srcdir" - cp -a algopy-${pkgver} algopy-py2-${pkgver} -} +depends=(python-scipy) +makedepends=(python-setuptools) +source=(https://pypi.org/packages/source/${_base::1}/${_base}/${_base}-${pkgver}.zip) +sha512sums=('1d2cb62154f7bc344605e2db1d90125a76b93e99628056ef007a27b05546d0af3e1d52587dc3217d03118f8dddac298742c303ae9d39185ab33375e56ae3a1ba') build() { - msg2 "Building algopy - Python2" - cd "${srcdir}/algopy-py2-${pkgver}" - python2 setup.py build - - msg2 "Building algopy - Python3" - cd "${srcdir}/algopy-${pkgver}" + cd "${_base}-${pkgver}" python setup.py build } -package_python-algopy() { - depends=('python-numpydoc') - optdepends=() - msg2 "Installing algopy python3" - cd "${srcdir}/algopy-${pkgver}" - python setup.py install --root="${pkgdir}/" --optimize=1 --skip-build - - # Remove left over directories from distribute utils. - find ${pkgdir} -type d -name "__pycache__" -exec rm -r {} \; -prune - +package() { + cd "${_base}-${pkgver}" + export PYTHONHASHSEED=0 + PYTHONPYCACHEPREFIX="${PWD}/.cache/cpython/" python setup.py install --prefix=/usr --root="${pkgdir}" --optimize=1 --skip-build } - -package_python2-algopy() { -# depends=('python2-numpydoc') - optdepends=() - msg2 "Installing algopy python2" - cd "${srcdir}/algopy-py2-${pkgver}" - python2 setup.py install --root="${pkgdir}/" --optimize=1 --skip-build - - # Remove left over directories from distribute utils. - find ${pkgdir} -type d -name "__pycache__" -exec rm -r {} \; -prune -} - |