diff --git a/.fmf/version b/.fmf/version new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/.fmf/version @@ -0,0 +1 @@ +1 diff --git a/gating.yaml b/gating.yaml index 282e16b..2c7ed80 100644 --- a/gating.yaml +++ b/gating.yaml @@ -1,7 +1,6 @@ --- !Policy product_versions: - - fedora-* -decision_context: bodhi_update_push_stable -subject_type: koji_build + - rhel-* +decision_context: osci_compose_gate rules: - - !PassingTestCaseRule {test_case_name: fedora-ci.koji-build.tier0.functional} + - !PassingTestCaseRule {test_case_name: osci.brew-build.tier0.functional} diff --git a/plan.fmf b/plan.fmf new file mode 100644 index 0000000..8e9845a --- /dev/null +++ b/plan.fmf @@ -0,0 +1,18 @@ +execute: + how: tmt + +discover: + how: shell + dist-git-source: true + tests: + - name: smoke + test: tests/smoke/runtest.sh + - name: unittests + test: | + cd $(dirname $TMT_SOURCE_DIR/packaging*/tests) + pip3.14 show pretend || pip3.14 install pretend + pytest-3.14 tests/ + require: + - python3.14-packaging + - python3.14-pytest + - python3.14-pip diff --git a/tests/smoke/runtest.sh b/tests/smoke/runtest.sh old mode 100644 new mode 100755 index d0e4f06..f4acabe --- a/tests/smoke/runtest.sh +++ b/tests/smoke/runtest.sh @@ -4,10 +4,10 @@ set -eux # Currently there is no easy way to see the versions of installed packages. # Let's list them to make sure we're testing against the correct package set. rpm -qa | sort -python3 -c 'import packaging' -python3 -c 'from packaging import version; version.Version("2.5.1rc2")' -python3 -c 'from packaging import specifiers; specifiers.SpecifierSet("~=1.0")' -python3 -c 'from packaging import markers; markers.Marker("python_version>'"'"'2'"'"'")' -python3 -c 'from packaging import requirements; requirements.Requirement('"'"'name[foo]>=2,<3; python_version>"2.0"'"'"')' -python3 -c 'from packaging import tags; tags.Tag("py39", "none", "any")' -python3 -c 'from packaging.utils import canonicalize_name; canonicalize_name("Django_foobar")' +python3.14 -c 'import packaging' +python3.14 -c 'from packaging import version; version.Version("2.5.1rc2")' +python3.14 -c 'from packaging import specifiers; specifiers.SpecifierSet("~=1.0")' +python3.14 -c 'from packaging import markers; markers.Marker("python_version>'"'"'2'"'"'")' +python3.14 -c 'from packaging import requirements; requirements.Requirement('"'"'name[foo]>=2,<3; python_version>"2.0"'"'"')' +python3.14 -c 'from packaging import tags; tags.Tag("py39", "none", "any")' +python3.14 -c 'from packaging.utils import canonicalize_name; canonicalize_name("Django_foobar")' diff --git a/tests/tests.yml b/tests/tests.yml deleted file mode 100644 index a403286..0000000 --- a/tests/tests.yml +++ /dev/null @@ -1,40 +0,0 @@ ---- -- hosts: localhost - roles: - - role: standard-test-basic - tags: - - classic - repositories: - - repo: "https://src.fedoraproject.org/rpms/pyproject-rpm-macros.git" - dest: "pyproject-rpm-macros" - - repo: "https://src.fedoraproject.org/rpms/python-rpm-generators.git" - dest: "python-rpm-generators" - tests: - - pyproject_pytest: - dir: pyproject-rpm-macros/tests - run: ./mocktest.sh python-pytest - - pyproject_entrypoints: - dir: pyproject-rpm-macros/tests - run: ./mocktest.sh python-entrypoints - - pyproject_pluggy: - dir: pyproject-rpm-macros/tests - run: ./mocktest.sh python-pluggy - - pyproject_clikit: - dir: pyproject-rpm-macros/tests - run: ./mocktest.sh python-clikit - - rpm_generators_unit_tests: - dir: python-rpm-generators - run: ./tests/download_data_and_run_pytest.sh - - smoke: - dir: . - run: ./smoke/runtest.sh - required_packages: - - fedpkg-minimal - - mock - - python3-pip - - python3-pytest - - python3-pyyaml - - python3-setuptools - - python3-wheel - - rpmdevtools - - rpm-build