Drop Python2 support. Round 4

This commit is contained in:
Alexey Pavlov
2020-03-02 12:44:15 +03:00
parent 8e4c3cd3da
commit 885bbbadf0
53 changed files with 218 additions and 262 deletions

View File

@@ -10,31 +10,30 @@ arch=('any')
url="https://github.com/untitaker/python-atomicwrites"
license=('MIT')
depends=('python')
makedepends=('python3-setuptools')
checkdepends=('python3-pytest')
makedepends=('python-setuptools')
checkdepends=('python-pytest')
provides=("python3-${_realname}")
replaces=("python3-${_realname}")
conflicts=("python3-${_realname}")
source=("https://files.pythonhosted.org/packages/source/${_realname::1}/${_realname}/${_realname}-${pkgver}.tar.gz")
sha512sums=('9b619b622f4509c2a41ad340f91bd6e74f238cf9a35f4662fa70f1f957a78069cb89f9bf16f8da70a597bc43a0c6c4fdea6afd0d157364a53a2fa5d8f4272a61')
sha512sums=('7a257286ba35d6f0db3772ef9666283f29c36719fe35eeb1cb9c36341f0f6a0d7c316d236927ef031f2b8ac6c245320481f51c59e0e1ccf2cbea49065a13d474')
build() {
cd "${srcdir}/${_realname}-${pkgver}"
python3 setup.py build
cd "${srcdir}/python-${_realname}-${pkgver}"
/usr/bin/python setup.py build
}
check() {
cd "${srcdir}/${_realname}-${pkgver}"
cd "${srcdir}/python-${_realname}-${pkgver}"
export PYTHONPATH=build;${PYTHONPATH}
py.test
}
package() {
cd "${srcdir}/${_realname}-${pkgver}"
cd "${srcdir}/python-${_realname}-${pkgver}"
python setup.py install --skip-build \
/usr/bin/python setup.py install --skip-build \
--optimize=1 \
--prefix=/usr \
--root="${pkgdir}"