diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-08-20 15:41:38 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-08-20 15:41:38 +0100 |
commit | a597364520b9291d0b2a23bb007ced022e821d95 (patch) | |
tree | fbdb29d309a73a184394006e206a8d4362ccdad8 /dev-python/pytest-ordering | |
parent | 1def2e3dbbf3c86abad238d1118502cfe7f61f08 (diff) |
gentoo auto-resync : 20:08:2023 - 15:41:38
Diffstat (limited to 'dev-python/pytest-ordering')
-rw-r--r-- | dev-python/pytest-ordering/Manifest | 3 | ||||
-rw-r--r-- | dev-python/pytest-ordering/files/pytest-ordering-0.6-marks.patch | 56 | ||||
-rw-r--r-- | dev-python/pytest-ordering/pytest-ordering-0.6-r1.ebuild | 35 |
3 files changed, 94 insertions, 0 deletions
diff --git a/dev-python/pytest-ordering/Manifest b/dev-python/pytest-ordering/Manifest index f7e7a30edb30..9000385dc2d4 100644 --- a/dev-python/pytest-ordering/Manifest +++ b/dev-python/pytest-ordering/Manifest @@ -1,4 +1,7 @@ AUX pytest-ordering-0.6-fix-pytest-6.patch 920 BLAKE2B 2b964bd2cef5f947bc53554abb8c7f0432f3a8ca632b0f52dd304836a79a4e4050edc0e6350f92f517f43a8fec077a58ec407ec90ee1489501ceb7b6971fa76b SHA512 7164f9982668dbdeb016e39937101bf879b6b0267e05f854b34a50637505ed762f6fbc931428e346591e7a1b1ce1da0a929f19222931db5b284bdcbdd2fc0ef7 +AUX pytest-ordering-0.6-marks.patch 2201 BLAKE2B c538eecbabb3e951cb596874f08d7733e6354655ee439e7a7148f689d5292f2ba51266f26b23c31be04864d73155cb49af83e36389cd28e2f587c7d871583c9a SHA512 3c69e925c5558ac8bccd45b7b13b5c4e6398064cd66fc617697675087c49b6b6c65c0537d94225febca5ed488108b589a15b54e31e4e8324d9f6779bf87d7051 +DIST pytest-ordering-0.6.gh.tar.gz 11046 BLAKE2B 468ae5f04029b96ed3058b7f429aec0aaf96092453b229c3de5eab174702af2c1a9fe83171c68d282c4a144b3dd736daf9ed87b9e139a7bd175114f504049ebc SHA512 fd3aec83914f64d1295e1a1bf3fdc580c6824a749a1da8cebae275fef940d6ed6e5dcafad321d94f504a153e13e298b6544dc3c2db716a6b25d3148c2365fe15 DIST pytest-ordering-0.6.tar.gz 11046 BLAKE2B 468ae5f04029b96ed3058b7f429aec0aaf96092453b229c3de5eab174702af2c1a9fe83171c68d282c4a144b3dd736daf9ed87b9e139a7bd175114f504049ebc SHA512 fd3aec83914f64d1295e1a1bf3fdc580c6824a749a1da8cebae275fef940d6ed6e5dcafad321d94f504a153e13e298b6544dc3c2db716a6b25d3148c2365fe15 +EBUILD pytest-ordering-0.6-r1.ebuild 782 BLAKE2B 33a98bedaa5a2e19cfb0e99ceba2c13e94d8b04ed3ef072e676b1045c3e861c94e6a55780e565c6a63d77d86f9086ac573f35ee2f22cf074fef7283011d9831d SHA512 56d0f707884c073d1c2e13bbe2137a4066e1ee1a0838389738372dd8cb2d142be262987f3ad4834405b455c99ac2ec3235290df4289592eb8e07638130a259ee EBUILD pytest-ordering-0.6.ebuild 953 BLAKE2B ad8fd2c3d2ed4a095a83f0de99f9555498340d3610fb6725d62d071b6c0ed17e23b4e596623c950e8131f23eb0da2c027eb38aa120a1cfb87c4c92f341474ad0 SHA512 0b87f692bc6d3d552373a9439ef685097bac2fc3efd2d32488e399e7c0cb35a5836be34cc7c81174b12fe0af81571bde027b015cf7b316c1427527c352901108 MISC metadata.xml 332 BLAKE2B 8f6a20fe97daec023aa9b960f6dada8bc67b3c99c69f2e2a103c519d4f1149361a2ef573c9f1d5bd4093bf2e75c5d16f6d9e28e10c8557e8fab8702127790273 SHA512 0d0ce655c9d397b27e0eb8b77e7e5e83fe9aac352a3aa403327b5b0ff6eb13a2455f512493498c9fcf559c30b5ff09925d3e0c2d2568040948165052b123f516 diff --git a/dev-python/pytest-ordering/files/pytest-ordering-0.6-marks.patch b/dev-python/pytest-ordering/files/pytest-ordering-0.6-marks.patch new file mode 100644 index 000000000000..16712166325c --- /dev/null +++ b/dev-python/pytest-ordering/files/pytest-ordering-0.6-marks.patch @@ -0,0 +1,56 @@ +From 6de05faa7d399a3f0f99b33b75747d39adb1f535 Mon Sep 17 00:00:00 2001 +From: Brian Maissy <brian.maissy@gmail.com> +Date: Fri, 31 May 2019 03:03:38 +0300 +Subject: [PATCH] register marks, document python and pytest dependencies, and + test the full matrix with tox and travis + +minimized from: +https://github.com/ftobia/pytest-ordering/commit/6de05faa7d399a3f0f99b33b75747d39adb1f535 + +diff --git a/pytest_ordering/__init__.py b/pytest_ordering/__init__.py +index 0cca91d..c8eb64a 100644 +--- a/pytest_ordering/__init__.py ++++ b/pytest_ordering/__init__.py +@@ -28,13 +28,23 @@ + def pytest_configure(config): + """Register the "run" marker.""" + ++ provided_by_pytest_ordering = ( ++ 'Provided by pytest-ordering. ' ++ 'See also: http://pytest-ordering.readthedocs.org/' ++ ) ++ + config_line = ( + 'run: specify ordering information for when tests should run ' +- 'in relation to one another. Provided by pytest-ordering. ' +- 'See also: http://pytest-ordering.readthedocs.org/' ++ 'in relation to one another. ' + provided_by_pytest_ordering + ) + config.addinivalue_line('markers', config_line) + ++ for mark_name in orders_map.keys(): ++ config_line = '{}: run test {}. {}'.format(mark_name, ++ mark_name.replace('_', ' '), ++ provided_by_pytest_ordering) ++ config.addinivalue_line('markers', config_line) ++ + + def pytest_collection_modifyitems(session, config, items): + grouped_items = {} +diff --git a/tests/test_ordering.py b/tests/test_ordering.py +index 12f4689..dd703ab 100644 +--- a/tests/test_ordering.py ++++ b/tests/test_ordering.py +@@ -268,7 +268,10 @@ def test_5(self): pass + assert item_names_for(tests_content) == ['test_3', 'test_4', 'test_5', 'test_1', 'test_2'] + + +-def test_run_marker_registered(capsys): +- pytest.main('--markers') ++def test_markers_registered(capsys): ++ pytest.main(['--markers']) + out, err = capsys.readouterr() + assert '@pytest.mark.run' in out ++ assert '@pytest.mark.first' in out ++ assert '@pytest.mark.last' in out ++ assert out.count('Provided by pytest-ordering') == 17 diff --git a/dev-python/pytest-ordering/pytest-ordering-0.6-r1.ebuild b/dev-python/pytest-ordering/pytest-ordering-0.6-r1.ebuild new file mode 100644 index 000000000000..745247f5ffdb --- /dev/null +++ b/dev-python/pytest-ordering/pytest-ordering-0.6-r1.ebuild @@ -0,0 +1,35 @@ +# Copyright 1999-2023 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="pytest plugin to run your tests in a specific order" +HOMEPAGE=" + https://github.com/ftobia/pytest-ordering/ + https://pypi.org/project/pytest-ordering/ +" +SRC_URI=" + https://github.com/ftobia/pytest-ordering/archive/${PV}.tar.gz + -> ${P}.gh.tar.gz +" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" + +RDEPEND=" + dev-python/pytest[${PYTHON_USEDEP}] +" + +PATCHES=( + "${FILESDIR}/${P}-fix-pytest-6.patch" + "${FILESDIR}/${P}-marks.patch" +) + +distutils_enable_tests pytest +distutils_enable_sphinx docs/source |