commit: 02e9b766ed91a5c86b0f567bbe6adb7fa07c84ba Author: Michał Górny <mgorny <AT> gentoo <DOT> org> AuthorDate: Thu Jul 1 17:50:42 2021 +0000 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> CommitDate: Thu Jul 1 17:53:36 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=02e9b766
dev-python/requests-unixsocket: Eliminate pbr dep Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> .../files/requests-unixsocket-0.2.0-no-pbr.patch | 41 ++++++++++++++++++++++ .../requests-unixsocket-0.2.0.ebuild | 5 ++- 2 files changed, 45 insertions(+), 1 deletion(-) 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 00000000000..82a8b36e2cd --- /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 = m...@marc-abramowitz.com ++author_email = m...@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 cf17d405c33..24e7c48f84c 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