Python 2 Removal - Round 1 (#1866)

* gpgme: Drop the Python 2 package

* dtc: Build with Python 3

The package in the repo is already build using Python 3, so this basically
just fixes the dependency list.

* Drop jhbuild-git

This is a really old version and upstream doesn't target cygwin, so just drop it.

* python-colorama: Drop Python 2 package

* python-mako: Drop Python 2 package

* python-pyalpm: Update to 0.9.1 and drop Python 2 package

0.8 did no longer build with the current pacman so I had to update
as well to drop Python 2.

* python-pygments: Drop Python 2 package

* python2-pathlib: Remove package

Unused

* python2-scandir: Remove package

Unused

* python-beaker: Drop Python 2 package

* python-markupsafe: Drop Python 2 package

* python-mock: Drop Python 2 package

* python2-funcsigs: Remove package

Unused

* python-nose: Drop Python 2 package

Also adds a conflict with python2-nose because the man pages and
main script got moved to the Python 3 package.

* python2-unittest2: Remove package

Unused

* python2-traceback2: Remove package

Unused

* python2-linecache2: Remove package

Unused

* python-pbr: Drop Python 2 package
This commit is contained in:
Christoph Reiter
2020-02-24 08:40:03 +01:00
committed by GitHub
parent 5c58f0c7e6
commit 6d4b3577b4
26 changed files with 170 additions and 1037 deletions

View File

@@ -2,43 +2,31 @@
_realname=markupsafe
pkgbase="python-${_realname}"
pkgname=("python3-${_realname}" "python2-${_realname}")
pkgname=("python-${_realname}")
pkgver=1.1.1
pkgrel=1
pkgrel=2
pkgdesc="Implements a XML/HTML/XHTML Markup safe string for Python"
arch=('i686' 'x86_64')
license=('custom')
url="https://pypi.python.org/pypi/MarkupSafe"
makedepends=("python2-setuptools" "python3-setuptools")
depends=("python")
makedepends=("python3-setuptools")
provides=("python3-${_realname}")
conflicts=("python3-${_realname}")
replaces=("python3-${_realname}")
source=("https://pypi.python.org/packages/source/M/MarkupSafe/MarkupSafe-${pkgver}.tar.gz")
sha256sums=('29872e92839765e546828bb7754a68c418d927cd064fd4708fab9fe9c8bb116b')
build() {
cd "$srcdir"
cd "$srcdir/MarkupSafe-$pkgver"
rm -rf python{2,3}-build
for builddir in python{2,3}-build; do
cp -r MarkupSafe-$pkgver $builddir
pushd $builddir
/usr/bin/${builddir%-build} setup.py build
popd
done
/usr/bin/python setup.py build
}
package_python3-markupsafe() {
depends=("python3")
package() {
cd "$srcdir/MarkupSafe-$pkgver"
cd "$srcdir/python3-build"
/usr/bin/python3 setup.py install --prefix=/usr --root="$pkgdir" -O1
/usr/bin/python setup.py install --prefix=/usr --root="$pkgdir" -O1
install -Dm644 LICENSE.rst "${pkgdir}/usr/share/licenses/python3-${_realname}/LICENSE"
}
package_python2-markupsafe() {
depends=("python2")
cd "$srcdir/python2-build"
/usr/bin/python2 setup.py install --prefix=/usr --root="$pkgdir" -O1
install -Dm644 LICENSE.rst "${pkgdir}/usr/share/licenses/python2-${_realname}/LICENSE"
}
install -Dm644 LICENSE.rst "${pkgdir}/usr/share/licenses/python-${_realname}/LICENSE"
}