Python 2 Removal - Round 3 (#1878)
* python-appdirs: Drop Python 2 package * python-packaging: Drop Python 2 package and drop the check depends and function, all those packages don't exist.. * python-pyparsing: Drop Python 2 package * python2-pytest: Remove package * python-atomicwrites: Drop Python 2 package * python-pytest-runner: Drop Python 2 package * python-attrs: Drop Python 2 package * python-pluggy: Drop Python 2 package * python-py: Drop Python 2 package * python2-more-itertools: Drop package * python-setuptools-scm: Drop Python 2 package
This commit is contained in:
@@ -7,47 +7,36 @@
|
||||
# Contributor: Felix Kaiser <felix.kaiser@fxkr.net>
|
||||
|
||||
pkgbase=python-py
|
||||
pkgname=('python3-py' 'python2-py')
|
||||
pkgname=('python-py')
|
||||
pkgver=1.8.0
|
||||
pkgrel=1
|
||||
pkgrel=2
|
||||
pkgdesc="library with cross-python path, ini-parsing, io, code, log facilities"
|
||||
arch=('any')
|
||||
license=('MIT')
|
||||
url="https://pylib.readthedocs.io/"
|
||||
depends=('python')
|
||||
makedepends=('python3-setuptools'
|
||||
'python3-setuptools-scm'
|
||||
'python2-setuptools'
|
||||
'python2-setuptools-scm')
|
||||
'python3-setuptools-scm')
|
||||
provides=("python3-py")
|
||||
replaces=("python3-py")
|
||||
conflicts=("python3-py")
|
||||
source=("https://pypi.python.org/packages/source/p/py/py-${pkgver}.tar.gz")
|
||||
sha512sums=('83c7de6cfe89f5064f5f7266739b16adf61fd8f4f77ead787e17e41b7fb4d5f68fa242eab9a04c0c1a88cc7c47e68c78256e4432c5f8eeff5ac3dc36a90cfa3a')
|
||||
sha512sums=('37b9a66229b834a034d9ba6769a46addf098380b494c1eb863607a52d00b7ec5b9157dd7ac6ffc52535a05006648c775c78716d7f85cf44966065b225be6e95b')
|
||||
|
||||
prepare() {
|
||||
cp -a py-${pkgver}{,-py2}
|
||||
export LC_CTYPE=en_US.UTF-8
|
||||
export SETUPTOOLS_SCM_PRETEND_VERSION=${pkgver}
|
||||
}
|
||||
|
||||
build() {
|
||||
cd "$srcdir/py-${pkgver}"
|
||||
/usr/bin/python3 setup.py build
|
||||
|
||||
cd "$srcdir/py-${pkgver}-py2"
|
||||
/usr/bin/python2 setup.py build
|
||||
/usr/bin/python3 setup.py build
|
||||
}
|
||||
|
||||
package_python3-py() {
|
||||
depends=('python3')
|
||||
package() {
|
||||
cd "$srcdir/py-${pkgver}"
|
||||
|
||||
cd py-${pkgver}
|
||||
/usr/bin/python3 setup.py install --root="${pkgdir}" --optimize=1
|
||||
install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
|
||||
}
|
||||
|
||||
package_python2-py() {
|
||||
depends=('python2')
|
||||
|
||||
cd py-${pkgver}-py2
|
||||
/usr/bin/python2 setup.py install --root="${pkgdir}" --optimize=1
|
||||
install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user