From: William Pettersson Date: Thu, 23 Apr 2020 22:40:47 +0000 (+0100) Subject: dev-python/logfury: Fix testing, support python 3.{7,8} X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=c2cb13af1a9101988fdef6398fba7119e02f5e9c;p=gentoo.git 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 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 --- 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 similarity index 53% rename from dev-python/logfury/logfury-0.1.2.ebuild rename to 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