diff options
author | Virgil Dupras <vdupras@gentoo.org> | 2018-08-12 07:53:23 -0400 |
---|---|---|
committer | Virgil Dupras <vdupras@gentoo.org> | 2018-08-12 08:21:02 -0400 |
commit | b34fb319c67965bf26a85a056a80d66cce03d118 (patch) | |
tree | b8fc4c967a4872a424915866c343851290caef8a /dev-python/tox | |
parent | net-analyzer/2ping: version bump to 4.2 (diff) | |
download | gentoo-b34fb319c67965bf26a85a056a80d66cce03d118.tar.gz gentoo-b34fb319c67965bf26a85a056a80d66cce03d118.tar.bz2 gentoo-b34fb319c67965bf26a85a056a80d66cce03d118.zip |
dev-python/tox: bump to 3.2.1
* Add myself as maintainer
* Un-RESTRICT tests
* EAPI 7
* Add Python 3.7
* Remove Python 3.4
* Temporarily drop alpha, arm, arm64, ia64, ppc, amd64-fbsd due to new
deps
Package-Manager: Portage-2.3.45, Repoman-2.3.10
Diffstat (limited to 'dev-python/tox')
-rw-r--r-- | dev-python/tox/Manifest | 1 | ||||
-rw-r--r-- | dev-python/tox/metadata.xml | 4 | ||||
-rw-r--r-- | dev-python/tox/tox-3.2.1.ebuild | 61 |
3 files changed, 66 insertions, 0 deletions
diff --git a/dev-python/tox/Manifest b/dev-python/tox/Manifest index cbe6d4cc96ab..1c3856a63d30 100644 --- a/dev-python/tox/Manifest +++ b/dev-python/tox/Manifest @@ -1 +1,2 @@ DIST tox-2.9.1.tar.gz 1855982 BLAKE2B 3e2f5fd3d3e45e54f96b0a6fc8f9e98bfba3b48540cc2922a897e016b5aabc9974772c9b897e0fab7b38b00f99478a063ad988ffa8b65fa53f684997334e492c SHA512 ff19b2bb7ac963379f1cccd4973ad9eb4dabfbda976cde7caba50ad010d8fa57c1cba91d63e3e0512e44cc7d350bc9270fbd9b30db1bd55f7d9c239e7623d066 +DIST tox-3.2.1.tar.gz 268827 BLAKE2B 764835d04fb0c17f32eb8e2041b83f90d6a729b781a5b5b95e9ecb1162f1c29ed595d4a6369524b390a31853b8003485b27a3a12d63e84f49e92675f1a9bee13 SHA512 79f5a1c8f6e818fbb8444754e3767d880fc1fdfe63b46c518d37440fe2b2f3ce572865aff83d9492c24486fded49893cc31bd9b11254bac4db507260304bc76f diff --git a/dev-python/tox/metadata.xml b/dev-python/tox/metadata.xml index 9a563f6807cb..92419b0faa7e 100644 --- a/dev-python/tox/metadata.xml +++ b/dev-python/tox/metadata.xml @@ -1,6 +1,10 @@ <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> <pkgmetadata> + <maintainer type="person"> + <email>vdupras@gentoo.org</email> + <name>Virgil Dupras</name> + </maintainer> <maintainer type="project"> <email>python@gentoo.org</email> <name>Python</name> diff --git a/dev-python/tox/tox-3.2.1.ebuild b/dev-python/tox/tox-3.2.1.ebuild new file mode 100644 index 000000000000..e739e5196426 --- /dev/null +++ b/dev-python/tox/tox-3.2.1.ebuild @@ -0,0 +1,61 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python{2_7,3_{5,6,7}} pypy{,3} ) + +inherit distutils-r1 + +DESCRIPTION="virtualenv-based automation of test activities" +HOMEPAGE="https://tox.readthedocs.io https://github.com/tox-dev/tox https://pypi.org/project/tox/" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~hppa ~mips ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux" + +IUSE="doc test" + +RDEPEND=" + dev-python/setuptools[${PYTHON_USEDEP}] + >=dev-python/virtualenv-1.11.2[${PYTHON_USEDEP}] + <dev-python/pluggy-1.0[${PYTHON_USEDEP}] + dev-python/pip[${PYTHON_USEDEP}] + >=dev-python/py-1.4.17[${PYTHON_USEDEP}] + dev-python/six[${PYTHON_USEDEP}]" +DEPEND="${RDEPEND} + dev-python/setuptools_scm[${PYTHON_USEDEP}] + doc? ( dev-python/sphinx[${PYTHON_USEDEP}] ) + test? ( + >=dev-python/pytest-3.6[${PYTHON_USEDEP}] + <dev-python/pytest-4.0 + <dev-python/pytest-mock-2.0[${PYTHON_USEDEP}] + )" + +python_prepare_all() { + # remove intersphinx stuff + sed -i -e "s/'sphinx.ext.intersphinx',//" doc/conf.py || die + distutils-r1_python_prepare_all +} + +python_compile_all() { + if use doc; then + esetup.py build_sphinx + HTML_DOCS=( "${S}"/doc/build/html/. ) + fi +} + +python_test() { + # TODO: find why these 8 tests excluded below fail. + pytest -v --no-network \ + --deselect tests/test_config.py::test_plugin_require \ + --deselect tests/test_docs.py::test_all_rst_ini_blocks_parse \ + --deselect tests/test_interpreters.py::test_tox_get_python_executable \ + --deselect tests/test_session.py::test_tox_parallel_build_safe \ + --deselect tests/test_venv.py::test_install_python3 \ + --deselect tests/test_z_cmdline.py::test_alwayscopy \ + --deselect tests/test_z_cmdline.py::test_tox_quickstart_script \ + --deselect tests/test_z_cmdline.py::test_tox_console_script \ + || die "Testsuite failed under ${EPYTHON}" +} |