diff options
Diffstat (limited to 'dev-python/transitions')
-rw-r--r-- | dev-python/transitions/Manifest | 2 | ||||
-rw-r--r-- | dev-python/transitions/transitions-0.9.1.ebuild | 59 |
2 files changed, 61 insertions, 0 deletions
diff --git a/dev-python/transitions/Manifest b/dev-python/transitions/Manifest index 97289e8bfcc4..8a2674d6fe4a 100644 --- a/dev-python/transitions/Manifest +++ b/dev-python/transitions/Manifest @@ -1,3 +1,5 @@ DIST transitions-0.9.0.gh.tar.gz 1116052 BLAKE2B 3c3f0f70029fac11b89741c17b4f8223ffff7b1f4120dbacf9047c7c9d8063df00449e7ceb378aeb6263d4f55245bb89f08f6eaa0a74948368bd0eb0227fea40 SHA512 805894ba772e4a31f1fd567d3765f8ee3f3498ca5b9dd4d5b94224722d48347a2feee284dab577eca97a748dc6f810dedf1cbc3b50f41f0ab5b65d84241b9638 +DIST transitions-0.9.1.gh.tar.gz 1124905 BLAKE2B 6d8700c9b2b2d200c8377e698f4057caa78908ee7156daa3fce1f49d86c6bc9afd45fe7af4122c2e124681c3c581e98f657e39444595f97ed7fb3c64f57d70fd SHA512 8e946ee9b8e3ed0629381514b4af4446625de0cea7cc8780326829ad987b4c0f9402484ed98ca66b12e95c8da79f77c62aba9f000dbe42779f158529cde3f279 EBUILD transitions-0.9.0.ebuild 899 BLAKE2B 4385e1b7d0f984065e53925d1ac0e6c7aacfd708abab2e288f164da16325c6c366d5c3fb1550c2160caaf32b530e0b7e37e8357aa8c4aceeefb66f6732003e02 SHA512 bbd925e3766e29ebc7a03209a596988fb5d980610b4ce17c5b8cd9980ecc98fb3312e1897dc67b30223c83cf14b2d8ab098bb90ba0adb379c3377c569285c6e5 +EBUILD transitions-0.9.1.ebuild 1144 BLAKE2B 951a3befef6648775691d1ae40136cd9bdaafe946e2423075520bee982312403de44a5b6c6e3a136cdd99dc4dbf4dcd88d5d5742e02108368be0af7d3b4cf7c4 SHA512 c68c278d4edd73219cd4f0a8d6c9bf3476387ac6d611c203f913b3f6e242c81b400693809924c170db296ea82d88102909829175e3b0f24e874f9df81aec63e1 MISC metadata.xml 863 BLAKE2B 8ab7f50602ca6a7723c10c29c0bf436beb742e389fea5d4b98acf1828fb3287af27fed05f6c9e61cb65059d51a2290e0fe69515c1a67b138cfdac4cbaa7752bb SHA512 6e440169ae4a16c53f2a451d9f32e3d4831151b3af8a5f95f157e32a01cb2fde56bbab13e438c88f10e79fe37fa5ca6b48e18bfa9aaa81b96b7c703e2125356f diff --git a/dev-python/transitions/transitions-0.9.1.ebuild b/dev-python/transitions/transitions-0.9.1.ebuild new file mode 100644 index 000000000000..eadff084d9b8 --- /dev/null +++ b/dev-python/transitions/transitions-0.9.1.ebuild @@ -0,0 +1,59 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517="setuptools" +PYTHON_COMPAT=( python3_{10..12} ) + +inherit distutils-r1 + +DESCRIPTION="A lightweight, object-oriented state machine implementation in Python" +HOMEPAGE="https://github.com/pytransitions/transitions" +SRC_URI=" + https://github.com/pytransitions/${PN}/archive/${PV}.tar.gz + -> ${P}.gh.tar.gz +" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~x86" +IUSE="examples" + +RDEPEND=" + || ( + dev-python/pygraphviz[${PYTHON_USEDEP}] + dev-python/graphviz[${PYTHON_USEDEP}] + ) + dev-python/six[${PYTHON_USEDEP}] +" +BDEPEND=" + test? ( + dev-python/dill[${PYTHON_USEDEP}] + dev-python/mock[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest + +src_prepare() { + distutils-r1_src_prepare + + # magic to ignore async tests sometimes, breaks EPYTEST_IGNORE + rm conftest.py || die +} + +python_test() { + local EPYTEST_IGNORE=( + # pycodestyle, mypy, etc. + tests/test_codestyle.py + ) + + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 + epytest +} + +src_install() { + distutils-r1_src_install + use examples && dodoc examples/*.ipynb +} |