* [gentoo-commits] repo/proj/guru:dev commit in: dev-python/thriftrw/files/, dev-python/thriftrw/
@ 2021-10-09 17:00 Alessandro Barbieri
0 siblings, 0 replies; 2+ messages in thread
From: Alessandro Barbieri @ 2021-10-09 17:00 UTC (permalink / raw
To: gentoo-commits
commit: 9aa9c45f635cde503bb7473990b7b9ac1c79d45e
Author: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
AuthorDate: Sat Oct 9 16:42:07 2021 +0000
Commit: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
CommitDate: Sat Oct 9 17:00:52 2021 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=9aa9c45f
dev-python/thriftrw: tool:pytest
Closes: https://bugs.gentoo.org/817203
Signed-off-by: Alessandro Barbieri <lssndrbarbieri <AT> gmail.com>
dev-python/thriftrw/files/thriftrw-1.8.1-tool-pytest.patch | 11 +++++++++++
dev-python/thriftrw/thriftrw-1.8.1.ebuild | 5 ++++-
2 files changed, 15 insertions(+), 1 deletion(-)
diff --git a/dev-python/thriftrw/files/thriftrw-1.8.1-tool-pytest.patch b/dev-python/thriftrw/files/thriftrw-1.8.1-tool-pytest.patch
new file mode 100644
index 000000000..5bb3774c6
--- /dev/null
+++ b/dev-python/thriftrw/files/thriftrw-1.8.1-tool-pytest.patch
@@ -0,0 +1,11 @@
+--- a/setup.cfg
++++ b/setup.cfg
+@@ -2,7 +2,7 @@
+ create-wheel = yes
+ python-file-with-version = thriftrw/__init__.py
+
+-[pytest]
++[tool:pytest]
+ addopts = --tb short --benchmark-autosave --benchmark-save-data
+
+ [egg_info]
diff --git a/dev-python/thriftrw/thriftrw-1.8.1.ebuild b/dev-python/thriftrw/thriftrw-1.8.1.ebuild
index 7ae0e668c..cfe3df642 100644
--- a/dev-python/thriftrw/thriftrw-1.8.1.ebuild
+++ b/dev-python/thriftrw/thriftrw-1.8.1.ebuild
@@ -26,6 +26,9 @@ DEPEND="
)
"
-PATCHES=( "${FILESDIR}/${P}-no-install-examples.patch" )
+PATCHES=(
+ "${FILESDIR}/${P}-no-install-examples.patch"
+ "${FILESDIR}/${P}-tool-pytest.patch"
+)
distutils_enable_tests pytest
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [gentoo-commits] repo/proj/guru:dev commit in: dev-python/thriftrw/files/, dev-python/thriftrw/
@ 2021-10-07 10:38 Alessandro Barbieri
0 siblings, 0 replies; 2+ messages in thread
From: Alessandro Barbieri @ 2021-10-07 10:38 UTC (permalink / raw
To: gentoo-commits
commit: 7d6bc830779bbf82937b0f57cf36974bf84c2088
Author: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
AuthorDate: Thu Oct 7 10:38:44 2021 +0000
Commit: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
CommitDate: Thu Oct 7 10:38:44 2021 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=7d6bc830
dev-python/thriftrw: no examples
Closes: https://bugs.gentoo.org/816624
Package-Manager: Portage-3.0.28, Repoman-3.0.3
Signed-off-by: Alessandro Barbieri <lssndrbarbieri <AT> gmail.com>
.../thriftrw/files/thriftrw-1.8.1-no-install-examples.patch | 11 +++++++++++
dev-python/thriftrw/thriftrw-1.8.1.ebuild | 4 +++-
2 files changed, 14 insertions(+), 1 deletion(-)
diff --git a/dev-python/thriftrw/files/thriftrw-1.8.1-no-install-examples.patch b/dev-python/thriftrw/files/thriftrw-1.8.1-no-install-examples.patch
new file mode 100644
index 000000000..0cc864107
--- /dev/null
+++ b/dev-python/thriftrw/files/thriftrw-1.8.1-no-install-examples.patch
@@ -0,0 +1,11 @@
+--- a/setup.py
++++ b/setup.py
+@@ -148,7 +148,7 @@
+ author='Abhinav Gupta',
+ author_email='abg@uber.com',
+ url='https://github.com/thriftrw/thriftrw-python',
+- packages=find_packages(exclude=('tests', 'tests.*')),
++ packages=find_packages(exclude=('tests', 'tests.*', 'examples', 'examples*')),
+ license='MIT',
+ install_requires=['six', 'ply'],
+ tests_require=['pytest', 'mock'],
diff --git a/dev-python/thriftrw/thriftrw-1.8.1.ebuild b/dev-python/thriftrw/thriftrw-1.8.1.ebuild
index 230a5c200..7ae0e668c 100644
--- a/dev-python/thriftrw/thriftrw-1.8.1.ebuild
+++ b/dev-python/thriftrw/thriftrw-1.8.1.ebuild
@@ -1,7 +1,7 @@
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI="8"
+EAPI=8
PYTHON_COMPAT=( python3_{8..10} )
@@ -26,4 +26,6 @@ DEPEND="
)
"
+PATCHES=( "${FILESDIR}/${P}-no-install-examples.patch" )
+
distutils_enable_tests pytest
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-10-09 17:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-10-09 17:00 [gentoo-commits] repo/proj/guru:dev commit in: dev-python/thriftrw/files/, dev-python/thriftrw/ Alessandro Barbieri
-- strict thread matches above, loose matches on Subject: below --
2021-10-07 10:38 Alessandro Barbieri
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox