diff options
author | 2015-08-08 13:49:04 -0700 | |
---|---|---|
committer | 2015-08-08 17:38:18 -0700 | |
commit | 56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch) | |
tree | 3f91093cdb475e565ae857f1c5a7fd339e2d781e /dev-python/requests | |
download | gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2 gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip |
proj/gentoo: Initial commit
This commit represents a new era for Gentoo:
Storing the gentoo-x86 tree in Git, as converted from CVS.
This commit is the start of the NEW history.
Any historical data is intended to be grafted onto this point.
Creation process:
1. Take final CVS checkout snapshot
2. Remove ALL ChangeLog* files
3. Transform all Manifests to thin
4. Remove empty Manifests
5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$
5.1. Do not touch files with -kb/-ko keyword flags.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests
X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project
X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration
X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn
X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts
X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration
X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging
X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'dev-python/requests')
-rw-r--r-- | dev-python/requests/Manifest | 3 | ||||
-rw-r--r-- | dev-python/requests/files/requests-2.2.0-system-chardet.patch | 21 | ||||
-rw-r--r-- | dev-python/requests/files/requests-2.4.0-system-cacerts.patch | 14 | ||||
-rw-r--r-- | dev-python/requests/files/requests-2.5.0-system-cacerts.patch | 24 | ||||
-rw-r--r-- | dev-python/requests/metadata.xml | 8 | ||||
-rw-r--r-- | dev-python/requests/requests-2.6.0.ebuild | 42 | ||||
-rw-r--r-- | dev-python/requests/requests-2.6.1.ebuild | 44 | ||||
-rw-r--r-- | dev-python/requests/requests-2.7.0.ebuild | 44 |
8 files changed, 200 insertions, 0 deletions
diff --git a/dev-python/requests/Manifest b/dev-python/requests/Manifest new file mode 100644 index 000000000000..adcb5a1637d5 --- /dev/null +++ b/dev-python/requests/Manifest @@ -0,0 +1,3 @@ +DIST requests-2.6.0.tar.gz 450389 SHA256 1cdbed1f0e236f35ef54e919982c7a338e4fea3786310933d3a7887a04b74d75 SHA512 703728e04f4ae5f083892e1ad0cb54777ebcc0120fca9cd3c170e33233fccbb64a635e141e6d7b9c1f1f9d62dc00aa7c66ea890ae62cd6581c881c071a707510 WHIRLPOOL 3e65c251e164937092f349c943472b7e625b0fd963beb53a2b0f7b3b94063b833929b38082ec97298c26145b867334c38b9987c29cbeed5f4d59119f12c53a20 +DIST requests-2.6.1.tar.gz 450975 SHA256 490b111c824d64b84797a899a4c22618bbc45323ac24a0a0bb4b73a8758e943c SHA512 8f88a52f1c10fb909a8e1d17e55be8878c032877e6cb61ffadcb3d1ad1e293d763ea0f7627308ac9df75e17661b4ff8c92464e77d41b05b1b7856b22a3423e49 WHIRLPOOL cb5168f41119fd76a30db511961ba6e852c1eec3941d79e287b782201632f1fc7206004c38a34474014a1463e902ded88056438ccaa7d4107e27c40300dbe0a1 +DIST requests-2.7.0.tar.gz 451723 SHA256 398a3db6d61899d25fd4a06c6ca12051b0ce171d705decd7ed5511517b4bb93d SHA512 a93223c3fd21c58f7c0c901b17be17c23dba4efeed8c4347da9d4e04d96a6698e08e01482205661cb7757cc7560d9ae2e62b18f2b422af0cb90fd998fe963ff2 WHIRLPOOL b805d76ad747fc8a754fb0ca0439e8f303df057c2b256ed7f57533b311322e4e28b0d8f22111a3c5ad283823c1256cd24c93fec2aeabc6946013c17ab3540dd9 diff --git a/dev-python/requests/files/requests-2.2.0-system-chardet.patch b/dev-python/requests/files/requests-2.2.0-system-chardet.patch new file mode 100644 index 000000000000..18fc7a992bf5 --- /dev/null +++ b/dev-python/requests/files/requests-2.2.0-system-chardet.patch @@ -0,0 +1,21 @@ +--- requests-2.2.0/requests/compat.py ++++ requests-2.2.0/requests/compat.py +@@ -4,7 +4,7 @@ + pythoncompat + """ + +-from .packages import chardet ++import chardet + + import sys + +--- requests-2.2.0/setup.py ++++ requests-2.2.0/setup.py +@@ -17,7 +17,6 @@ + packages = [ + 'requests', + 'requests.packages', +- 'requests.packages.chardet', + 'requests.packages.urllib3', + 'requests.packages.urllib3.packages', + 'requests.packages.urllib3.contrib', diff --git a/dev-python/requests/files/requests-2.4.0-system-cacerts.patch b/dev-python/requests/files/requests-2.4.0-system-cacerts.patch new file mode 100644 index 000000000000..e3a41d9dadbc --- /dev/null +++ b/dev-python/requests/files/requests-2.4.0-system-cacerts.patch @@ -0,0 +1,14 @@ +diff -ur requests-2.4.0.orig/requests/certs.py requests-2.4.0/requests/certs.py +--- requests/certs.py 2014-08-20 00:52:58.000000000 +0800 ++++ requests/certs.py 2014-09-09 14:17:33.237264068 +0800 +@@ -18,6 +18,10 @@ + except ImportError: + def where(): + """Return the preferred certificate bundle.""" ++ cacerts = '/etc/ssl/certs/ca-certificates.crt' ++ if os.path.exists(cacerts): ++ return cacerts ++ + # vendored bundle inside Requests + return os.path.join(os.path.dirname(__file__), 'cacert.pem') + diff --git a/dev-python/requests/files/requests-2.5.0-system-cacerts.patch b/dev-python/requests/files/requests-2.5.0-system-cacerts.patch new file mode 100644 index 000000000000..f0d9e943e90b --- /dev/null +++ b/dev-python/requests/files/requests-2.5.0-system-cacerts.patch @@ -0,0 +1,24 @@ +--- requests-2.5.0/requests/certs.py ++++ requests-2.5.0/requests/certs.py +@@ -13,13 +13,14 @@ + """ + import os.path + +-try: +- from certifi import where +-except ImportError: +- def where(): +- """Return the preferred certificate bundle.""" +- # vendored bundle inside Requests +- return os.path.join(os.path.dirname(__file__), 'cacert.pem') ++def where(): ++ """Return the preferred certificate bundle.""" ++ cacerts = '/etc/ssl/certs/ca-certificates.crt' ++ if os.path.exists(cacerts): ++ return cacerts ++ ++ # vendored bundle inside Requests ++ return os.path.join(os.path.dirname(__file__), 'cacert.pem') + + if __name__ == '__main__': + print(where()) diff --git a/dev-python/requests/metadata.xml b/dev-python/requests/metadata.xml new file mode 100644 index 000000000000..875d26fa6c23 --- /dev/null +++ b/dev-python/requests/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>python</herd> + <upstream> + <remote-id type="pypi">requests</remote-id> + </upstream> +</pkgmetadata> diff --git a/dev-python/requests/requests-2.6.0.ebuild b/dev-python/requests/requests-2.6.0.ebuild new file mode 100644 index 000000000000..bed97e1ef645 --- /dev/null +++ b/dev-python/requests/requests-2.6.0.ebuild @@ -0,0 +1,42 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +PYTHON_COMPAT=( python{2_7,3_3,3_4} pypy pypy3 ) + +inherit distutils-r1 + +DESCRIPTION="HTTP library for human beings" +HOMEPAGE="http://python-requests.org/ http://pypi.python.org/pypi/requests" +SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 sparc x86 ~x86-fbsd ~amd64-linux ~x86-linux ~x64-macos ~x86-macos" +IUSE="" + +# bundles dev-python/urllib3 snapshot +RDEPEND="app-misc/ca-certificates + >=dev-python/chardet-2.2.1[${PYTHON_USEDEP}]" +DEPEND="${RDEPEND} + dev-python/setuptools[${PYTHON_USEDEP}]" + +# tests connect to various remote sites +RESTRICT="test" + +PATCHES=( + "${FILESDIR}"/${PN}-2.2.0-system-chardet.patch + "${FILESDIR}"/${PN}-2.5.0-system-cacerts.patch +) + +python_prepare_all() { + # use system chardet + rm -r requests/packages/chardet || die + + distutils-r1_python_prepare_all +} + +python_test() { + "${PYTHON}" test_requests.py || die "Tests fail with ${EPYTHON}" +} diff --git a/dev-python/requests/requests-2.6.1.ebuild b/dev-python/requests/requests-2.6.1.ebuild new file mode 100644 index 000000000000..656e66771fec --- /dev/null +++ b/dev-python/requests/requests-2.6.1.ebuild @@ -0,0 +1,44 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +PYTHON_COMPAT=( python2_7 python3_{3,4} pypy pypy3 ) + +inherit distutils-r1 + +DESCRIPTION="HTTP library for human beings" +HOMEPAGE="http://python-requests.org/ http://pypi.python.org/pypi/requests" +SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~x64-macos ~x86-macos" +IUSE="" + +# bundles dev-python/urllib3 snapshot +RDEPEND=" + app-misc/ca-certificates + >=dev-python/chardet-2.2.1[${PYTHON_USEDEP}]" +DEPEND="${RDEPEND} + dev-python/setuptools[${PYTHON_USEDEP}]" + +# tests connect to various remote sites +RESTRICT="test" + +PATCHES=( + "${FILESDIR}"/${PN}-2.2.0-system-chardet.patch + "${FILESDIR}"/${PN}-2.5.0-system-cacerts.patch +) + +python_prepare_all() { + # use system chardet + rm -r requests/packages/chardet || die + + distutils-r1_python_prepare_all +} + +python_test() { + "${PYTHON}" test_requests.py || die "Tests fail with ${EPYTHON}" +} diff --git a/dev-python/requests/requests-2.7.0.ebuild b/dev-python/requests/requests-2.7.0.ebuild new file mode 100644 index 000000000000..656e66771fec --- /dev/null +++ b/dev-python/requests/requests-2.7.0.ebuild @@ -0,0 +1,44 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +PYTHON_COMPAT=( python2_7 python3_{3,4} pypy pypy3 ) + +inherit distutils-r1 + +DESCRIPTION="HTTP library for human beings" +HOMEPAGE="http://python-requests.org/ http://pypi.python.org/pypi/requests" +SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~x64-macos ~x86-macos" +IUSE="" + +# bundles dev-python/urllib3 snapshot +RDEPEND=" + app-misc/ca-certificates + >=dev-python/chardet-2.2.1[${PYTHON_USEDEP}]" +DEPEND="${RDEPEND} + dev-python/setuptools[${PYTHON_USEDEP}]" + +# tests connect to various remote sites +RESTRICT="test" + +PATCHES=( + "${FILESDIR}"/${PN}-2.2.0-system-chardet.patch + "${FILESDIR}"/${PN}-2.5.0-system-cacerts.patch +) + +python_prepare_all() { + # use system chardet + rm -r requests/packages/chardet || die + + distutils-r1_python_prepare_all +} + +python_test() { + "${PYTHON}" test_requests.py || die "Tests fail with ${EPYTHON}" +} |