diff options
author | Arthur Zamarin <arthurzam@gentoo.org> | 2021-09-01 21:27:55 +0300 |
---|---|---|
committer | Arthur Zamarin <arthurzam@gentoo.org> | 2021-09-01 21:30:41 +0300 |
commit | 9527f313d1e32b433b8b6fd68c243994c846f176 (patch) | |
tree | 3c19322dfd1c2664d2b459be951c661471cb3474 /dev-python/pytest-helpers-namespace | |
parent | dev-python/pytest-flake8: enable py3.10 (diff) | |
download | gentoo-9527f313d1e32b433b8b6fd68c243994c846f176.tar.gz gentoo-9527f313d1e32b433b8b6fd68c243994c846f176.tar.bz2 gentoo-9527f313d1e32b433b8b6fd68c243994c846f176.zip |
dev-python/pytest-helpers-namespace: add 2021.3.24, enable py3.10, EAPI=8
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
Diffstat (limited to 'dev-python/pytest-helpers-namespace')
3 files changed, 90 insertions, 0 deletions
diff --git a/dev-python/pytest-helpers-namespace/Manifest b/dev-python/pytest-helpers-namespace/Manifest index 89648fcfe50f..0ee533612a24 100644 --- a/dev-python/pytest-helpers-namespace/Manifest +++ b/dev-python/pytest-helpers-namespace/Manifest @@ -1 +1,2 @@ +DIST pytest-helpers-namespace-2021.3.24.gh.tar.gz 25881 BLAKE2B d13e82eebf09b4acb1d8fb9d3609f8814a49bfd0df56f23fe6f3fe3fa1508c4f1ac338b3f75e1e97ae90f71cae548dd100548d23cdbaa6c4bdb76cdb6e3d4a41 SHA512 1914427a4805a168d4067cd5db5663d28e3ff680f612e70a169a7efbc6c2c7ba0e2dc74132595aa70e13b651886bd10a6947e56558edf22b871618c967537073 DIST pytest-helpers-namespace-v2019.1.8.tar.gz 10274 BLAKE2B 1d232817e99909738f7f37466ba22fbeadf75f4fbfdd9b61790dd79418bedbce4ee219e5102ee2db1709ba991e323ce6edffc68c4e3a657c58cb628b505de098 SHA512 d5f4db3ece8b0e1719c4d1213a5e07a3c53257b089d3d74f90cf86f21a7951983a95286c7753f5e9486acc7e482d79c2a95d5a7b8eb22e19c7048db99fa3c421 diff --git a/dev-python/pytest-helpers-namespace/files/pytest-helpers-namespace-2021.3.24-remove-extra-dep.patch b/dev-python/pytest-helpers-namespace/files/pytest-helpers-namespace-2021.3.24-remove-extra-dep.patch new file mode 100644 index 000000000000..5bde4bccd537 --- /dev/null +++ b/dev-python/pytest-helpers-namespace/files/pytest-helpers-namespace-2021.3.24-remove-extra-dep.patch @@ -0,0 +1,48 @@ +--- a/pyproject.toml ++++ b/pyproject.toml +@@ -1,7 +1,3 @@ + [build-system] + requires = ["setuptools>=50.3.2", "wheel", "setuptools-declarative-requirements", "setuptools_scm[toml]>=3.4"] + build-backend = "setuptools.build_meta" +- +-[tool.setuptools_scm] +-write_to = "src/pytest_helpers_namespace/version.py" +-write_to_template = "__version__ = \"{version}\"" +--- a/setup.cfg ++++ b/setup.cfg +@@ -1,4 +1,5 @@ + [metadata] ++version = @PV@ + name = pytest-helpers-namespace + description = Pytest Helpers Namespace Plugin + long_description = file: README.rst +@@ -34,21 +35,12 @@ packages = find: + python_requires = >= 3.5 + setup_requires = + setuptools>=50.3.2 +- setuptools_scm[toml]>=3.4 +- setuptools-declarative-requirements + + [options.packages.find] + where = src + exclude = + tests + +-[requirements-files] +-install_requires = requirements/base.txt +-extras_require = +- docs = requirements/docs.txt +- lint = requirements/lint.txt +- tests = requirements/tests.txt +- + [options.entry_points] + pytest11 = + helpers_namespace = pytest_helpers_namespace.plugin +--- a/setup.py ++++ b/setup.py +@@ -2,4 +2,4 @@ + import setuptools + + if __name__ == "__main__": +- setuptools.setup(use_scm_version=True) ++ setuptools.setup() diff --git a/dev-python/pytest-helpers-namespace/pytest-helpers-namespace-2021.3.24.ebuild b/dev-python/pytest-helpers-namespace/pytest-helpers-namespace-2021.3.24.ebuild new file mode 100644 index 000000000000..68c0ee8e6852 --- /dev/null +++ b/dev-python/pytest-helpers-namespace/pytest-helpers-namespace-2021.3.24.ebuild @@ -0,0 +1,41 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{8..10} ) +inherit distutils-r1 + +DESCRIPTION="Provides a helpers pytest namespace" +HOMEPAGE="https://github.com/saltstack/pytest-helpers-namespace" +SRC_URI=" + https://github.com/saltstack/${PN}/archive/v${PV}.tar.gz + -> ${P}.gh.tar.gz +" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~x86" + +RDEPEND="dev-python/pytest[${PYTHON_USEDEP}]" +BDEPEND=" + test? ( + dev-python/pytest-forked[${PYTHON_USEDEP}] + ) +" + +PATCHES=( + "${FILESDIR}/${P}-remove-extra-dep.patch" +) + +distutils_enable_tests pytest + +python_prepare_all() { + distutils-r1_python_prepare_all + sed -e "s/@PV@/${PV}/" -i setup.cfg || die +} + +python_test() { + distutils_install_for_testing + epytest --forked +} |