diff options
author | William Pettersson <william@ewpettersson.se> | 2020-04-23 23:40:47 +0100 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2020-04-28 18:01:24 +0200 |
commit | c2cb13af1a9101988fdef6398fba7119e02f5e9c (patch) | |
tree | f926a46398fc04fc20ba61dc3d76e7027eafcd46 /dev-python/logfury | |
parent | dev-python/ddt: Remove py2 (diff) | |
download | gentoo-c2cb13af1a9101988fdef6398fba7119e02f5e9c.tar.gz gentoo-c2cb13af1a9101988fdef6398fba7119e02f5e9c.tar.bz2 gentoo-c2cb13af1a9101988fdef6398fba7119e02f5e9c.zip |
dev-python/logfury: Fix testing, support python 3.{7,8}
Testing requires the Github packaging, hence the change to SRC_URI
Removed old dependency on funcsigs, no longer needed
Removed code-linting, and coverage requirements from test suite
Signed-off-by: William Pettersson <william@ewpettersson.se>
Closes: https://bugs.gentoo.org/719090
Package-Manager: Portage-2.3.89, Repoman-2.3.21
Closes: https://github.com/gentoo/gentoo/pull/15493
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/logfury')
-rw-r--r-- | dev-python/logfury/Manifest | 2 | ||||
-rw-r--r-- | dev-python/logfury/files/logfury-0.1.2-fix-requirements-remove-dev-tests.patch | 17 | ||||
-rw-r--r-- | dev-python/logfury/logfury-0.1.2-r1.ebuild (renamed from dev-python/logfury/logfury-0.1.2.ebuild) | 15 |
3 files changed, 30 insertions, 4 deletions
diff --git a/dev-python/logfury/Manifest b/dev-python/logfury/Manifest index 9ab08d758bc6..22fcf33ff5ca 100644 --- a/dev-python/logfury/Manifest +++ b/dev-python/logfury/Manifest @@ -1 +1 @@ -DIST logfury-0.1.2.tar.gz 17222 BLAKE2B b304ae68b345a5a262243063823354b00c72ac4301dcb34ceb56c44c0a0bc8f37ae447fb024e7d4b86469cf5412630c3b0d37370d492f7aab207f947b89d1577 SHA512 72e3e41047d3617420ece1a76a859635af42eb17d77cac0331d65144f750b5a5b8eff119a28fdda543b75cb75a2c8078492f2164dccb8c2dc9ba354e80a249ca +DIST logfury-0.1.2.gh.tar.gz 15854 BLAKE2B 68fdc692b552c42f509760ba3b6b30d6bdb0066b1179851d9a47e6f8d7b651e3518348ae60cd0726d867d015448253ac058f083c2798b3e5cf7e2e7d86db3929 SHA512 626965bbb8bdebcd7f71fa141de24c7f725933a32f0a00c8799d9778fb41913666c2ef0c71660bf6d00b160b9e34baff682520f4c3570fb0e347f070f010172c diff --git a/dev-python/logfury/files/logfury-0.1.2-fix-requirements-remove-dev-tests.patch b/dev-python/logfury/files/logfury-0.1.2-fix-requirements-remove-dev-tests.patch new file mode 100644 index 000000000000..2f627840b857 --- /dev/null +++ b/dev-python/logfury/files/logfury-0.1.2-fix-requirements-remove-dev-tests.patch @@ -0,0 +1,17 @@ +diff --git a/requirements-test.txt b/requirements-test.txt +index b454361..726c861 100644 +--- a/requirements-test.txt ++++ b/requirements-test.txt +@@ -1,5 +1 @@ +-check-manifest +-pyflakes +-readme_renderer + testfixtures +-yapf +diff --git a/requirements.txt b/requirements.txt +index 86e41d1..bb77dce 100644 +--- a/requirements.txt ++++ b/requirements.txt +@@ -1,2 +1 @@ + six>=1.10 +-funcsigs diff --git a/dev-python/logfury/logfury-0.1.2.ebuild b/dev-python/logfury/logfury-0.1.2-r1.ebuild index 0bbf5553f266..8e8a773bba0d 100644 --- a/dev-python/logfury/logfury-0.1.2.ebuild +++ b/dev-python/logfury/logfury-0.1.2-r1.ebuild @@ -3,19 +3,28 @@ EAPI=6 -PYTHON_COMPAT=( python3_6 ) +PYTHON_COMPAT=( python3_6 python3_7 python3_8 ) inherit distutils-r1 DESCRIPTION="Boilerplate library for logging method calls" HOMEPAGE="https://github.com/ppolewicz/logfury https://pypi.org/project/logfury/" -SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" +SRC_URI="https://github.com/ppolewicz/${PN}/archive/${PV}.tar.gz -> ${P}.gh.tar.gz" LICENSE="BSD" SLOT="0" KEYWORDS="~amd64 ~x86" +PATCHES=( + "${FILESDIR}/${P}-fix-requirements-remove-dev-tests.patch" +) + RDEPEND="dev-python/six[${PYTHON_USEDEP}]" DEPEND="${RDEPEND} - dev-python/setuptools[${PYTHON_USEDEP}]" + test? ( + dev-python/testfixtures[${PYTHON_USEDEP}] + dev-python/nose[${PYTHON_USEDEP}] + )" + +distutils_enable_tests setup.py |