summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2021-07-01 19:50:42 +0200
committerMichał Górny <mgorny@gentoo.org>2021-07-01 19:53:36 +0200
commit02e9b766ed91a5c86b0f567bbe6adb7fa07c84ba (patch)
tree5d12bef3093405b646ad696afc29c929555db236 /dev-python/requests-unixsocket
parentdev-python/nest_asyncio: Port to py3.10 (diff)
downloadgentoo-02e9b766ed91a5c86b0f567bbe6adb7fa07c84ba.tar.gz
gentoo-02e9b766ed91a5c86b0f567bbe6adb7fa07c84ba.tar.bz2
gentoo-02e9b766ed91a5c86b0f567bbe6adb7fa07c84ba.zip
dev-python/requests-unixsocket: Eliminate pbr dep
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/requests-unixsocket')
-rw-r--r--dev-python/requests-unixsocket/files/requests-unixsocket-0.2.0-no-pbr.patch41
-rw-r--r--dev-python/requests-unixsocket/requests-unixsocket-0.2.0.ebuild5
2 files changed, 45 insertions, 1 deletions
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
new file mode 100644
index 000000000000..82a8b36e2cd9
--- /dev/null
+++ b/dev-python/requests-unixsocket/files/requests-unixsocket-0.2.0-no-pbr.patch
@@ -0,0 +1,41 @@
+diff --git a/setup.cfg b/setup.cfg
+index 155f297..9d61d28 100644
+--- a/setup.cfg
++++ b/setup.cfg
+@@ -1,11 +1,12 @@
+ [metadata]
+ name = requests-unixsocket
++version = 0.2.0
+ author = Marc Abramowitz
+-author-email = marc@marc-abramowitz.com
++author_email = marc@marc-abramowitz.com
+ summary = Use requests to talk HTTP via a UNIX domain socket
+ description-file = README.rst
+ license = Apache-2
+-home-page = https://github.com/msabramo/requests-unixsocket
++home_page = https://github.com/msabramo/requests-unixsocket
+ classifier =
+ Development Status :: 3 - Alpha
+ Intended Audience :: Developers
+@@ -22,7 +23,7 @@ classifier =
+ Programming Language :: Python :: 3.6
+ test_suite = requests_unixsocket.tests
+
+-[files]
++[options]
+ packages = requests_unixsocket
+
+ [wheel]
+diff --git a/setup.py b/setup.py
+index aa2d8a0..beda28e 100755
+--- a/setup.py
++++ b/setup.py
+@@ -2,7 +2,4 @@
+
+ from setuptools import setup
+
+-setup(
+- setup_requires=['pbr'],
+- pbr=True,
+-)
++setup()
diff --git a/dev-python/requests-unixsocket/requests-unixsocket-0.2.0.ebuild b/dev-python/requests-unixsocket/requests-unixsocket-0.2.0.ebuild
index cf17d405c338..24e7c48f84c7 100644
--- a/dev-python/requests-unixsocket/requests-unixsocket-0.2.0.ebuild
+++ b/dev-python/requests-unixsocket/requests-unixsocket-0.2.0.ebuild
@@ -18,11 +18,14 @@ RDEPEND="
dev-python/requests[${PYTHON_USEDEP}]
dev-python/urllib3[${PYTHON_USEDEP}]"
BDEPEND="
- dev-python/pbr[${PYTHON_USEDEP}]
test? ( dev-python/waitress[${PYTHON_USEDEP}] )"
distutils_enable_tests pytest
+PATCHES=(
+ "${FILESDIR}/${P}-no-pbr.patch"
+)
+
src_prepare() {
sed -i -e 's:--pep8::' pytest.ini || die
distutils-r1_src_prepare