[arch-commits] Commit in python-pip/repos (testing-any testing-any/PKGBUILD)
Date: Sunday, November 8, 2020 @ 20:47:41 Author: felixonmars Revision: 399645 archrelease: copy trunk to testing-any Added: python-pip/repos/testing-any/ python-pip/repos/testing-any/PKGBUILD (from rev 399644, python-pip/trunk/PKGBUILD) --+ PKGBUILD | 116 + 1 file changed, 116 insertions(+) Copied: python-pip/repos/testing-any/PKGBUILD (from rev 399644, python-pip/trunk/PKGBUILD) === --- testing-any/PKGBUILD(rev 0) +++ testing-any/PKGBUILD2020-11-08 20:47:41 UTC (rev 399645) @@ -0,0 +1,116 @@ +# Maintainer: Dan McGee +# Contributor: Eli Schwartz +# Contributor: Sebastien Binet + +pkgname=('python-pip' 'python2-pip') +pkgver=20.2 +pkgrel=1 +pkgdesc="The PyPA recommended tool for installing Python packages" +url="https://pip.pypa.io/; +arch=('any') +license=('MIT') +_deps=('appdirs' 'cachecontrol' 'colorama' 'contextlib2' 'distlib' 'distro' 'html5lib' + 'packaging' 'pep517' 'progress' 'requests' 'retrying' 'resolvelib' 'setuptools' 'six' 'toml' + # add these until https://github.com/pypa/pip/issues/5354#issuecomment-672678167 is resolved + 'pyopenssl') +makedepends=("${_deps[@]/#/python-}" "${_deps[@]/#/python2-}" 'python2-ipaddress' 'python-sphinx') +checkdepends=('python-pytest-runner' 'python-scripttest' 'python-virtualenv' 'python-pretend' + 'python-yaml' 'python-mock' 'python-freezegun' 'python-cryptography' 'python-pip' + 'python-wheel' 'python-werkzeug' 'python-csv23' 'git' 'subversion') +source=("pip-${pkgver}.tar.gz::https://github.com/pypa/pip/archive/${pkgver}.tar.gz; + pip-fix-unbundle.patch::https://github.com/pypa/pip/commit/b215120b5ab1315c963ee409b720753ac690c7f6.patch) +sha512sums=('77db7c618b492cbdef54ef98d4e9a94735a809148fb08ef7d065fbeaf047ced26ddc20d0395a0b2db079c66175a267fc15717a24def70392182326b2c659e6f1' + '36a41a80a205258740b7a192e7cc0df96cb66ff82f6263705355246ae9eda04b79f75c9953623129e12eb45c99e8a911dfa134870e6fff357c3f57ee6f38d337') + +shopt -s extglob +prepare() { + cd "$srcdir/pip-$pkgver" + patch -p1 -i ../pip-fix-unbundle.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" + + python setup.py build + python2 setup.py build + + cd docs/ + PYTHONPATH="$srcdir/pip-$pkgver/src/" python pip_sphinxext.py + PYTHONPATH="$srcdir/pip-$pkgver/src/" sphinx-build -W -b man -d build/doctrees/man man build/man -c html + mkdir -p build/man-pip2 + cd build/man + for manfile in *; do +sed 's/pip/pip2/g;s/PIP/PIP2/g' $manfile > ../man-pip2/${manfile/pip/pip2} + done +} + +check() { + cd "$srcdir"/pip-$pkgver + pip wheel -w tests/data/common_wheels -r tools/requirements/tests-common_wheels.txt + python setup.py install --root="$PWD/tmp_install" --optimize=1 + # appdirs: https://github.com/pypa/pip/issues/7784 + # build_env: TODO weird looking errors + # virtualenv: https://github.com/pypa/pip/issues/8273 + PYTHONPATH="$PWD/tmp_install/usr/lib/python3.8/site-packages" PATH="$PWD/tmp_install/usr/bin:$PATH" \ +python -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 \ + --deselect tests/unit/test_build_env.py::test_build_env_allow_only_one_install \ + --deselect tests/unit/test_direct_url_helpers.py::test_from_link_vcs_with_source_dir_obtains_commit_id \ +
[arch-commits] Commit in python-pip/repos (testing-any testing-any/PKGBUILD)
Date: Sunday, June 21, 2020 @ 18:37:07 Author: felixonmars Revision: 389933 archrelease: copy trunk to testing-any Added: python-pip/repos/testing-any/ python-pip/repos/testing-any/PKGBUILD (from rev 389932, python-pip/trunk/PKGBUILD) --+ PKGBUILD | 110 + 1 file changed, 110 insertions(+) Copied: python-pip/repos/testing-any/PKGBUILD (from rev 389932, python-pip/trunk/PKGBUILD) === --- testing-any/PKGBUILD(rev 0) +++ testing-any/PKGBUILD2020-06-21 18:37:07 UTC (rev 389933) @@ -0,0 +1,110 @@ +# Maintainer: Dan McGee +# Contributor: Eli Schwartz +# Contributor: Sebastien Binet + +pkgname=('python-pip' 'python2-pip') +pkgver=20.1.1 +pkgrel=1 +pkgdesc="The PyPA recommended tool for installing Python packages" +url="https://pip.pypa.io/; +arch=('any') +license=('MIT') +_deps=('appdirs' 'cachecontrol' 'colorama' 'contextlib2' 'distlib' 'distro' 'html5lib' + 'packaging' 'pep517' 'progress' 'requests' 'retrying' 'resolvelib' 'setuptools' 'six' 'toml') +makedepends=("${_deps[@]/#/python-}" "${_deps[@]/#/python2-}" 'python2-ipaddress' 'python-sphinx') +checkdepends=('python-pytest-runner' 'python-scripttest' 'python-virtualenv' 'python-pretend' + 'python-yaml' 'python-mock' 'python-freezegun' 'python-cryptography' 'python-pip' + 'python-wheel' 'python-werkzeug' 'python-csv23' 'git' 'subversion') +source=("pip-${pkgver}.tar.gz::https://github.com/pypa/pip/archive/${pkgver}.tar.gz;) +sha512sums=('ee7b0345c08fbe0215811d07b4c57c1ceece826871842f6d1c174d82e8eee0ad810aa5413d6763ecd5a513e151792a53c36623ab99d2049555ef2542d32d1658') + +shopt -s extglob +prepare() { + cd "$srcdir/pip-$pkgver" + + # 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" + + python setup.py build + python2 setup.py build + + cd docs/ + PYTHONPATH="$srcdir/pip-$pkgver/src/" sphinx-build -W -b man -d build/doctrees/man man build/man -c html + mkdir -p build/man-pip2 + cd build/man + for manfile in *; do +sed 's/pip/pip2/g;s/PIP/PIP2/g' $manfile > ../man-pip2/${manfile/pip/pip2} + done +} + +check() { + cd "$srcdir"/pip-$pkgver + pip wheel -w tests/data/common_wheels -r tools/requirements/tests-common_wheels.txt + python setup.py install --root="$PWD/tmp_install" --optimize=1 + # appdirs: https://github.com/pypa/pip/issues/7784 + # build_env: TODO weird looking errors + # virtualenv: https://github.com/pypa/pip/issues/8273 + PYTHONPATH="$PWD/tmp_install/usr/lib/python3.8/site-packages" PATH="$PWD/tmp_install/usr/bin:$PATH" \ +python -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 \ + --deselect tests/unit/test_build_env.py::test_build_env_allow_only_one_install \ + --deselect tests/unit/test_direct_url_helpers.py::test_from_link_vcs_with_source_dir_obtains_commit_id \ + --deselect tests/unit/test_direct_url_helpers.py::test_from_link_vcs_without_source_dir \ + --deselect tests/unit/test_wheel_builder.py::test_should_cache_git_sha \ + --deselect tests/unit/resolution_resolvelib/test_requirement.py::test_new_resolver_full_resolve +} + +package_python-pip() { + depends=("${_deps[@]/#/python-}") + + cd
[arch-commits] Commit in python-pip/repos (testing-any testing-any/PKGBUILD)
Date: Friday, June 19, 2020 @ 20:57:17 Author: felixonmars Revision: 389554 archrelease: copy trunk to testing-any Added: python-pip/repos/testing-any/ python-pip/repos/testing-any/PKGBUILD (from rev 389553, python-pip/trunk/PKGBUILD) --+ PKGBUILD | 110 + 1 file changed, 110 insertions(+) Copied: python-pip/repos/testing-any/PKGBUILD (from rev 389553, python-pip/trunk/PKGBUILD) === --- testing-any/PKGBUILD(rev 0) +++ testing-any/PKGBUILD2020-06-19 20:57:17 UTC (rev 389554) @@ -0,0 +1,110 @@ +# Maintainer: Dan McGee +# Contributor: Eli Schwartz +# Contributor: Sebastien Binet + +pkgname=('python-pip' 'python2-pip') +pkgver=20.1 +pkgrel=1 +pkgdesc="The PyPA recommended tool for installing Python packages" +url="https://pip.pypa.io/; +arch=('any') +license=('MIT') +_deps=('appdirs' 'cachecontrol' 'colorama' 'contextlib2' 'distlib' 'distro' 'html5lib' + 'packaging' 'pep517' 'progress' 'requests' 'retrying' 'resolvelib' 'setuptools' 'six' 'toml') +makedepends=("${_deps[@]/#/python-}" "${_deps[@]/#/python2-}" 'python2-ipaddress' 'python-sphinx') +checkdepends=('python-pytest-runner' 'python-scripttest' 'python-virtualenv' 'python-pretend' + 'python-yaml' 'python-mock' 'python-freezegun' 'python-cryptography' 'python-pip' + 'python-wheel' 'python-werkzeug' 'python-csv23' 'git' 'subversion') +source=("pip-${pkgver}.tar.gz::https://github.com/pypa/pip/archive/${pkgver}.tar.gz;) +sha512sums=('19cc1172540bec4b0c6facf55fa9c463bf8f4391dd1a643ac208c8e0b787950b2d72a6ec8f0772c7e6582c6b6a4a103f31ad58ffa2119fb574c174e5ec77b0c1') + +shopt -s extglob +prepare() { + cd "$srcdir/pip-$pkgver" + + # 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" + + python setup.py build + python2 setup.py build + + cd docs/ + PYTHONPATH="$srcdir/pip-$pkgver/src/" sphinx-build -W -b man -d build/doctrees/man man build/man -c html + mkdir -p build/man-pip2 + cd build/man + for manfile in *; do +sed 's/pip/pip2/g;s/PIP/PIP2/g' $manfile > ../man-pip2/${manfile/pip/pip2} + done +} + +check() { + cd "$srcdir"/pip-$pkgver + pip wheel -w tests/data/common_wheels -r tools/requirements/tests-common_wheels.txt + python setup.py install --root="$PWD/tmp_install" --optimize=1 + # appdirs: https://github.com/pypa/pip/issues/7784 + # build_env: TODO weird looking errors + # virtualenv: https://github.com/pypa/pip/issues/8273 + PYTHONPATH="$PWD/tmp_install/usr/lib/python3.8/site-packages" PATH="$PWD/tmp_install/usr/bin:$PATH" \ +python -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 \ + --deselect tests/unit/test_build_env.py::test_build_env_allow_only_one_install \ + --deselect tests/unit/test_direct_url_helpers.py::test_from_link_vcs_with_source_dir_obtains_commit_id \ + --deselect tests/unit/test_direct_url_helpers.py::test_from_link_vcs_without_source_dir \ + --deselect tests/unit/test_wheel_builder.py::test_should_cache_git_sha \ + --deselect tests/unit/resolution_resolvelib/test_requirement.py::test_new_resolver_full_resolve +} + +package_python-pip() { + depends=("${_deps[@]/#/python-}") + + cd
[arch-commits] Commit in python-pip/repos (testing-any testing-any/PKGBUILD)
Date: Tuesday, February 25, 2020 @ 15:31:40 Author: felixonmars Revision: 376189 archrelease: copy trunk to testing-any Added: python-pip/repos/testing-any/ python-pip/repos/testing-any/PKGBUILD (from rev 376188, python-pip/trunk/PKGBUILD) --+ PKGBUILD | 105 + 1 file changed, 105 insertions(+) Copied: python-pip/repos/testing-any/PKGBUILD (from rev 376188, python-pip/trunk/PKGBUILD) === --- testing-any/PKGBUILD(rev 0) +++ testing-any/PKGBUILD2020-02-25 15:31:40 UTC (rev 376189) @@ -0,0 +1,105 @@ +# Maintainer: Dan McGee +# Contributor: Eli Schwartz +# Contributor: Sebastien Binet + +pkgname=('python-pip' 'python2-pip') +pkgver=20.0 +pkgrel=1 +pkgdesc="The PyPA recommended tool for installing Python packages" +url="https://pip.pypa.io/; +arch=('any') +license=('MIT') +_deps=('appdirs' 'cachecontrol' 'colorama' 'contextlib2' 'distlib' 'distro' 'html5lib' + 'msgpack' 'packaging' 'pep517' 'progress' 'pyparsing' 'pytoml' 'requests' 'retrying' + 'setuptools' 'six' 'webencodings') +makedepends=("${_deps[@]/#/python-}" "${_deps[@]/#/python2-}" 'python2-ipaddress' 'python-sphinx') +checkdepends=('python-pytest-runner' 'python-scripttest' 'python-virtualenv' 'python-pretend' + 'python-yaml' 'python-mock' 'python-freezegun' 'python-cryptography' 'python-pip' + 'python-wheel' 'python-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=('3159efffba5eb3cc4c4302e3b4c842456f81a5fbbe72ea22eac035749da38320056ad417175feceee635710c8e1b8d38260e10c15185bfb42afbb7405eb3dc11' + '61732786303ca7ec7828d04099a884534034d50cdd9a7a0de2ace34c28381a992943880f03797a64d5d4f3a76d317d356f765e3ffd97ed611b234cc05528') + +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" + + python setup.py build + python2 setup.py build + + cd docs/ + PYTHONPATH="$srcdir/pip-$pkgver/src/" sphinx-build -W -b man -d build/doctrees/man man build/man -c html + mkdir -p build/man-pip2 + cd build/man + for manfile in *; do +sed 's/pip/pip2/g;s/PIP/PIP2/g' $manfile > ../man-pip2/${manfile/pip/pip2} + done +} + +check() { + cd "$srcdir"/pip-$pkgver + pip wheel -w tests/data/common_wheels -r tools/requirements/tests-common_wheels.txt + python 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" \ +python -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 + +} + +package_python-pip() { + depends=("${_deps[@]/#/python-}") + + cd "$srcdir/pip-$pkgver" + python setup.py install --prefix=/usr --root="$pkgdir" + + install -D -m644 LICENSE.txt \ + "$pkgdir/usr/share/licenses/$pkgname/LICENSE" + + install -Dm644 -t "$pkgdir"/usr/share/man/man1 docs/build/man/* + + PYTHONPATH="$pkgdir"/usr/lib/python3.8/site-packages "$pkgdir"/usr/bin/pip completion --bash \ +| install -Dm644 /dev/stdin "$pkgdir"/usr/share/bash-completion/completions/pip +} + +package_python2-pip() { +
[arch-commits] Commit in python-pip/repos (testing-any testing-any/PKGBUILD)
Date: Tuesday, February 18, 2020 @ 09:18:57 Author: felixonmars Revision: 375780 archrelease: copy trunk to testing-any Added: python-pip/repos/testing-any/ python-pip/repos/testing-any/PKGBUILD (from rev 375779, python-pip/trunk/PKGBUILD) --+ PKGBUILD | 89 + 1 file changed, 89 insertions(+) Copied: python-pip/repos/testing-any/PKGBUILD (from rev 375779, python-pip/trunk/PKGBUILD) === --- testing-any/PKGBUILD(rev 0) +++ testing-any/PKGBUILD2020-02-18 09:18:57 UTC (rev 375780) @@ -0,0 +1,89 @@ +# Maintainer: Dan McGee +# Contributor: Eli Schwartz +# Contributor: Sebastien Binet + +pkgname=('python-pip' 'python2-pip') +pkgver=19.3.1 +pkgrel=1 +pkgdesc="The PyPA recommended tool for installing Python packages" +url="https://pip.pypa.io/; +arch=('any') +license=('MIT') +_deps=('appdirs' 'cachecontrol' 'colorama' 'contextlib2' 'distlib' 'distro' 'html5lib' + 'msgpack' 'packaging' 'pep517' 'progress' 'pyparsing' 'pytoml' 'requests' 'retrying' + 'setuptools' 'six' 'webencodings') +makedepends=("${_deps[@]/#/python-}" "${_deps[@]/#/python2-}" 'python2-ipaddress' 'python-sphinx') +checkdepends=('python-pytest-runner' 'python-scripttest' 'python-virtualenv' 'python-pretend' + 'python-yaml' 'python-mock' 'python-freezegun' 'python-pip' 'python-wheel' + 'git' 'subversion') +source=("pip-${pkgver}.tar.gz::https://github.com/pypa/pip/archive/${pkgver}.tar.gz;) +sha512sums=('39446c0ab6e4495d98f22923a2a76901b024d9047b60d92580b21d447a718e5285cfd66f8ad0c20befcfe1abc7f06be29b6a5644d1b30265d3b67399fe76e033') + +shopt -s extglob +prepare() { + cd "$srcdir/pip-$pkgver" + + 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" + + python setup.py build + python2 setup.py build + + cd docs/ + PYTHONPATH="$srcdir/pip-$pkgver/src/" sphinx-build -W -b man -d build/doctrees/man man build/man -c html + mkdir -p build/man-pip2 + cd build/man + for manfile in *; do +sed 's/pip/pip2/g;s/PIP/PIP2/g' $manfile > ../man-pip2/${manfile/pip/pip2} + done +} + +check() { + cd "$srcdir"/pip-$pkgver + pip wheel -w tests/data/common_wheels -r tools/requirements/tests-common_wheels.txt + python setup.py install --root="$PWD/tmp_install" --optimize=1 + PYTHONPATH="$PWD/tmp_install/usr/lib/python3.8/site-packages" PATH="$PWD/tmp_install/usr/bin:$PATH" \ +python setup.py pytest --addopts "-m unit --junit-xml=junit/unit-test.xml" || warning "Tests failed" +} + +package_python-pip() { + depends=("${_deps[@]/#/python-}") + + cd "$srcdir/pip-$pkgver" + python setup.py install --prefix=/usr --root="$pkgdir" + + install -D -m644 LICENSE.txt \ + "$pkgdir/usr/share/licenses/$pkgname/LICENSE" + + install -Dm644 -t "$pkgdir"/usr/share/man/man1 docs/build/man/* + + PYTHONPATH="$pkgdir"/usr/lib/python3.8/site-packages "$pkgdir"/usr/bin/pip completion --bash \ +| install -Dm644 /dev/stdin "$pkgdir"/usr/share/bash-completion/completions/pip +} + +package_python2-pip() { + depends=("${_deps[@]/#/python2-}" 'python2-ipaddress') + conflicts=('python-pyinstall') + replaces=('python-pyinstall') + + cd "$srcdir/pip-$pkgver" + python2 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 + python2 -m compileall ${pkgdir}/usr/lib/python2.7/site-packages/pip/__init__.py + + install -D -m644 LICENSE.txt \ + "$pkgdir/usr/share/licenses/$pkgname/LICENSE" + + install -Dm644 -t "$pkgdir"/usr/share/man/man1 docs/build/man-pip2/* + + PYTHONPATH="$pkgdir"/usr/lib/python2.7/site-packages "$pkgdir"/usr/bin/pip2 completion --bash \ +| install -Dm644 /dev/stdin "$pkgdir"/usr/share/bash-completion/completions/pip2 +}
[arch-commits] Commit in python-pip/repos (testing-any testing-any/PKGBUILD)
Date: Tuesday, December 24, 2019 @ 21:50:03 Author: felixonmars Revision: 372227 archrelease: copy trunk to testing-any Added: python-pip/repos/testing-any/ python-pip/repos/testing-any/PKGBUILD (from rev 372226, python-pip/trunk/PKGBUILD) --+ PKGBUILD | 89 + 1 file changed, 89 insertions(+) Copied: python-pip/repos/testing-any/PKGBUILD (from rev 372226, python-pip/trunk/PKGBUILD) === --- testing-any/PKGBUILD(rev 0) +++ testing-any/PKGBUILD2019-12-24 21:50:03 UTC (rev 372227) @@ -0,0 +1,89 @@ +# Maintainer: Dan McGee +# Contributor: Eli Schwartz +# Contributor: Sebastien Binet + +pkgname=('python-pip' 'python2-pip') +pkgver=19.3 +pkgrel=1 +pkgdesc="The PyPA recommended tool for installing Python packages" +url="https://pip.pypa.io/; +arch=('any') +license=('MIT') +_deps=('setuptools' 'appdirs' 'cachecontrol' 'colorama' 'contextlib2' 'distlib' 'distro' 'html5lib' + 'msgpack' 'packaging' 'pep517' 'progress' 'pyparsing' 'pytoml' 'requests' 'retrying' + 'setuptools' 'six' 'webencodings') +makedepends=("${_deps[@]/#/python-}" "${_deps[@]/#/python2-}" 'python2-ipaddress' 'python-sphinx') +checkdepends=('python-pytest-runner' 'python-scripttest' 'python-virtualenv' 'python-pretend' + 'python-yaml' 'python-mock' 'python-freezegun' 'python-pip' 'python-wheel' + 'git' 'subversion') +source=("pip-${pkgver}.tar.gz::https://github.com/pypa/pip/archive/${pkgver}.tar.gz;) +sha512sums=('4498d1d26f19ddfb7246765e5cead0ee16ffc3d9413c4b179573d12686a7159749dbfb6bea5c901828bddb08e526b1cfea094fa3283b146e0a2498b4c9b67f97') + +shopt -s extglob +prepare() { + cd "$srcdir/pip-$pkgver" + + 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" + + python setup.py build + python2 setup.py build + + cd docs/ + PYTHONPATH="$srcdir/pip-$pkgver/src/" sphinx-build -W -b man -d build/doctrees/man man build/man -c html + mkdir -p build/man-pip2 + cd build/man + for manfile in *; do +sed 's/pip/pip2/g;s/PIP/PIP2/g' $manfile > ../man-pip2/${manfile/pip/pip2} + done +} + +check() { + cd "$srcdir"/pip-$pkgver + pip wheel -w tests/data/common_wheels -r tools/requirements/tests-common_wheels.txt + python setup.py install --root="$PWD/tmp_install" --optimize=1 + PYTHONPATH="$PWD/tmp_install/usr/lib/python3.8/site-packages" PATH="$PWD/tmp_install/usr/bin:$PATH" \ +python setup.py pytest --addopts "-m unit --junit-xml=junit/unit-test.xml" || warning "Tests failed" +} + +package_python-pip() { + depends=("${_deps[@]/#/python-}") + + cd "$srcdir/pip-$pkgver" + python setup.py install --prefix=/usr --root="$pkgdir" + + install -D -m644 LICENSE.txt \ + "$pkgdir/usr/share/licenses/$pkgname/LICENSE" + + install -Dm644 -t "$pkgdir"/usr/share/man/man1 docs/build/man/* + + PYTHONPATH="$pkgdir"/usr/lib/python3.8/site-packages "$pkgdir"/usr/bin/pip completion --bash \ +| install -Dm644 /dev/stdin "$pkgdir"/usr/share/bash-completion/completions/pip +} + +package_python2-pip() { + depends=("${_deps[@]/#/python2-}" 'python2-ipaddress') + conflicts=('python-pyinstall') + replaces=('python-pyinstall') + + cd "$srcdir/pip-$pkgver" + python2 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 + python2 -m compileall ${pkgdir}/usr/lib/python2.7/site-packages/pip/__init__.py + + install -D -m644 LICENSE.txt \ + "$pkgdir/usr/share/licenses/$pkgname/LICENSE" + + install -Dm644 -t "$pkgdir"/usr/share/man/man1 docs/build/man-pip2/* + + PYTHONPATH="$pkgdir"/usr/lib/python2.7/site-packages "$pkgdir"/usr/bin/pip2 completion --bash \ +| install -Dm644 /dev/stdin "$pkgdir"/usr/share/bash-completion/completions/pip2 +}
[arch-commits] Commit in python-pip/repos (testing-any testing-any/PKGBUILD)
Date: Friday, August 23, 2019 @ 07:36:29 Author: felixonmars Revision: 360567 archrelease: copy trunk to testing-any Added: python-pip/repos/testing-any/ python-pip/repos/testing-any/PKGBUILD (from rev 360566, python-pip/trunk/PKGBUILD) --+ PKGBUILD | 95 + 1 file changed, 95 insertions(+) Copied: python-pip/repos/testing-any/PKGBUILD (from rev 360566, python-pip/trunk/PKGBUILD) === --- testing-any/PKGBUILD(rev 0) +++ testing-any/PKGBUILD2019-08-23 07:36:29 UTC (rev 360567) @@ -0,0 +1,95 @@ +# Maintainer: Dan McGee +# Contributor: Eli Schwartz +# Contributor: Sebastien Binet + +pkgname=('python-pip' 'python2-pip') +pkgver=19.2.2 +pkgrel=1 +pkgdesc="The PyPA recommended tool for installing Python packages" +url="https://pip.pypa.io/; +arch=('any') +license=('MIT') +_deps=('setuptools' 'appdirs' 'cachecontrol' 'colorama' 'distlib' 'distro' 'html5lib' 'lockfile' + 'msgpack' 'six' 'packaging' 'pep517' 'progress' 'pytoml' 'retrying' 'requests' 'urllib3' + 'webencodings') +makedepends=("${_deps[@]/#/python-}" "${_deps[@]/#/python2-}" 'python2-ipaddress' 'python-sphinx') +checkdepends=('python-pytest-runner' 'python-scripttest' 'python-virtualenv' 'python-pretend' + 'python-yaml' 'python-mock' 'python-freezegun' 'python-pip' 'python-wheel' + 'git' 'subversion') +source=("pip-${pkgver}.tar.gz::https://github.com/pypa/pip/archive/${pkgver}.tar.gz;) +sha512sums=('ca634925e21aba338aa65f80d258833c6622b4c1d85eaf827fa5439aed62d7c6d64fde91cfebc05bd83eb215b019b690379cf5c4ac85a2f32d6357e6bd95fd88') + +shopt -s extglob +prepare() { + cd "$srcdir/pip-$pkgver" + + rm -rf src/pip/_vendor/!(__init__.py) + sed -i -e 's/DEBUNDLED = False/DEBUNDLED = True/' \ +src/pip/_vendor/__init__.py + + # pytest 4 + sed -i 's/get_marker/get_closest_marker/' tests/conftest.py +} + +build() { + cd "$srcdir/pip-$pkgver" + + python setup.py build + python2 setup.py build + + cd docs/ + PYTHONPATH="$srcdir/pip-$pkgver/src/" sphinx-build -W -b man -d build/doctrees/man man build/man -c html + mkdir -p build/man-pip2 + cd build/man + for manfile in *; do +sed 's/pip/pip2/g;s/PIP/PIP2/g' $manfile > ../man-pip2/${manfile/pip/pip2} + done +} + +check() { + ( +cd "$srcdir"/pip-$pkgver +pip wheel -w tests/data/common_wheels -r tools/tests-common_wheels-requirements.txt +python -m venv "$srcdir/pyvenv" --system-site-packages +. "$srcdir/pyvenv/bin/activate" +python setup.py install +python setup.py pytest + ) || warning "Tests failed" +} + +package_python-pip() { + depends=("${_deps[@]/#/python-}") + + cd "$srcdir/pip-$pkgver" + python setup.py install --prefix=/usr --root="$pkgdir" + + install -D -m644 LICENSE.txt \ + "$pkgdir/usr/share/licenses/$pkgname/LICENSE" + + install -Dm644 -t "$pkgdir"/usr/share/man/man1 docs/build/man/* + + PYTHONPATH="$pkgdir"/usr/lib/python3.7/site-packages "$pkgdir"/usr/bin/pip completion --bash \ +| install -Dm644 /dev/stdin "$pkgdir"/usr/share/bash-completion/completions/pip +} + +package_python2-pip() { + depends=("${_deps[@]/#/python2-}" 'python2-ipaddress') + conflicts=('python-pyinstall') + replaces=('python-pyinstall') + + cd "$srcdir/pip-$pkgver" + python2 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 + python2 -m compileall ${pkgdir}/usr/lib/python2.7/site-packages/pip/__init__.py + + install -D -m644 LICENSE.txt \ + "$pkgdir/usr/share/licenses/$pkgname/LICENSE" + + install -Dm644 -t "$pkgdir"/usr/share/man/man1 docs/build/man-pip2/* + + PYTHONPATH="$pkgdir"/usr/lib/python2.7/site-packages "$pkgdir"/usr/bin/pip2 completion --bash \ +| install -Dm644 /dev/stdin "$pkgdir"/usr/share/bash-completion/completions/pip2 +}
[arch-commits] Commit in python-pip/repos (testing-any testing-any/PKGBUILD)
Date: Wednesday, November 28, 2018 @ 21:24:17 Author: felixonmars Revision: 340571 archrelease: copy trunk to testing-any Added: python-pip/repos/testing-any/ python-pip/repos/testing-any/PKGBUILD (from rev 340570, python-pip/trunk/PKGBUILD) --+ PKGBUILD | 86 + 1 file changed, 86 insertions(+) Copied: python-pip/repos/testing-any/PKGBUILD (from rev 340570, python-pip/trunk/PKGBUILD) === --- testing-any/PKGBUILD(rev 0) +++ testing-any/PKGBUILD2018-11-28 21:24:17 UTC (rev 340571) @@ -0,0 +1,86 @@ +# Maintainer: Dan McGee +# Contributor: Eli Schwartz +# Contributor: Sebastien Binet + +pkgname=('python-pip' 'python2-pip') +pkgver=18.1 +pkgrel=1 +pkgdesc="The PyPA recommended tool for installing Python packages" +url="https://pip.pypa.io/; +arch=('any') +license=('MIT') +_deps=('setuptools' 'appdirs' 'cachecontrol' 'colorama' 'distlib' 'distro' 'html5lib' 'lockfile' + 'msgpack' 'six' 'packaging' 'pep517' 'progress' 'pytoml' 'retrying' 'requests' 'urllib3' + 'webencodings') +makedepends=("${_deps[@]/#/python-}" "${_deps[@]/#/python2-}" 'python2-ipaddress' 'python-sphinx') +checkdepends=('python-pytest-runner' 'python-scripttest' 'python-virtualenv' 'python-pretend' + 'python-yaml' 'python-mock' 'python-freezegun') +source=("pip-${pkgver}.tar.gz::https://github.com/pypa/pip/archive/${pkgver}.tar.gz;) +sha512sums=('ddb67ad52c2b4f0cae89e11bd90dbd20275fce0ee34a8e0929210a8907cd61c2298221a4ddf1e7b196b0274241eb88097decbbb84196ab30dd4e979e7378d91f') + +shopt -s extglob +prepare() { + cd "$srcdir/pip-$pkgver" + + rm -rf src/pip/_vendor/!(__init__.py) + sed -i -e 's/DEBUNDLED = False/DEBUNDLED = True/' \ + -e '/cachecontrol/a\vendored("pep517")' \ +src/pip/_vendor/__init__.py +} + +build() { + cd "$srcdir/pip-$pkgver" + + python setup.py build + python2 setup.py build + + cd docs/ + PYTHONPATH="$srcdir/pip-$pkgver/src/" sphinx-build -W -b man -d build/doctrees/man man build/man -c html + mkdir -p build/man-pip2 + cd build/man + for manfile in *; do +sed 's/pip/pip2/g;s/PIP/PIP2/g' $manfile > ../man-pip2/${manfile/pip/pip2} + done +} + +check() { + cd "$srcdir/pip-$pkgver" + python setup.py pytest || warning "Tests failed" +} + +package_python-pip() { + depends=("${_deps[@]/#/python-}") + + cd "$srcdir/pip-$pkgver" + python setup.py install --prefix=/usr --root="$pkgdir" + + install -D -m644 LICENSE.txt \ + "$pkgdir/usr/share/licenses/$pkgname/LICENSE" + + install -Dm644 -t "$pkgdir"/usr/share/man/man1 docs/build/man/* + + PYTHONPATH="$pkgdir"/usr/lib/python3.7/site-packages "$pkgdir"/usr/bin/pip completion --bash \ +| install -Dm644 /dev/stdin "$pkgdir"/usr/share/bash-completion/completions/pip +} + +package_python2-pip() { + depends=("${_deps[@]/#/python2-}" 'python2-ipaddress') + conflicts=('python-pyinstall') + replaces=('python-pyinstall') + + cd "$srcdir/pip-$pkgver" + python2 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 + python2 -m compileall ${pkgdir}/usr/lib/python2.7/site-packages/pip/__init__.py + + install -D -m644 LICENSE.txt \ + "$pkgdir/usr/share/licenses/$pkgname/LICENSE" + + install -Dm644 -t "$pkgdir"/usr/share/man/man1 docs/build/man-pip2/* + + PYTHONPATH="$pkgdir"/usr/lib/python2.7/site-packages "$pkgdir"/usr/bin/pip2 completion --bash \ +| install -Dm644 /dev/stdin "$pkgdir"/usr/share/bash-completion/completions/pip2 +}
[arch-commits] Commit in python-pip/repos (testing-any testing-any/PKGBUILD)
Date: Saturday, May 19, 2018 @ 15:11:43 Author: felixonmars Revision: 324596 archrelease: copy trunk to testing-any Added: python-pip/repos/testing-any/ python-pip/repos/testing-any/PKGBUILD (from rev 324595, python-pip/trunk/PKGBUILD) --+ PKGBUILD | 84 + 1 file changed, 84 insertions(+) Copied: python-pip/repos/testing-any/PKGBUILD (from rev 324595, python-pip/trunk/PKGBUILD) === --- testing-any/PKGBUILD(rev 0) +++ testing-any/PKGBUILD2018-05-19 15:11:43 UTC (rev 324596) @@ -0,0 +1,84 @@ +# $Id$ +# Maintainer: Dan McGee+# Contributor: Eli Schwartz +# Contributor: Sebastien Binet + +pkgname=('python-pip' 'python2-pip') +pkgver=10.0.1 +pkgrel=1 +pkgdesc="The PyPA recommended tool for installing Python packages" +url="https://pip.pypa.io/; +arch=('any') +license=('MIT') +_deps=('setuptools' 'appdirs' 'cachecontrol' 'colorama' 'distlib' 'distro' + 'html5lib' 'lockfile' 'msgpack' 'packaging' 'progress' 'pyparsing' 'pytoml' + 'requests' 'retrying' 'six' 'webencodings') +makedepends=("${_deps[@]/#/python-}" "${_deps[@]/#/python2-}" 'python2-ipaddress' 'python-sphinx') +source=("pip-${pkgver}.tar.gz::https://github.com/pypa/pip/archive/${pkgver}.tar.gz; + "fix-un-vendored-support-add-missing-entry-for-urllib.patch::https://github.com/pypa/pip/pull/5418.patch;) +md5sums=('ce49a0af6d2bb9df5de9aaf4e7f6f631' + '0bcc62c16f35673f682122339392a72d') +sha256sums=('2c39367b8529f50746b399d7e4563df48a148b8558ae6f7236b51c155359365a' +'0ebaa4171bcd5c786a2b2c44b0fb46711db0c5a3dcc06ba5008f6569bcbe37b5') + +shopt -s extglob +prepare() { + cd "$srcdir/pip-$pkgver" + + patch -p1 -i ../fix-un-vendored-support-add-missing-entry-for-urllib.patch + + rm -rf src/pip/_vendor/!(__init__.py) + sed -i 's/DEBUNDLED = False/DEBUNDLED = True/' src/pip/_vendor/__init__.py +} + +build() { + cd "$srcdir/pip-$pkgver" + + python setup.py build + python2 setup.py build + + cd docs/ + PYTHONPATH="$srcdir/pip-$pkgver/src/" make man + mkdir -p build/man-pip2 + cd build/man + for manfile in *; do +sed 's/pip/pip2/g;s/PIP/PIP2/g' $manfile > ../man-pip2/${manfile/pip/pip2} + done +} + +package_python-pip() { + depends=("${_deps[@]/#/python-}") + + cd "$srcdir/pip-$pkgver" + python setup.py install --prefix=/usr --root="$pkgdir" + + install -D -m644 LICENSE.txt \ + "$pkgdir/usr/share/licenses/$pkgname/LICENSE" + + install -Dm644 -t "$pkgdir"/usr/share/man/man1 docs/build/man/* + + 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 +} + +package_python2-pip() { + depends=("${_deps[@]/#/python2-}" 'python2-ipaddress') + conflicts=('python-pyinstall') + replaces=('python-pyinstall') + + cd "$srcdir/pip-$pkgver" + python2 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 + python2 -m compileall ${pkgdir}/usr/lib/python2.7/site-packages/pip/__init__.py + + install -D -m644 LICENSE.txt \ + "$pkgdir/usr/share/licenses/$pkgname/LICENSE" + + install -Dm644 -t "$pkgdir"/usr/share/man/man1 docs/build/man-pip2/* + + PYTHONPATH="$pkgdir"/usr/lib/python2.7/site-packages "$pkgdir"/usr/bin/pip2 completion --bash \ +| install -Dm644 /dev/stdin "$pkgdir"/usr/share/bash-completion/completions/pip2 +}
[arch-commits] Commit in python-pip/repos (testing-any testing-any/PKGBUILD)
Date: Monday, December 12, 2016 @ 03:08:11 Author: felixonmars Revision: 283046 archrelease: copy trunk to testing-any Added: python-pip/repos/testing-any/ python-pip/repos/testing-any/PKGBUILD (from rev 283045, python-pip/trunk/PKGBUILD) --+ PKGBUILD | 44 1 file changed, 44 insertions(+) Copied: python-pip/repos/testing-any/PKGBUILD (from rev 283045, python-pip/trunk/PKGBUILD) === --- testing-any/PKGBUILD(rev 0) +++ testing-any/PKGBUILD2016-12-12 03:08:11 UTC (rev 283046) @@ -0,0 +1,44 @@ +# $Id$ +# Maintainer: Dan McGee+# Contributor: Sebastien Binet + +pkgname=('python-pip' 'python2-pip') +pkgver=9.0.1 +pkgrel=1 +pkgdesc="The PyPA recommended tool for installing Python packages" +url="https://pip.pypa.io/; +arch=('any') +license=('MIT') +makedepends=('python' 'python-setuptools' 'python2' 'python2-setuptools') +source=(https://pypi.io/packages/source/p/pip/pip-${pkgver}.tar.gz) +md5sums=('35f01da33009719497f01a4ba69d63c9') +sha256sums=('09f243e1a7b461f654c26a725fa373211bb7ff17a9300058b205c61658ca940d') + +package_python-pip() { + depends=('python' 'python-setuptools') + + cd "$srcdir/pip-$pkgver" + python setup.py build + python setup.py install --prefix=/usr --root="$pkgdir" + + install -D -m644 LICENSE.txt \ + "$pkgdir/usr/share/licenses/$pkgname/LICENSE" +} + +package_python2-pip() { + depends=('python2' 'python2-setuptools') + conflicts=('python-pyinstall') + replaces=('python-pyinstall') + + cd "$srcdir/pip-$pkgver" + python2 setup.py build + python2 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 + python2 -m compileall ${pkgdir}/usr/lib/python2.7/site-packages/pip/__init__.py + + install -D -m644 LICENSE.txt \ + "$pkgdir/usr/share/licenses/$pkgname/LICENSE" +}
[arch-commits] Commit in python-pip/repos (testing-any testing-any/PKGBUILD)
Date: Wednesday, December 24, 2014 @ 17:31:15 Author: dan Revision: 228020 archrelease: copy trunk to testing-any Added: python-pip/repos/testing-any/ python-pip/repos/testing-any/PKGBUILD (from rev 228019, python-pip/trunk/PKGBUILD) --+ PKGBUILD | 44 1 file changed, 44 insertions(+) Copied: python-pip/repos/testing-any/PKGBUILD (from rev 228019, python-pip/trunk/PKGBUILD) === --- testing-any/PKGBUILD(rev 0) +++ testing-any/PKGBUILD2014-12-24 16:31:15 UTC (rev 228020) @@ -0,0 +1,44 @@ +# $Id$ +# Maintainer: Dan McGee d...@archlinux.org +# Contributor: Sebastien Binet binet@lblbox + +pkgname=('python-pip' 'python2-pip') +pkgver=6.0.3 +pkgrel=1 +pkgdesc=The PyPA recommended tool for installing Python packages +url=https://pip.pypa.io/; +arch=('any') +license=('MIT') +makedepends=('python' 'python-setuptools' 'python2' 'python2-setuptools') +source=(http://pypi.python.org/packages/source/p/pip/pip-${pkgver}.tar.gz) +md5sums=('1ca6788e57a176abbdf6d99d69f54ae0') +sha256sums=('b091a35f5fa0faffac0b27b97e1e1e93ffe63b463c2ea8dbde0c1fb987933614') + +package_python-pip() { + depends=('python' 'python-setuptools') + + cd $srcdir/pip-$pkgver + python setup.py build + python setup.py install --prefix=/usr --root=$pkgdir + + install -D -m644 LICENSE.txt \ + $pkgdir/usr/share/licenses/$pkgname/LICENSE +} + +package_python2-pip() { + depends=('python2' 'python2-setuptools') + conflicts=('python-pyinstall') + replaces=('python-pyinstall') + + cd $srcdir/pip-$pkgver + python2 setup.py build + python2 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 + python2 -m compileall ${pkgdir}/usr/lib/python2.7/site-packages/pip/__init__.py + + install -D -m644 LICENSE.txt \ + $pkgdir/usr/share/licenses/$pkgname/LICENSE +}
[arch-commits] Commit in python-pip/repos (testing-any testing-any/PKGBUILD)
Date: Saturday, August 17, 2013 @ 12:48:22 Author: angvp Revision: 193163 archrelease: copy trunk to testing-any Added: python-pip/repos/testing-any/ python-pip/repos/testing-any/PKGBUILD (from rev 193162, python-pip/trunk/PKGBUILD) --+ PKGBUILD | 46 ++ 1 file changed, 46 insertions(+) Copied: python-pip/repos/testing-any/PKGBUILD (from rev 193162, python-pip/trunk/PKGBUILD) === --- testing-any/PKGBUILD(rev 0) +++ testing-any/PKGBUILD2013-08-17 10:48:22 UTC (rev 193163) @@ -0,0 +1,46 @@ +# $Id$ +# Maintainer: Dan McGee d...@archlinux.org +# Contributor: Sebastien Binet binet@lblbox + +pkgname=('python-pip' 'python2-pip') +pkgver=1.4.1 +pkgrel=2 +pkgdesc=An easy_install replacement for installing pypi python packages +url=http://www.pip-installer.org/; +arch=('any') +license=('MIT') +makedepends=('python' 'python-setuptools' 'python2' 'python2-setuptools') +source=(http://pypi.python.org/packages/source/p/pip/pip-${pkgver}.tar.gz) + +package_python-pip() { + depends=('python' 'python-setuptools') + + cd $srcdir/pip-$pkgver + python setup.py build + python setup.py install --prefix=/usr --root=$pkgdir + + ln $pkgdir/usr/bin/pip $pkgdir/usr/bin/pip3 + + install -D -m644 LICENSE.txt \ + $pkgdir/usr/share/licenses/$pkgname/LICENSE +} + +package_python2-pip() { + depends=('python2' 'python2-setuptools') + conflicts=('python-pyinstall') + replaces=('python-pyinstall') + + cd $srcdir/pip-$pkgver + python2 setup.py build + python2 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 +} + +md5sums=('6afbb46aeb48abac658d4df742bff714') +sha256sums=('4e7a06554711a624c35d0c646f63674b7f6bfc7f80221bf1eb1f631bd890d04e')