Gentoo Archives: gentoo-commits

From: Patrick McLean <chutzpah@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/botocore/, dev-python/botocore/files/
Date: Tue, 12 May 2020 03:08:35
Message-Id: 1589252897.6d14995e4eb605b83cc830e4e4417b3a40e133b5.chutzpah@gentoo
1 commit: 6d14995e4eb605b83cc830e4e4417b3a40e133b5
2 Author: Patrick McLean <patrick.mclean <AT> sony <DOT> com>
3 AuthorDate: Tue May 12 03:08:17 2020 +0000
4 Commit: Patrick McLean <chutzpah <AT> gentoo <DOT> org>
5 CommitDate: Tue May 12 03:08:17 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6d14995e
7
8 dev-python/botocore-1.16.7: Bump, remove dep version locks
9
10 Copyright: Sony Interactive Entertainment Inc.
11 Package-Manager: Portage-2.3.99, Repoman-2.3.22
12 Signed-off-by: Patrick McLean <chutzpah <AT> gentoo.org>
13
14 dev-python/botocore/Manifest | 1 +
15 ...botocore-9999.ebuild => botocore-1.16.7.ebuild} | 28 ++++++++++------------
16 dev-python/botocore/botocore-9999.ebuild | 4 ++++
17 .../files/botocore-1.16.7-unlock-deps.patch | 27 +++++++++++++++++++++
18 4 files changed, 45 insertions(+), 15 deletions(-)
19
20 diff --git a/dev-python/botocore/Manifest b/dev-python/botocore/Manifest
21 index 5a0e3c32ac3..1258eaa265a 100644
22 --- a/dev-python/botocore/Manifest
23 +++ b/dev-python/botocore/Manifest
24 @@ -3,3 +3,4 @@ DIST botocore-1.15.16.tar.gz 6173930 BLAKE2B 70e185faa9fa3f8537e38e4db8c263f5bfb
25 DIST botocore-1.15.32.tar.gz 6261957 BLAKE2B 7825e7d6315cae3578155825e0b5cb3961e5548021d63dad1747903c8f55bede03c4fdb0a07b724e2816ef294a890e85a648bae313620ab4156fd2a28d4e517b SHA512 865612fa52aae3bf08ee74b52a3fe685d7308d0d86bd438851e0b9db639ba3f6430211a7863c1b0737c0af0afc6ba760b2ccfd0103d303e87758317f773cef6d
26 DIST botocore-1.15.48.tar.gz 6336322 BLAKE2B 0d25424e82fcbf1376bb1eb9cac9eeb7a45d08698f39563f635a34b1b24bc6823c5f2b08b6a40a0fc9b54b0404b8f5dd7d07fc21e0c7e0c489fe172e7f29a936 SHA512 91d86731909be5828e38a69e32e5189fbd0357378c51a04f60efbcfbb1b6c0c01151c982fc32619e3be240f5df881e5342bbba6b290b3092d9fe11ce9e3b28d0
27 DIST botocore-1.16.6.tar.gz 6386032 BLAKE2B e909e2fa021d5b1be333a31758af408cdc6e11224addefac31b87b8ce9983350aeaaf862feaf040490fad8eb87d7dde800bd8a77156410e6a734f567e2cc1055 SHA512 1f265a0a8adb7f0172f02448d3be5aeacf11e3fb7023da8d81e6d19c39d97cac99cfe3a70997e682deb44a4fd78304e4a0c1df43787f3139bbccbe852c682a82
28 +DIST botocore-1.16.7.tar.gz 6391893 BLAKE2B 19a8770ef1058e5601a1c292e2e17e1625e4d5d0d1845b59bbd403a2c285da1a774935e9d1e1fa7ca26a1e3c4703b29fcbb2f021a7251aa3ca756c80b2ba0461 SHA512 0ab2b4ff4096049cd92b96c710a38867a53b2dba0f07a319ec1a2f9b3cbce60776026c62e3eaaebe571b6ad26eb5c1c258b2dd350a444d30e54b342bcd675768
29
30 diff --git a/dev-python/botocore/botocore-9999.ebuild b/dev-python/botocore/botocore-1.16.7.ebuild
31 similarity index 74%
32 copy from dev-python/botocore/botocore-9999.ebuild
33 copy to dev-python/botocore/botocore-1.16.7.ebuild
34 index f9ce3c85acf..be9914c2cda 100644
35 --- a/dev-python/botocore/botocore-9999.ebuild
36 +++ b/dev-python/botocore/botocore-1.16.7.ebuild
37 @@ -10,7 +10,7 @@ DESCRIPTION="Low-level, data-driven core of boto 3."
38 HOMEPAGE="https://github.com/boto/botocore"
39 LICENSE="Apache-2.0"
40 SLOT="0"
41 -IUSE="doc test"
42 +IUSE="test"
43 RESTRICT="!test? ( test )"
44
45 if [[ "${PV}" == "9999" ]]; then
46 @@ -22,17 +22,13 @@ else
47 fi
48
49 RDEPEND="
50 + dev-python/six[${PYTHON_USEDEP}]
51 dev-python/docutils[${PYTHON_USEDEP}]
52 dev-python/jmespath[${PYTHON_USEDEP}]
53 dev-python/python-dateutil[${PYTHON_USEDEP}]
54 dev-python/urllib3[${PYTHON_USEDEP}]
55 "
56 -DEPEND="
57 - dev-python/setuptools[${PYTHON_USEDEP}]
58 - doc? (
59 - dev-python/guzzle_sphinx_theme[${PYTHON_USEDEP}]
60 - dev-python/sphinx[${PYTHON_USEDEP}]
61 - )
62 +BDEPEND="
63 test? (
64 ${RDEPEND}
65 dev-python/mock[${PYTHON_USEDEP}]
66 @@ -41,19 +37,21 @@ DEPEND="
67 )
68 "
69
70 -PATCHES=( "${FILESDIR}/1.8.6-tests-pass-all-env-vars-to-cmd-runner.patch" )
71 +PATCHES=(
72 + "${FILESDIR}/1.8.6-tests-pass-all-env-vars-to-cmd-runner.patch"
73 + "${FILESDIR}/botocore-1.16.7-unlock-deps.patch"
74 +)
75 +
76 +distutils_enable_sphinx docs \
77 + 'dev-python/guzzle_sphinx_theme'
78
79 python_compile_all() {
80 - use doc && emake -C docs html
81 + # remove version locked deps
82 + sed -r -e 's:([a-zA-Z0-9_-]+)[><|=].*:\1:' \
83 + -i requirements.txt || die
84 }
85
86 python_test() {
87 PYTHONPATH="${BUILD_DIR}/lib" nosetests -v tests/unit || die "unit tests failed under ${EPYTHON}"
88 PYTHONPATH="${BUILD_DIR}/lib" nosetests -v tests/functional || die "functional tests failed under ${EPYTHON}"
89 }
90 -
91 -python_install_all() {
92 - use doc && local HTML_DOCS=( docs/build/html/. )
93 -
94 - distutils-r1_python_install_all
95 -}
96
97 diff --git a/dev-python/botocore/botocore-9999.ebuild b/dev-python/botocore/botocore-9999.ebuild
98 index f9ce3c85acf..54136d6d482 100644
99 --- a/dev-python/botocore/botocore-9999.ebuild
100 +++ b/dev-python/botocore/botocore-9999.ebuild
101 @@ -45,6 +45,10 @@ PATCHES=( "${FILESDIR}/1.8.6-tests-pass-all-env-vars-to-cmd-runner.patch" )
102
103 python_compile_all() {
104 use doc && emake -C docs html
105 +
106 + # remove version locked deps
107 + sed -r -e 's:([a-zA-Z0-9_-]+)[><|=].*:\1:' \
108 + -i requirements.txt || die
109 }
110
111 python_test() {
112
113 diff --git a/dev-python/botocore/files/botocore-1.16.7-unlock-deps.patch b/dev-python/botocore/files/botocore-1.16.7-unlock-deps.patch
114 new file mode 100644
115 index 00000000000..1dbb890fbce
116 --- /dev/null
117 +++ b/dev-python/botocore/files/botocore-1.16.7-unlock-deps.patch
118 @@ -0,0 +1,27 @@
119 +diff --git a/setup.py b/setup.py
120 +index edc35789..94545b8d 100644
121 +--- a/setup.py
122 ++++ b/setup.py
123 +@@ -24,17 +24,17 @@ def find_version(*file_paths):
124 +
125 +
126 + requires = [
127 +- 'jmespath>=0.7.1,<1.0.0',
128 +- 'docutils>=0.10,<0.16',
129 +- 'python-dateutil>=2.1,<3.0.0',
130 ++ 'jmespath',
131 ++ 'docutils',
132 ++ 'python-dateutil',
133 + ]
134 +
135 +
136 + if sys.version_info[:2] == (3, 4):
137 + # urllib3 dropped support for python 3.4 in point release 1.25.8
138 +- requires.append('urllib3>=1.20,<1.25.8')
139 ++ requires.append('urllib3')
140 + else:
141 +- requires.append('urllib3>=1.20,<1.26')
142 ++ requires.append('urllib3')
143 +
144 +
145 +