forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'github/pr/697'.
Gentoo-Bug: 558182 PR-Number: gentoo#697
- Loading branch information
Showing
67 changed files
with
919 additions
and
300 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# Copyright 1999-2016 Gentoo Foundation | ||
# Distributed under the terms of the GNU General Public License v2 | ||
# $Id$ | ||
|
||
EAPI=5 | ||
|
||
PYTHON_COMPAT=( python2_7 python3_{3,4,5} pypy pypy3 ) | ||
|
||
inherit distutils-r1 eutils | ||
|
||
DESCRIPTION="The httplib2 caching algorithms packaged up for use with requests" | ||
HOMEPAGE="https://github.com/ionrock/cachecontrol https://pypi.python.org/pypi/cachecontrol/" | ||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" | ||
|
||
LICENSE="MIT" | ||
SLOT="0" | ||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86" | ||
IUSE="test" | ||
|
||
RDEPEND=" | ||
dev-python/requests[${PYTHON_USEDEP}] | ||
>=dev-python/lockfile-0.9[${PYTHON_USEDEP}]" | ||
DEPENDS="${RDEPEND} | ||
dev-python/setuptools[${PYTHON_USEDEP}] | ||
test? ( dev-python/pytest[${PYTHON_USEDEP}] ) | ||
" | ||
|
||
# Not included | ||
RESTRICT=test | ||
|
||
python_test() { | ||
py.test -v -v || die | ||
} | ||
|
||
pkg_postinst() { | ||
optfeature "Redis based caches" dev-python/redis-py | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
DIST CacheControl-0.11.5.tar.gz 13104 SHA256 b78484d6feb17b501267f4048c364a8fc26fcef35ca3ff62bdba63d41fa4cf42 SHA512 2acce5a8be2e409a1a18254cfe71314074037bce3341f8b8fdec52c43500c90bfdb6063b2121c5cf6c8a2fc7c0903e4fd0c15813ffdfa547810b33571d211deb WHIRLPOOL 5e12640ba5c952ee8a83f5271bbbd105f148cd080bf6ae5c2cbc9c6cc20361005aa5cf1a95feaa1a808c56c26b7abdfbde3b7bffc873f26072d23262c12b49ca | ||
DIST CacheControl-0.11.6.tar.gz 13642 SHA256 37dfcb453e7f186c95b330834a1673e022db900d5e3a883f80257c4369477695 SHA512 5640805db3a0f3e0e96192f2122159f0391be4821934ae6624b2778e91de319d5acf0e8693d00cf9910314ff7e2e1e7d2c82789b46fb012363fbb1c38dcb0d29 WHIRLPOOL 9187c18e12196b379136afa89d64c5dda461f9f0fa1764a5922046d579d9c10921a7bc8f8b409db29cd51d6bc0c358ab9bd8f3cf142de375da2b0a5723ed4117 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
DIST ipython-3.2.1.tar.gz 10884249 SHA256 c913adee7ae5b338055274c51a7d2b3cea468b5b316046fa520cd8a434b09177 SHA512 de7723e3b859d21a58a24456c76c8d8ec98c019f290f61269f46270e7647d2b49a98671138fecd75cb6f46384fde7e09618eb5c85c175e0e442c7fae7328d8fe WHIRLPOOL 9f020c167559259931dcb177d0c3a5211939632e5775c2627795ba390cf57bd62c378c15b7ee9b9ed2079180f8df8e062eb9673ed9cfc025a56f1da82c9428d1 | ||
DIST ipython-4.0.1.tar.gz 6207566 SHA256 3bd3b78abc4f43b9ea7fa5353a2a9ba01af8ac4aec5d11e78fa5cbcec105432e SHA512 88419feca21c762a8553b4c11661e28b3305742fc89309abfd46b1213da210249b4781b754996835a2cc539569ae7cb816ed26bbaddbf15529eeb6479660265e WHIRLPOOL 58c17378fbcbac94e1585cce0cdd00996f7df20f5781a88e1e7d56b9fe2db81fe3282211dba31e8f54d2e50db869d2cce2670cfebc5c868455f481064e0089c6 | ||
DIST ipython-4.0.2.tar.gz 6206506 SHA256 10cb9cd4b7730349241bb9053dcd90c3e1f11f2b5baafa2a914b69acc94a35a8 SHA512 b7a05c190286e30fd994b81bfb251f5e542d22b96dbdacbe611eb62c690ea79e83f932252cc360b2290c939376540b92fad0263188798de350817850796c1966 WHIRLPOOL 6fa157f2bb6fe4227f0a0863c9dde9f657f5eb02ef49dad172e7c686e864b29cd8305f67bfed3dcf79449a664d851cb73a7ec6c631792f091dd28a1476db4bb3 | ||
DIST ipython-4.0.3.tar.gz 6207899 SHA256 3a928f59e8ac8dd97858c28390867c87c09510f1f8bbe97e4e9c6b036eb84fc0 SHA512 1e2deb597348757e69aaeadd0632cf984056e5f7278ee5bbbd7b4233581323b07f55685b1891c23dc0977d9f30f7dc734dcf2216bc8876424cdb0f7a9294fecf WHIRLPOOL 1beb60e6daf3cea4609318e87a07307843eeb1002847f8c3c5fbe8e114ab29cb052c810884b410f1e8414437b91c5335048106756e2d88a82a7e440e3ff8fc17 |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
DIST packaging-15.3.tar.gz 34359 SHA256 1e9a6b9ad621bc1dbd3aa8dfff52abc4b44f5c14fbb406731c25cba250a5f61e SHA512 bd59408dc6ea2a4f8cb3a84b4d1e4284148a0f6fb2d3203f90885f608871f1f2315201427d08d2ca7b2d706bc5457c8a521b5edda9187e794522dbb8e46a663c WHIRLPOOL 197e9f26022383bf5962efbd562f1502bd5f0972a782c94f3188961d8d14167c25febee459ad5b3a731bafaf3f7e53e5b051d383382c169b58aff1cb521442f3 | ||
DIST packaging-16.0.tar.gz 40167 SHA256 a32895134cd7b86ee8add60a3be5bfd7ef3f30e73e5b54221dbe67d0e0690689 SHA512 7672f0a51f73543e39ad80b021d288c0e235c2ace9add5022a1d494b2711ce55ba7d05d92245cbb96fa354d67fdfbdbdd2e1858ace3d6d2761869bc5ddaaeddd WHIRLPOOL be813ffbcc614e5be3bc9bb1e704e9c65c194b47172bb0c9bf0113ea8456256fa8263faec33b3e001b6d71ed7fd8763796afd6eeb608f3a65ea987db48304d5a |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
# Copyright 1999-2016 Gentoo Foundation | ||
# Distributed under the terms of the GNU General Public License v2 | ||
# $Id$ | ||
|
||
EAPI=5 | ||
|
||
PYTHON_COMPAT=( python2_7 python3_{3,4,5} pypy pypy3 ) | ||
|
||
inherit distutils-r1 | ||
|
||
DESCRIPTION="Core utilities for Python packages" | ||
HOMEPAGE="https://github.com/pypa/packaging https://pypi.python.org/pypi/packaging" | ||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" | ||
|
||
SLOT="0" | ||
LICENSE="|| ( Apache-2.0 BSD-2 )" | ||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~hppa-hpux ~ia64-hpux ~x86-interix ~amd64-linux ~arm-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" | ||
IUSE="test" | ||
|
||
RDEPEND="dev-python/pyparsing[${PYTHON_USEDEP}]" | ||
DEPEND="${RDEPEND} | ||
test? ( | ||
dev-python/pretend[${PYTHON_USEDEP}] | ||
dev-python/pytest[${PYTHON_USEDEP}] | ||
) | ||
" | ||
|
||
python_test() { | ||
py.test --capture=no --strict -v || die | ||
} | ||
|
||
pkg_preinst() { | ||
# Remove this in the next version bump | ||
_cleanup() { | ||
local pyver=$("${PYTHON}" -c "from distutils.sysconfig import get_python_version; print(get_python_version())") | ||
local egginfo="${ROOT%/}$(python_get_sitedir)/${P}-py${pyver}.egg-info" | ||
if [[ -d ${egginfo} ]]; then | ||
echo rm -r "${egginfo}" | ||
rm -r "${egginfo}" || die "Failed to remove egg-info directory" | ||
fi | ||
} | ||
python_foreach_impl _cleanup | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
DIST pip-7.1.2.tar.gz 1049170 SHA256 ca047986f0528cfa975a14fb9f7f106271d4e0c3fe1ddced6c1db2e7ae57a477 SHA512 78082afe6b559bf87f91ae9b6d304cfbfce00206e09be42fdae9d449a55cd8d968df6873e834191d0b0e6baae29e72eb3eee42386ff7c5dc9c29b6c28b754449 WHIRLPOOL 953fdc9104f3ac34c9104ec93948f58c4b0e193f18da60d3247d801c283c574490f8b91146e4278888c0b920090f537095c1a1693ca352d062dd98473390fdc9 | ||
DIST pip-8.0.0.tar.gz 1129857 SHA256 90112b296152f270cb8dddcd19b7b87488d9e002e8cf622e14c4da9c2f6319b1 SHA512 2277dbe74af2dd3a3280b4115ebdbe2de83a5fbfdd3f15e2627441478bd08f21b46771153100ed9934a48a3662846aa84310f722029e6f56fa9a400dbd61e910 WHIRLPOOL 8f70adb37fdabf91db8c5a9d257daa8a0df0e6c6d8f077f19288033a41bca445427173bb32c4b18019096f2191b3b5d2381124c0e3a664da79bb881a0cf60610 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
# Copyright 1999-2016 Gentoo Foundation | ||
# Distributed under the terms of the GNU General Public License v2 | ||
# $Id$ | ||
|
||
EAPI=5 | ||
|
||
PYTHON_COMPAT=( python2_7 python3_{3,4,5} pypy ) | ||
PYTHON_REQ_USE="threads(+)" | ||
|
||
inherit bash-completion-r1 distutils-r1 | ||
|
||
DESCRIPTION="Installs python packages -- replacement for easy_install" | ||
HOMEPAGE="https://pip.pypa.io/ https://pypi.python.org/pypi/pip/ https://github.com/pypa/pip/" | ||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" | ||
|
||
LICENSE="MIT" | ||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux" | ||
SLOT="0" | ||
|
||
# Check pip/_vendor/vendor.txt for this | ||
VENDOR_DEPEND=" | ||
>=dev-python/distlib-0.2.1[${PYTHON_USEDEP}] | ||
>=dev-python/html5lib-0.9999999[${PYTHON_USEDEP}] | ||
>=dev-python/six-1.9[${PYTHON_USEDEP}] | ||
>=dev-python/colorama-0.3.6[${PYTHON_USEDEP}] | ||
>=dev-python/requests-2.9.1[${PYTHON_USEDEP}] | ||
>=dev-python/CacheControl-0.11.5[${PYTHON_USEDEP}] | ||
>=dev-python/lockfile-0.12.2[${PYTHON_USEDEP}] | ||
>=dev-python/progress-1.2[${PYTHON_USEDEP}] | ||
>=dev-python/packaging-16.0[${PYTHON_USEDEP}] | ||
>=dev-python/retrying-1.3.3[${PYTHON_USEDEP}] | ||
>=dev-python/pyparsing-2.0.7[${PYTHON_USEDEP}] | ||
virtual/python-ipaddress[${PYTHON_USEDEP}] | ||
" | ||
RDEPEND="${VENDOR_DEPEND} | ||
>=dev-python/setuptools-19.4[${PYTHON_USEDEP}] | ||
" | ||
DEPEND="${RDEPEND}" | ||
|
||
# required test data isn't bundled with the tarball | ||
RESTRICT="test" | ||
|
||
PATCHES=( | ||
"${FILESDIR}"/${PN}-6.0.2-disable-version-check.patch | ||
"${FILESDIR}"/${PN}-7.1.2-unbundle.patch | ||
) | ||
|
||
python_prepare_all() { | ||
mv pip/_vendor/__init__.py "${T}" || die | ||
rm -r pip/_vendor/* || die | ||
mv "${T}"/__init__.py pip/_vendor/__init__.py || die | ||
|
||
distutils-r1_python_prepare_all | ||
} | ||
|
||
python_install_all() { | ||
local DOCS=( AUTHORS.txt docs/*.rst ) | ||
distutils-r1_python_install_all | ||
|
||
COMPLETION="${T}"/completion.tmp | ||
|
||
"${PYTHON}" -m pip completion --bash > "${COMPLETION}" || die | ||
newbashcomp "${COMPLETION}" ${PN} | ||
|
||
"${PYTHON}" -m pip completion --zsh > "${COMPLETION}" || die | ||
insinto /usr/share/zsh/site-functions | ||
newins "${COMPLETION}" _pip | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
# Copyright 1999-2016 Gentoo Foundation | ||
# Distributed under the terms of the GNU General Public License v2 | ||
# $Id$ | ||
|
||
EAPI="5" | ||
|
||
PYTHON_COMPAT=( python2_7 python3_{3,4,5} pypy pypy3 ) | ||
|
||
inherit distutils-r1 | ||
|
||
DESCRIPTION="Collection of extensions to Distutils" | ||
HOMEPAGE="https://pypi.python.org/pypi/setuptools" | ||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" | ||
|
||
LICENSE="PSF-2" | ||
SLOT="0" | ||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~hppa-hpux ~ia64-hpux ~x86-interix ~amd64-linux ~arm-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" | ||
IUSE="test" | ||
|
||
RDEPEND=" | ||
>=dev-python/packaging-15.3-r1[${PYTHON_USEDEP}] | ||
>=dev-python/six-1.10.0[${PYTHON_USEDEP}] | ||
" | ||
DEPEND="${RDEPEND} | ||
test? ( | ||
>=dev-python/pytest-2.8[${PYTHON_USEDEP}] | ||
dev-python/mock[${PYTHON_USEDEP}] | ||
) | ||
" | ||
PDEPEND=">=dev-python/certifi-2015.11.20[${PYTHON_USEDEP}]" | ||
|
||
# Force in-source build because build system modifies sources. | ||
DISTUTILS_IN_SOURCE_BUILD=1 | ||
|
||
DOCS=( README.txt docs/{easy_install.txt,pkg_resources.txt,setuptools.txt} ) | ||
|
||
python_prepare_all() { | ||
rm -r ./pkg_resources/_vendor || die | ||
# disable tests requiring a network connection | ||
rm setuptools/tests/test_packageindex.py || die | ||
|
||
# don't run integration tests | ||
rm setuptools/tests/test_integration.py || die | ||
|
||
distutils-r1_python_prepare_all | ||
} | ||
|
||
python_test() { | ||
# test_easy_install raises a SandboxViolation due to ${HOME}/.pydistutils.cfg | ||
# It tries to sandbox the test in a tempdir | ||
HOME="${PWD}" py.test --verbose ${PN} || die "Tests failed under ${EPYTHON}" | ||
} | ||
|
||
python_install() { | ||
export DISTRIBUTE_DISABLE_VERSIONED_EASY_INSTALL_SCRIPT=1 | ||
distutils-r1_python_install | ||
} |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.