Commit 624b3ed8 authored by Chaoting Liu's avatar Chaoting Liu

import and update multiple python packages in preparation for llvm

parent 9aa85060
Pipeline #6559 canceled with stages
in 17 seconds
# Maintainer: Felix Yan <felixonmars@archlinux.org>
pkgname=blockdiag
pkgver=2.0.1
pkgrel=1
pkgdesc="blockdiag generates block-diagram image from text"
url="http://blockdiag.com"
license=('Apache')
arch=('any')
depends=('python3-setuptools' 'python3-funcparserlib' 'python3-pillow' 'python3-webcolors')
checkdepends=('python3-nose' 'python3-mock' 'python3-pycodestyle' 'python3-reportlab' 'python3-docutils'
'python3-wand' 'ghostscript' 'librsvg')
source=("$pkgname-$pkgver.tar.gz::https://github.com/blockdiag/blockdiag/archive/$pkgver.tar.gz")
sha512sums=('509535312bd46022203d279604507e09106680722d98516dabd7187bc48d9a195709f2534f2f7757058c06b914b517ec2f6d899cec12e7df24ba4ab28ec76bcd')
build() {
cd blockdiag-$pkgver
python3 setup.py build
}
check() {
cd blockdiag-$pkgver
python3 setup.py install --root="$PWD/tmp_install" --optimize=1
# TODO: figure out the failure
PYTHONPATH="$PWD/tmp_install/usr/lib/python3.8/site-packages" nosetests -e "test_setup_inline_svg_is_true_with_multibytes"
}
package() {
cd blockdiag-$pkgver
python3 setup.py install --root="$pkgdir" --optimize=1
}
From 5949227996ba403eecaf6fb961c2f2a6aca4d3e2 Mon Sep 17 00:00:00 2001
From: Eli Schwartz <eschwartz93@gmail.com>
Date: Thu, 7 Jun 2018 12:39:59 -0400
Subject: [PATCH] Remove unnecessary console script
The purpose of this module is to cache things, not to test if they
*can* be cached. This clutters up the $PATH.
---
setup.py | 1 -
1 file changed, 1 deletion(-)
diff --git a/setup.py b/setup.py
index 34f5f44..95e1741 100644
--- a/setup.py
+++ b/setup.py
@@ -19,7 +19,6 @@ setup_params = dict(
long_description=long_description,
install_requires=["requests", "msgpack"],
extras_require={"filecache": ["lockfile>=0.9"], "redis": ["redis>=2.10.5"]},
- entry_points={"console_scripts": ["doesitcache = cachecontrol._cmd:main"]},
python_requires=">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*",
classifiers=[
"Development Status :: 4 - Beta",
--
2.17.1
# Maintainer: Eli Schwartz <eschwartz@archlinux.org>
_pkgname=cachecontrol
pkgbase=python3-cachecontrol
pkgname=('python3-cachecontrol' 'python2-cachecontrol')
pkgver=0.12.6
pkgrel=1
pkgdesc="httplib2 caching for requests"
arch=('any')
url="https://github.com/ionrock/${_pkgname}"
license=('Apache')
makedepends=('python3-msgpack' 'python3-requests' 'python2-msgpack' 'python2-requests' 'python3-setuptools' 'python2-setuptools')
checkdepends=('python3-mock' 'python3-pytest' 'python3-lockfile' 'python3-cherrypy'
'python2-mock' 'python2-pytest' 'python2-lockfile' 'python2-cherrypy')
source=("${_pkgname}-${pkgver}.tar.gz::${url}/archive/v${pkgver}.tar.gz"
"0001-Remove-unnecessary-console-script.patch")
sha256sums=('2ec120838f445bff473cd8b8206ddae3650679142976927179743fabb876f3e3'
'a2c93d4852887152027140bdd54030d5363876b02e5eabee6a018d4e946a87b1')
prepare() {
cd "${srcdir}"/${_pkgname}-${pkgver}
patch -p1 -i ../0001-Remove-unnecessary-console-script.patch
}
build() {
cd "${srcdir}"/${_pkgname}-${pkgver}
python3 setup.py build
python2 setup.py build
}
check() {
cd "${srcdir}"/${_pkgname}-${pkgver}
python3 -m pytest
python2 -m pytest
}
package_python3-cachecontrol() {
depends=('python3-msgpack' 'python3-requests')
optdepends=('python3-lockfile: for the FileCache')
cd "${srcdir}"/${_pkgname}-${pkgver}
python3 setup.py install --root="${pkgdir}" --optimize=1 --skip-build
}
package_python2-cachecontrol() {
depends=('python2-msgpack' 'python2-requests')
optdepends=('python2-lockfile: for the FileCache')
cd "${srcdir}"/${_pkgname}-${pkgver}
python2 setup.py install --root="${pkgdir}" --optimize=1 --skip-build
}
# Maintainer: Felix Yan <felixonmars@archlinux.org>
# Contributor: Alexander Duscheleit <jinks@archlinux.us>
pkgbase=python3-colorama
pkgname=('python3-colorama' 'python2-colorama')
pkgver=0.4.3
pkgrel=1
pkgdesc="Python API for cross-platform colored terminal text."
arch=('any')
url="https://pypi.python.org/pypi/colorama"
license=('BSD')
makedepends=('python3-setuptools' 'python2-setuptools')
checkdepends=('python3-mock' 'python2-mock')
source=("$pkgbase-$pkgver.tar.gz::https://github.com/tartley/colorama/archive/$pkgver.tar.gz")
sha512sums=('ab41a2f95fe75de0b280c174c6166b86645e5cc675dcedf784fe15170aae630e831370527c9490342b77c7d088a023a48428a519b52ad1c70be58904742a94c8')
prepare() {
cp -a colorama-$pkgver{,-py2}
}
build() {
cd "$srcdir"/colorama-$pkgver
python3 setup.py build
cd "$srcdir"/colorama-$pkgver-py2
python2 setup.py build
}
check() {
cd "$srcdir"/colorama-$pkgver
python3 -m unittest discover -p *_test.py || warning "Tests failed"
cd "$srcdir"/colorama-$pkgver-py2
python2 -m unittest discover -p *_test.py || warning "Tests failed"
}
package_python3-colorama() {
depends=('python')
cd colorama-$pkgver
python3 setup.py install --root="$pkgdir" --optimize=1
install -Dm644 LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.txt
}
package_python2-colorama() {
depends=('python2')
cd colorama-$pkgver-py2
python2 setup.py install --root="$pkgdir" --optimize=1
install -Dm644 LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.txt
}
# vim:set ts=2 sw=2 et:
# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
pkgbase=python-commonmark
pkgname=('python3-commonmark' 'python2-commonmark')
pkgver=0.9.0
pkgname=('python3-commonmark')
pkgver=0.9.1
pkgrel=1
pkgdesc='Python parser for the CommonMark Markdown spec'
url='https://pypi.python.org/pypi/CommonMark'
arch=('any')
license=('BSD')
makedepends=('python3-setuptools' 'python3-docutils' 'python3-future' 'python3-sphinx'
'python2-setuptools' 'python2-docutils' 'python2-future' 'python2-sphinx')
checkdepends=('python3-hypothesis' 'python2-hypothesis')
makedepends=('python3-setuptools' 'python3-docutils' 'python3-future' 'python3-sphinx')
checkdepends=('python3-hypothesis')
options=('!makeflags')
source=(${pkgname}-${pkgver}.tar.gz::https://github.com/rtfd/CommonMark-py/archive/${pkgver}.tar.gz)
sha256sums=('c30931518b2882cb03b90378167bc6d9b604ca1c0ff0d6227db6ab093ad9dfad')
sha512sums=('7a2121cf6cb7799940e8d6cb0fb73117e9d0c04ef500995a8213d1e77cfad840fbc0b43934f836a9f43c85c6b9acc2325d9ca01bf2281ef562319252dfdf8ef7')
prepare() {
cp -r commonmark.py-${pkgver}{,-py2}
}
sha256sums=('b5d5be6af35a183c3f915d714b31b61e6918894051114419f9ac0bbb715bf4c6')
build() {
(cd commonmark.py-${pkgver}
python3 setup.py build
make -C docs man text SPHINXBUILD=sphinx-build
)
(cd commonmark.py-${pkgver}-py2
python2 setup.py build
make -C docs man text SPHINXBUILD=sphinx-build2
)
cd commonmark.py-${pkgver}
python3 setup.py build
make -C docs man text SPHINXBUILD=sphinx-build
}
check() {
(cd commonmark.py-${pkgver}
export PYTHONPATH=.
python3 commonmark/tests/unit_tests.py
python3 setup.py test
)
(cd commonmark.py-${pkgver}-py2
export PYTHONPATH=.
export PYTHONIOENCODING=UTF-8
python2 commonmark/tests/unit_tests.py
python2 setup.py test
)
cd commonmark.py-${pkgver}
export PYTHONPATH=.
python3 commonmark/tests/unit_tests.py
python3 setup.py test
}
package_python3-commonmark() {
......@@ -54,19 +36,4 @@ package_python3-commonmark() {
install -Dm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
install -Dm 644 docs/_build/text/* -t "${pkgdir}/usr/share/doc/${pkgname}"
install -Dm 644 docs/_build/man/commonmark-py.1 "${pkgdir}/usr/share/man/man1/${pkgname}.1"
mv "${pkgdir}/usr/bin/cmark"{,-py3}
}
package_python2-commonmark() {
depends=('python2-docutils' 'python2-future')
cd commonmark.py-${pkgver}-py2
python2 setup.py install --root="${pkgdir}" -O1 --skip-build
install -Dm 644 README.rst CHANGELOG.md -t "${pkgdir}/usr/share/doc/${pkgname}"
install -Dm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
install -Dm 644 docs/_build/text/* -t "${pkgdir}/usr/share/doc/${pkgname}"
install -Dm 644 docs/_build/man/commonmark-py.1 "${pkgdir}/usr/share/man/man1/${pkgname}.1"
mv "${pkgdir}/usr/bin/cmark"{,-py2}
}
# vim: ts=2 sw=2 et:
# Maintainer: Felix Yan <felixonmars@archlinux.org>
# Maintainer: Filipe Laíns (FFY00) <lains@archlinux.org>
# Contributor: Cedric Girard <girard.cedric@gmail.com>
_pkgname=contextlib2
pkgbase=python3-$_pkgname
pkgname=(python3-$_pkgname python2-$_pkgname)
pkgver=0.6.0.post1
pkgrel=1
pkgdesc="Backport of the standard library's contextlib module to earlier Python versions"
arch=('any')
url='https://github.com/jazzband/contextlib2'
license=('PSF')
makedepends=('python3-setuptools' 'python2-setuptools')
source=("$pkgname-$pkgver::$url/archive/v$pkgver.tar.gz")
sha512sums=('8fd8073b4aab96d46a8d2aacfde9e9d3b1c517d9f05a86ae07e1528696c11313c9b92bee9673d8333f62bb3503a8ef3c488db7c09f3a13df5752e341e572f23f')
prepare() {
cp -a $_pkgname-$pkgver{,-py2}
}
build() {
echo "Building python3-$_pkgname $pkgver"
cd "$srcdir"/$_pkgname-$pkgver
python3 setup.py build
echo "Building python2-$_pkgname $pkgver"
cd "$srcdir"/$_pkgname-$pkgver-py2
python2 setup.py build
}
package_python3-contextlib2() {
depends=('python')
cd $_pkgname-$pkgver
python3 setup.py install --root="$pkgdir" --optimize=1 --skip-build
install -Dm 644 LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}
package_python2-contextlib2() {
depends=('python2')
cd $_pkgname-$pkgver-py2
python2 setup.py install --root="$pkgdir" --optimize=1 --skip-build
install -Dm 644 LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}
# Maintainer: Eli Schwartz <eschwartz@archlinux.org>
_pkgname=distlib
pkgbase='python3-distlib'
pkgname=('python3-distlib' 'python2-distlib')
pkgver=0.3.0
pkgrel=1
pkgdesc="Low-level components of distutils2/packaging"
arch=('any')
url="https://bitbucket.org/pypa/${_pkgname}"
license=('PSF')
makedepends=('python' 'python2')
source=("https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/${_pkgname}/${_pkgname}-${pkgver}.zip")
sha256sums=('2e166e231a26b36d6dfe35a48c4464346620f8645ed0ace01ee31822b288de21')
b2sums=('e90624e886a5c4c430c53ae621b845c23d8fa3e5e89557bd521516e2290997bacb930652a9cb430fc3144e609181bbaf20037bedcce39f8f3ab14eda41e4d853')
prepare() {
cd "${srcdir}"/${_pkgname}-${pkgver}
rm distlib/*.exe
}
build() {
cd "${srcdir}"/${_pkgname}-${pkgver}
python3 setup.py build
python2 setup.py build
}
check() {
cd "${srcdir}"/${_pkgname}-${pkgver}
PYTHONHASHSEED=0 python3 setup.py test
python2 setup.py test
}
package_python3-distlib() {
depends=('python')
cd "${srcdir}"/${_pkgname}-${pkgver}
python3 setup.py install --root="${pkgdir}" --optimize=1 --skip-build
}
package_python2-distlib() {
depends=('python2')
cd "${srcdir}"/${_pkgname}-${pkgver}
python2 setup.py install --root="${pkgdir}" --optimize=1 --skip-build
}
# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
# Contributor: Tomislav Ivek <tomislav.ivek@gmail.com>
pkgbase=python3-distro
pkgname=('python3-distro' 'python2-distro')
pkgver=1.5.0
pkgrel=1
pkgdesc='Linux OS platform information API'
url='https://github.com/nir0s/distro'
arch=('any')
license=('Apache')
makedepends=('python3-setuptools' 'python3-sphinx' 'python2-setuptools')
checkdepends=('python3-pytest' 'python2-pytest')
options=('!makeflags')
source=(https://github.com/nir0s/distro/archive/v${pkgver}/${pkgbase}-${pkgver}.tar.gz)
sha512sums=('35933ded65f99a86f9077af2d01528af337cda7b100f622fdcb0eaccd42baf7e4de77908870bfb1f575326cde85d6abc5a66f28a017c9813eb216dc55f3d94dd')
b2sums=('efc32a8ba6ffcd6eb7697d7b87ca5f84a91d7d9497249d43cd75fe51422e801111a480a48017d09f5101454d8af3341d0b5368a9093849c5078610cccaf60e53')
prepare() {
cp -a distro-${pkgver}{,-py2}
}
build() {
(cd distro-${pkgver}
python3 setup.py build
make man SPHINXBUILD=sphinx-build
)
(cd distro-${pkgver}-py2
python2 setup.py build
make man SPHINXBUILD=sphinx-build
)
}
check() {
(cd distro-${pkgver}
py.test
)
(cd distro-${pkgver}-py2
py.test2
)
}
package_python3-distro() {
depends=('python' 'python3-setuptools')
cd distro-${pkgver}
python3 setup.py install -O1 --root="${pkgdir}" --skip-build
install -Dm 644 build_docs/man/ld.1 "${pkgdir}/usr/share/man/man1/${pkgname}.1"
install -Dm 644 README.md CHANGELOG.md -t "${pkgdir}/usr/share/doc/${pkgname}"
}
package_python2-distro() {
depends=('python2' 'python2-setuptools')
cd distro-${pkgver}-py2
python2 setup.py install -O1 --root="${pkgdir}" --skip-build
install -Dm 644 build_docs/man/ld.1 "${pkgdir}/usr/share/man/man1/${pkgname}.1"
install -Dm 644 README.md CHANGELOG.md -t "${pkgdir}/usr/share/doc/${pkgname}"
mv "${pkgdir}/usr/bin/distro"{,2}
}
# vim: ts=2 sw=2 et:
# Maintainer: Felix Yan <felixonmars@archlinux.org>
pkgname=python3-funcparserlib
pkgver=0.3.6
pkgrel=3
pkgdesc="Recursive descent parsing library based on functional combinators"
url="https://github.com/vlasovskikh/funcparserlib"
license=('MIT')
arch=('any')
depends=('python')
makedepends=('python3-setuptools')
checkdepends=('python3-nose')
source=("$pkgname-$pkgver.tar.gz::https://github.com/vlasovskikh/funcparserlib/archive/$pkgver.tar.gz")
sha512sums=('0fe23dc471f2de4588204d09379ef1400231bbe370e71045ddfad82c0f3a7bd13350954dde7210a370084c7bb7eb8c02ebdb04fb3727bee3e768cebe54e5ed99')
build() {
cd funcparserlib-$pkgver
python3 setup.py build
}
check() {
cd funcparserlib-$pkgver
python3 setup.py nosetests
}
package() {
cd funcparserlib-$pkgver
python3 setup.py install --root="$pkgdir" --optimize=1
install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}
# Maintainer: Felix Yan <felixonmars@archlinux.org>
pkgbase=python-importlib-metadata
pkgname=(python3-importlib-metadata)
pkgver=1.5.2
pkgrel=1
pkgdesc="Read metadata from Python packages"
url="https://importlib-metadata.readthedocs.io"
license=('Apache')
arch=('any')
makedepends=('python3-setuptools-scm' 'python3-zipp')
checkdepends=('python3-pip' 'python3-pytest-runner' 'python3-wheel' 'python3-pyfakefs')
source=("$pkgbase-$pkgver.tar.gz::https://gitlab.com/python-devs/importlib_metadata/-/archive/v$pkgver/importlib_metadata-v$pkgver.tar.bz2")
sha512sums=('a2d007fe541493a665170a746b6e0613b71a07f0a032affddb5562c57b8b28c439d108c934dd5a44da451e5f0a03c1d707ee0eae5cc079450f9d8fd7c000b817')
export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
build() {
cd "$srcdir"/importlib_metadata-v$pkgver
python3 setup.py build
}
check() {
cd "$srcdir"/importlib_metadata-v$pkgver
python3 setup.py pytest
}
package_python3-importlib-metadata() {
depends=('python3-zipp')
cd importlib_metadata-v$pkgver
python3 setup.py install --root="$pkgdir" --optimize=1
}
pkgbase=python-lockfile
pkgname=(python3-lockfile python2-lockfile)
pkgver=0.12.2
pkgrel=1
pkgdesc='Platform-independent file locking module'
arch=(any)
url='https://github.com/openstack/pylockfile'
license=(MIT)
makedepends=(python3-setuptools python2-setuptools python3-pbr python2-pbr)
checkdepends=(python3-nose python2-nose)
source=(https://files.pythonhosted.org/packages/source/l/lockfile/lockfile-$pkgver.tar.gz)
sha1sums=('c2ac46e48585e5f8f8d57ccc55ca83faa8b53b86')
prepare() {
cp -a lockfile-$pkgver{,-py2}
}
build() {
cd "$srcdir/lockfile-$pkgver"
python3 setup.py build
cd "$srcdir/lockfile-$pkgver-py2"
python2 setup.py build
}
check() {
cd "$srcdir/lockfile-$pkgver"
nosetests
cd "$srcdir/lockfile-$pkgver-py2"
nosetests2
}
package_python3-lockfile() {
depends=(python3)
cd "$srcdir/lockfile-$pkgver"
python3 setup.py install --root="$pkgdir" --optimize=1
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
package_python2-lockfile() {
depends=(python2)
cd "$srcdir/lockfile-$pkgver-py2"
python2 setup.py install --root="$pkgdir" --optimize=1
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
# Maintainer: Felix Yan <felixonmars@archlinux.org>
pkgbase=python-pep517
pkgname=('python3-pep517')
pkgver=0.8.2
pkgrel=1
pkgdesc="Wrappers to build Python packages using PEP 517 hooks"
arch=('any')
license=('MIT')
url="https://github.com/takluyver/pep517"
makedepends=('python3-setuptools' 'python3-toml')
checkdepends=('python3-mock' 'python3-pytest-flake8' 'python3-testpath' 'python3-pip')
source=("https://pypi.io/packages/source/p/pep517/pep517-$pkgver.tar.gz")
sha512sums=('668569a26a4c21a1b8d6828a26bdcdab62b8c4d5fcaba8d9f9a4740e0fce7f071295e28d91349500b4c7be05ab2c2670986de18f01e2afafc1878101e5ef9af2')
build() {
cd "$srcdir"/pep517-$pkgver
python3 setup.py build
}
check() {
cd pep517-$pkgver
# https://github.com/pypa/pep517/issues/35
pytest --deselect setup.py
}
package_python3-pep517() {
depends=('python3-toml')
cd pep517-$pkgver
python3 setup.py install --root="$pkgdir" --optimize=1 --skip-build
install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}
pkgname=('python3-pip' 'python2-pip')
pkgver=19.1.1
# Maintainer: Dan McGee <dan@archlinux.org>
# Contributor: Eli Schwartz <eschwartz@archlinux.org>
# Contributor: Sebastien Binet <binet@lblbox>
pkgname=('python3-pip')
pkgver=20.0.2
pkgrel=1
pkgdesc="An easy_install replacement for installing pypi python packages"
url="http://www.pip-installer.org/"
arch=('x86_64')
pkgdesc="The PyPA recommended tool for installing Python packages"
url="https://pip.pypa.io/"
arch=('any')
license=('MIT')
makedepends=('python3' 'python3-setuptools' 'python2' 'python2-setuptools')
source=(https://pypi.io/packages/source/p/pip/pip-${pkgver}.tar.gz)
md5sums=('4fb98a060f21c731d6743b90a714fc73')
_deps=('appdirs' 'cachecontrol' 'colorama' 'contextlib2' 'distlib' 'distro' 'html5lib'
'msgpack' 'packaging' 'pep517' 'progress' 'pyparsing' 'pytoml' 'requests' 'retrying'
'setuptools' 'six' 'webencodings')
makedepends=("${_deps[@]/#/python3-}" 'python3-sphinx')
checkdepends=('python3-pytest-runner' 'python3-scripttest' 'python3-virtualenv' 'python3-pretend'
'python3-yaml' 'python3-mock' 'python3-freezegun' 'python3-cryptography' 'python3-pip'
'python3-wheel' 'python3-werkzeug' 'git' 'subversion')
source=("pip-${pkgver}.tar.gz::https://github.com/pypa/pip/archive/${pkgver}.tar.gz"
pip-vendor-appdirs.patch::https://github.com/pypa/pip/commit/9be7454fd69081d06a3f8234a08a6d791e13173f.patch)
sha512sums=('f9965944ca0f319d01db1638ce97cf64772afff1778b3b1271155de73208cfcb3954d89a469c1143c0bf3288a53d4446165a49df994374b16ac6f7ffdae85857'
'61732786303ca7ec7828d04099a884534034d50cdd9a7a0de2ace34c28381a992943880f03797a64d5d4f3a76d317d356f76ffff5e3ffd97ed611b234cc05528')
package_python3-pip() {
depends=('python3' 'python3-setuptools' 'python3-six')
shopt -s extglob
prepare() {
cd "$srcdir/pip-$pkgver"
patch -p1 -i ../pip-vendor-appdirs.patch
# Remove certifi usage
sed -i 's|from pip._vendor.certifi import where|where = lambda: "/etc/ssl/certs/ca-certificates.crt"|' src/pip/_internal/commands/debug.py
rm -rf src/pip/_vendor/!(__init__.py)
sed -i -e 's/DEBUNDLED = False/DEBUNDLED = True/' \
src/pip/_vendor/__init__.py
}
build() {
cd "$srcdir/pip-$pkgver"
cd "$srcdir/pip-$pkgver"
python3 setup.py build
python3 setup.py install \
--prefix=/usr \
--root="$pkgdir"
python3 setup.py build
}
mv "$pkgdir/usr/bin/pip" "$pkgdir/usr/bin/pip3"
sed -i "s|#!/usr/bin/env python$|#!/usr/bin/env python3|" \
${pkgdir}/usr/lib/python3.6/site-packages/pip/__init__.py
check() {
cd "$srcdir"/pip-$pkgver
pip3 wheel -w tests/data/common_wheels -r tools/requirements/tests-common_wheels.txt
python3 setup.py install --root="$PWD/tmp_install" --optimize=1
# appdirs: https://github.com/pypa/pip/issues/7784
# build_env: TODO weird looking errors
PYTHONPATH="$PWD/tmp_install/usr/lib/python3.8/site-packages" PATH="$PWD/tmp_install/usr/bin:$PATH" \
python3 -m pytest -m unit --junit-xml=junit/unit-test.xml --deselect tests/unit/test_appdirs.py::TestSiteConfigDirs::test_site_config_dirs_linux \
--deselect tests/unit/test_appdirs.py::TestSiteConfigDirs::test_site_config_dirs_linux_override \
--deselect tests/unit/test_appdirs.py::TestSiteConfigDirs::test_site_config_dirs_linux_empty \
--deselect tests/unit/test_appdirs.py::TestUserDataDir::test_user_data_dir_osx \
--deselect tests/unit/test_appdirs.py::TestUserConfigDir::test_user_config_dir_osx \
--deselect tests/unit/test_build_env.py::test_build_env_requirements_check \
--deselect tests/unit/test_build_env.py::test_build_env_overlay_prefix_has_priority \
--deselect tests/unit/test_build_env.py::test_build_env_isolation
install -D -m644 LICENSE.txt \
"$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
package_python2-pip() {
depends=('python2' 'python2-setuptools' 'python2-six')
package_python3-pip() {
depends=("${_deps[@]/#/python3-}")
cd "$srcdir/pip-$pkgver"
python2 setup.py build
python2 setup.py install \
--prefix=/usr \
--root="$pkgdir"
cd "$srcdir/pip-$pkgver"
python3 setup.py install --prefix=/usr --root="$pkgdir"
mv "$pkgdir/usr/bin/pip" "$pkgdir/usr/bin/pip2"
sed -i "s|#!/usr/bin/env python$|#!/usr/bin/env python2|" \
${pkgdir}/usr/lib/python2.7/site-packages/pip/__init__.py
install -D -m644 LICENSE.txt \
"$pkgdir/usr/share/licenses/$pkgname/LICENSE"
install -D -m644 LICENSE.txt \
"$pkgdir/usr/share/licenses/$pkgname/LICENSE"
PYTHONPATH="$pkgdir"/usr/lib/python3.6/site-packages "$pkgdir"/usr/bin/pip completion --bash \
| install -Dm644 /dev/stdin "$pkgdir"/usr/share/bash-completion/completions/pip
PYTHONPATH="$pkgdir"/usr/lib/python3.6/site-packages "$pkgdir"/usr/bin/pip completion --fish \
| install -Dm644 /dev/stdin "$pkgdir"/usr/share/fish/vendor_completions.d/pip.fish
}
# Maintainer: Eli Schwartz <eschwartz@archlinux.org>
# Contributor: Guillaume Brogi <gui-gui at netcourrier dot com>
_pkgname=progress
pkgbase=python3-progress