From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 33F0315800A for ; Sun, 20 Aug 2023 08:50:39 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 111B82BC015; Sun, 20 Aug 2023 08:50:38 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id D44482BC014 for ; Sun, 20 Aug 2023 08:50:37 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 116F0340D2A for ; Sun, 20 Aug 2023 08:50:37 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 70834100F for ; Sun, 20 Aug 2023 08:50:35 +0000 (UTC) From: "Michał Górny" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michał Górny" Message-ID: <1692521429.19fc936e8a3159c11cfe597371873b82652eabff.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/pytest-ordering/files/, dev-python/pytest-ordering/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/pytest-ordering/Manifest dev-python/pytest-ordering/files/pytest-ordering-0.6-marks.patch dev-python/pytest-ordering/pytest-ordering-0.6-r1.ebuild X-VCS-Directories: dev-python/pytest-ordering/ dev-python/pytest-ordering/files/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: 19fc936e8a3159c11cfe597371873b82652eabff X-VCS-Branch: master Date: Sun, 20 Aug 2023 08:50:35 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 16336688-40d1-4c9f-be1a-f42589b12bd0 X-Archives-Hash: de87997e193e111ff29ac9ead6bf7212 commit: 19fc936e8a3159c11cfe597371873b82652eabff Author: Michał Górny gentoo org> AuthorDate: Sun Aug 20 08:32:27 2023 +0000 Commit: Michał Górny gentoo org> CommitDate: Sun Aug 20 08:50:29 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=19fc936e dev-python/pytest-ordering: Modernize, PEP517, py3.12, fix tests Signed-off-by: Michał Górny gentoo.org> dev-python/pytest-ordering/Manifest | 1 + .../files/pytest-ordering-0.6-marks.patch | 56 ++++++++++++++++++++++ .../pytest-ordering/pytest-ordering-0.6-r1.ebuild | 35 ++++++++++++++ 3 files changed, 92 insertions(+) diff --git a/dev-python/pytest-ordering/Manifest b/dev-python/pytest-ordering/Manifest index 0036ecd18b92..ef887d6f8750 100644 --- a/dev-python/pytest-ordering/Manifest +++ b/dev-python/pytest-ordering/Manifest @@ -1 +1,2 @@ +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 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 +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