1 |
commit: 02e9b766ed91a5c86b0f567bbe6adb7fa07c84ba |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Jul 1 17:50:42 2021 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Jul 1 17:53:36 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=02e9b766 |
7 |
|
8 |
dev-python/requests-unixsocket: Eliminate pbr dep |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
.../files/requests-unixsocket-0.2.0-no-pbr.patch | 41 ++++++++++++++++++++++ |
13 |
.../requests-unixsocket-0.2.0.ebuild | 5 ++- |
14 |
2 files changed, 45 insertions(+), 1 deletion(-) |
15 |
|
16 |
diff --git a/dev-python/requests-unixsocket/files/requests-unixsocket-0.2.0-no-pbr.patch b/dev-python/requests-unixsocket/files/requests-unixsocket-0.2.0-no-pbr.patch |
17 |
new file mode 100644 |
18 |
index 00000000000..82a8b36e2cd |
19 |
--- /dev/null |
20 |
+++ b/dev-python/requests-unixsocket/files/requests-unixsocket-0.2.0-no-pbr.patch |
21 |
@@ -0,0 +1,41 @@ |
22 |
+diff --git a/setup.cfg b/setup.cfg |
23 |
+index 155f297..9d61d28 100644 |
24 |
+--- a/setup.cfg |
25 |
++++ b/setup.cfg |
26 |
+@@ -1,11 +1,12 @@ |
27 |
+ [metadata] |
28 |
+ name = requests-unixsocket |
29 |
++version = 0.2.0 |
30 |
+ author = Marc Abramowitz |
31 |
+-author-email = marc@×××××××××××××××.com |
32 |
++author_email = marc@×××××××××××××××.com |
33 |
+ summary = Use requests to talk HTTP via a UNIX domain socket |
34 |
+ description-file = README.rst |
35 |
+ license = Apache-2 |
36 |
+-home-page = https://github.com/msabramo/requests-unixsocket |
37 |
++home_page = https://github.com/msabramo/requests-unixsocket |
38 |
+ classifier = |
39 |
+ Development Status :: 3 - Alpha |
40 |
+ Intended Audience :: Developers |
41 |
+@@ -22,7 +23,7 @@ classifier = |
42 |
+ Programming Language :: Python :: 3.6 |
43 |
+ test_suite = requests_unixsocket.tests |
44 |
+ |
45 |
+-[files] |
46 |
++[options] |
47 |
+ packages = requests_unixsocket |
48 |
+ |
49 |
+ [wheel] |
50 |
+diff --git a/setup.py b/setup.py |
51 |
+index aa2d8a0..beda28e 100755 |
52 |
+--- a/setup.py |
53 |
++++ b/setup.py |
54 |
+@@ -2,7 +2,4 @@ |
55 |
+ |
56 |
+ from setuptools import setup |
57 |
+ |
58 |
+-setup( |
59 |
+- setup_requires=['pbr'], |
60 |
+- pbr=True, |
61 |
+-) |
62 |
++setup() |
63 |
|
64 |
diff --git a/dev-python/requests-unixsocket/requests-unixsocket-0.2.0.ebuild b/dev-python/requests-unixsocket/requests-unixsocket-0.2.0.ebuild |
65 |
index cf17d405c33..24e7c48f84c 100644 |
66 |
--- a/dev-python/requests-unixsocket/requests-unixsocket-0.2.0.ebuild |
67 |
+++ b/dev-python/requests-unixsocket/requests-unixsocket-0.2.0.ebuild |
68 |
@@ -18,11 +18,14 @@ RDEPEND=" |
69 |
dev-python/requests[${PYTHON_USEDEP}] |
70 |
dev-python/urllib3[${PYTHON_USEDEP}]" |
71 |
BDEPEND=" |
72 |
- dev-python/pbr[${PYTHON_USEDEP}] |
73 |
test? ( dev-python/waitress[${PYTHON_USEDEP}] )" |
74 |
|
75 |
distutils_enable_tests pytest |
76 |
|
77 |
+PATCHES=( |
78 |
+ "${FILESDIR}/${P}-no-pbr.patch" |
79 |
+) |
80 |
+ |
81 |
src_prepare() { |
82 |
sed -i -e 's:--pep8::' pytest.ini || die |
83 |
distutils-r1_src_prepare |