diff options
Diffstat (limited to 'dev-python/doit')
-rw-r--r-- | dev-python/doit/Manifest | 6 | ||||
-rw-r--r-- | dev-python/doit/doit-0.29.0.ebuild | 69 | ||||
-rw-r--r-- | dev-python/doit/doit-0.32.0-r1.ebuild | 3 | ||||
-rw-r--r-- | dev-python/doit/doit-0.32.0-r2.ebuild | 54 | ||||
-rw-r--r-- | dev-python/doit/doit-0.32.0.ebuild | 71 |
5 files changed, 58 insertions, 145 deletions
diff --git a/dev-python/doit/Manifest b/dev-python/doit/Manifest index ddbb99ff3724..a503c6639b84 100644 --- a/dev-python/doit/Manifest +++ b/dev-python/doit/Manifest @@ -1,8 +1,6 @@ AUX doit-0.32.0_pytest5.4.patch 2862 BLAKE2B 3a3859fc2a5a2c0f533a3c4a300744d5c4b73edc9b255f54267c6018218c393478e2feb6f43874250ba931effeaa576cfb38cec5cb7f934031071744c0d3b2f0 SHA512 2f4d251970e042adc631a9912705a0f97bd693f5cdba3e89fcb912c91f881c2c57665bd32a28630053fb1e9c2ebce022b40974a303c5e808ae0d2008f07c3e8e AUX doit-0.32.0_unpickable.patch 1371 BLAKE2B c03d757a99e44bbf7c7dbcac84295e7514055921d2c3a12bb3fca2fbc7e8320c8be450a5c101d39b51b8f0bb7fa1b1faa3c58a455ab5c27a68f6e03a70ea9763 SHA512 2d17f32876897a6b73ba7936eade594a0a40f38a27d08e14603f3aceb9b36426d810e0dc0b13b385c8e4cab830976637ed4462014dab7202226d3bb3f745cc8a -DIST doit-0.29.0.tar.gz 222341 BLAKE2B 8489568fe9236af04f87debfb4889840aa162d17d20f82ac0a9a22d1034b4c58976cd6829486a15b941ac1f50e7137c052fe332657c2b3f529fe2345bbcba2fc SHA512 a686457df31b414d0c3797789e0ae1ae5cdfa3674025236419cb59b254f342cd2db07911ef18b2cb576d8d817b44035b9372265b34b786b2779fb7074b394de1 DIST doit-0.32.0.tar.gz 1437939 BLAKE2B 39134341582cd964630a1667c78b0e44eeb32406a06e3567123b820fb61cbee0f6a7c8879a84eed750860a365aa4c792e461bb1534c66e4f20a6289522dc8183 SHA512 d5c28a0c6a38648aeef58027b2246fc26360e133e91933f2244bd484f70d6d26110acbfec19c74d53c796e0bbae07a4bf6d76542d45e8b1a6b503c186bf2a68a -EBUILD doit-0.29.0.ebuild 1861 BLAKE2B a1756f901009f5e277bcd5099fa63888b160b90d30e41425e3cae126c60af62f7ebaedb5378c2b4461c7f5a7e1057e8697d4c47e374f607fbf938da512f52453 SHA512 a0a45c33271e4dce0a7cfca52c80a2d4371fd384288249c3abfcd130d9b98256c01f1c2456be1923f592d3a10550eaaba8e578c05a5170cbe695bbbc3fc9a5fb -EBUILD doit-0.32.0-r1.ebuild 1351 BLAKE2B db41e031fecf039f5302225c08cbe955079d77228e093ef9e771c78c91458d62a4c8cd87bd608085fff46c09629b671083fbc186fefdbb9c642135bc84dc38d9 SHA512 5909bfcd746685ca6f7c68a6aa3331c111c0dc37ffd3ee9fd9fac52d98c4a44f7ff459d28363cf319986d40e71858eb2810b1868d063f37fcf5b45e8325d775e -EBUILD doit-0.32.0.ebuild 1846 BLAKE2B b0f30a44db4d6337bd878076c2d20c7923afa690a5f5a5af4be9f3b0c86fa77c3c9e80cfae17e5d963e372239420bd5d8ab67c91fca7163499d2db995e71635e SHA512 351036ff1b7f2a1689308e23a5506c145b98b23a0dbd13c195d19dbc571dde816e2c0e83869e981a9033a1cd2c7191c650131449ba46823b3a2a4c1150de15d7 +EBUILD doit-0.32.0-r1.ebuild 1382 BLAKE2B 35cdaa63fa8da7d22a56b437ce9fcbcb725d19e2c1160c50ec771bc5b9a3e3de1e7307fb9fbba77b82b6bce1f83db4689fee1d7d22847a6d38de048c7e45a2e8 SHA512 0d096d420e41893f03ce6faa3173342cce5842987cca597044f9a76a40095774c15636f34a151932a9768f1309878ac4b0c2797b239a8f18620de92a0b5cd854 +EBUILD doit-0.32.0-r2.ebuild 1385 BLAKE2B 75ed0c32a81356a8a80cb359350da4ac07a9e864806d76782f1f59c1810eb17dcb9e7f3c984d97200c09b8eefd9d4ead6dfb1cfe241a45e2d93418665fcc745c SHA512 50cf8363038366d276dc01a645a1cd027af6e0476c741598db25c824113ff45b796ff47748f090cbd8dc70e7035db3c4e16acb219ecabc23f502421dd9c05da5 MISC metadata.xml 512 BLAKE2B 2d3624f36a7a3919fc3c7afbb459f811234b52f8e83c025d3211c4160c78151616bf1545ea4157dee5742a0267f23879a777b470d4c38746fa512ea3e2decf02 SHA512 52e3181b83ec7fda098ee42d3c61270a32b2170bf48d711d52d277b4448ea1d2672ff8017735cd90ca410fb6996a6547489f873ee20ca35b0246bb6a5a8b82da diff --git a/dev-python/doit/doit-0.29.0.ebuild b/dev-python/doit/doit-0.29.0.ebuild deleted file mode 100644 index c4bf8bd37a49..000000000000 --- a/dev-python/doit/doit-0.29.0.ebuild +++ /dev/null @@ -1,69 +0,0 @@ -# Copyright 1999-2020 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=5 -PYTHON_COMPAT=( python3_6 ) -inherit eutils distutils-r1 - -RESTRICT="test" # can't work as it imports nonexistant modules from coverage - -DESCRIPTION="Automation tool" -HOMEPAGE="http://python-doit.sourceforge.net/ https://pypi.org/project/doit/" -SRC_URI="mirror://pypi/${PN::1}/${PN}/${P}.tar.gz" - -LICENSE="MIT" -SLOT="0" -KEYWORDS="amd64 ~x86" -IUSE="doc test" - -RDEPEND=" - dev-python/cloudpickle[${PYTHON_USEDEP}] - dev-python/pyinotify[${PYTHON_USEDEP}] - dev-python/six[${PYTHON_USEDEP}] - doc? ( dev-python/sphinx[${PYTHON_USEDEP}] ) -" -DEPEND="test? ( ${RDEPEND} - dev-python/pytest[${PYTHON_USEDEP}] - dev-python/mock[${PYTHON_USEDEP}] - dev-python/pyflakes[${PYTHON_USEDEP}] - dev-python/coverage[${PYTHON_USEDEP}] ) -" -PDEPEND=">=dev-python/doit-py-0.3.0[${PYTHON_USEDEP}]" - -# Required for test phase -DISTUTILS_IN_SOURCE_BUILD=1 - -python_prepare_all() { - # Disable test failing due to impact on PATH run in a sandbox - sed -e s':test_target:_&:' -i tests/test_cmd_strace.py || die - - # Test requires connection to an absent database - sed -e s':testIgnoreAll:_&:' -i tests/test_cmd_ignore.py || die - - distutils-r1_python_prepare_all -} - -python_compile_all() { - use doc && emake -C doc html -} - -python_test() { - local -x TMPDIR="${T}" - # disable tests where pypy's treatment of some tests' use of a db is incompatible - - if [[ "${EPYTHON}" == pypy ]]; then - sed -e 's:test_remove_all:_&:' -i tests/test_dependency.py || die - sed -e 's:testForgetAll:_&:' -i tests/test_cmd_forget.py || die - sed -e 's:test_not_picklable:_&:' \ - -e 's:test_task_not_picklabe_multiprocess:_&:' \ - -i tests/test_runner.py || die - fi - - py.test || die "Tests failed under ${EPYTHON}" -} - -src_install() { - use doc && HTML_DOCS=( doc/_build/html/. ) - - distutils-r1_src_install -} diff --git a/dev-python/doit/doit-0.32.0-r1.ebuild b/dev-python/doit/doit-0.32.0-r1.ebuild index e73b597bd0ed..0bdfcaf80c3a 100644 --- a/dev-python/doit/doit-0.32.0-r1.ebuild +++ b/dev-python/doit/doit-0.32.0-r1.ebuild @@ -14,7 +14,7 @@ SRC_URI="mirror://pypi/${PN::1}/${PN}/${P}.tar.gz" LICENSE="MIT" SLOT="0" -KEYWORDS="~amd64 ~x86" +KEYWORDS="amd64 ~x86" RDEPEND=" dev-python/cloudpickle[${PYTHON_USEDEP}] @@ -23,6 +23,7 @@ RDEPEND=" DEPEND=" test? ( ${RDEPEND} + $(python_gen_impl_dep sqlite) dev-python/mock[${PYTHON_USEDEP}] dev-python/pyflakes[${PYTHON_USEDEP}] >=dev-python/pytest-5.4[${PYTHON_USEDEP}] diff --git a/dev-python/doit/doit-0.32.0-r2.ebuild b/dev-python/doit/doit-0.32.0-r2.ebuild new file mode 100644 index 000000000000..b59594aad9b3 --- /dev/null +++ b/dev-python/doit/doit-0.32.0-r2.ebuild @@ -0,0 +1,54 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{6,7,8} ) +DISTUTILS_USE_SETUPTOOLS=rdepend + +inherit bash-completion-r1 distutils-r1 + +DESCRIPTION="Automation tool" +HOMEPAGE="https://pydoit.org/ https://pypi.org/project/doit/" +SRC_URI="mirror://pypi/${PN::1}/${PN}/${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +RDEPEND=" + dev-python/cloudpickle[${PYTHON_USEDEP}] + dev-python/pyinotify[${PYTHON_USEDEP}] + dev-python/six[${PYTHON_USEDEP}]" +DEPEND=" + test? ( + ${RDEPEND} + $(python_gen_impl_dep sqlite) + dev-python/mock[${PYTHON_USEDEP}] + dev-python/pyflakes[${PYTHON_USEDEP}] + >=dev-python/pytest-5.4[${PYTHON_USEDEP}] + )" +PDEPEND=">=dev-python/doit-py-0.4.0[${PYTHON_USEDEP}]" + +distutils_enable_tests pytest +distutils_enable_sphinx doc dev-python/sphinx_rtd_theme + +PATCHES=( + "${FILESDIR}/${P}_pytest5.4.patch" + "${FILESDIR}/${P}_unpickable.patch" +) + +src_prepare() { + default + # Replace custom theme with builtin for documentation + sed -i -e "s:'press':'sphinx_rtd_theme':" doc/conf.py || die + # Disable test failing due to impact on PATH run in a sandbox + sed -i -e "s:test_target:_&:" tests/test_cmd_strace.py || die +} + +src_install() { + distutils-r1_src_install + newbashcomp bash_completion_doit ${PN} + insinto /usr/share/zsh/site-functions + newins zsh_completion_doit _${PN} +} diff --git a/dev-python/doit/doit-0.32.0.ebuild b/dev-python/doit/doit-0.32.0.ebuild deleted file mode 100644 index 347f0c06dfe8..000000000000 --- a/dev-python/doit/doit-0.32.0.ebuild +++ /dev/null @@ -1,71 +0,0 @@ -# Copyright 1999-2020 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 -PYTHON_COMPAT=( python3_6 ) -DISTUTILS_USE_SETUPTOOLS=rdepend - -inherit eutils distutils-r1 - -DESCRIPTION="Automation tool" -HOMEPAGE="http://python-doit.sourceforge.net/ https://pypi.org/project/doit/" -SRC_URI="mirror://pypi/${PN::1}/${PN}/${P}.tar.gz" - -LICENSE="MIT" -SLOT="0" -KEYWORDS="~amd64 ~x86" -IUSE="doc test" - -RESTRICT="!test? ( test )" - -RDEPEND=" - dev-python/cloudpickle[${PYTHON_USEDEP}] - dev-python/pyinotify[${PYTHON_USEDEP}] - dev-python/six[${PYTHON_USEDEP}] - doc? ( dev-python/sphinx[${PYTHON_USEDEP}] ) -" -DEPEND="test? ( ${RDEPEND} - dev-python/pytest[${PYTHON_USEDEP}] - dev-python/mock[${PYTHON_USEDEP}] - dev-python/pyflakes[${PYTHON_USEDEP}] - dev-python/coverage[${PYTHON_USEDEP}] ) -" -PDEPEND=">=dev-python/doit-py-0.3.0[${PYTHON_USEDEP}]" - -# Required for test phase -DISTUTILS_IN_SOURCE_BUILD=1 - -python_prepare_all() { - # Disable test failing due to impact on PATH run in a sandbox - sed -e s':test_target:_&:' -i tests/test_cmd_strace.py || die - - # Test requires connection to an absent database - sed -e s':testIgnoreAll:_&:' -i tests/test_cmd_ignore.py || die - - distutils-r1_python_prepare_all -} - -python_compile_all() { - use doc && emake -C doc html -} - -python_test() { - local -x TMPDIR="${T}" - # disable tests where pypy's treatment of some tests' use of a db is incompatible - - if [[ "${EPYTHON}" == pypy ]]; then - sed -e 's:test_remove_all:_&:' -i tests/test_dependency.py || die - sed -e 's:testForgetAll:_&:' -i tests/test_cmd_forget.py || die - sed -e 's:test_not_picklable:_&:' \ - -e 's:test_task_not_picklabe_multiprocess:_&:' \ - -i tests/test_runner.py || die - fi - - py.test || die "Tests failed under ${EPYTHON}" -} - -src_install() { - use doc && HTML_DOCS=( doc/_build/html/. ) - - distutils-r1_src_install -} |