CI: Adjust for EPEL Python 3.13

[skip changelog]
This commit is contained in:
Miro Hrončok 2025-09-02 17:45:54 +02:00
commit d214bab60d
2 changed files with 11 additions and 32 deletions

View file

@ -12,37 +12,16 @@ discover:
how: shell
url: https://src.fedoraproject.org/rpms/pyproject-rpm-macros.git
tests:
- name: pyproject_pytest
- name: pyproject_isort
path: /tests
test: ./mocktest.sh python-pytest
- name: pyproject_entrypoints
path: /tests
test: ./mocktest.sh python-entrypoints
- name: pyproject_pluggy
path: /tests
test: ./mocktest.sh python-pluggy
- name: pyproject_clikit
path: /tests
test: ./mocktest.sh python-clikit
- name: rpms_python-rpm-generators
how: shell
test: |
# Need to clone on our own, tmt clones it into 'tests' subdirectory
# which breaks fedpkg-minimal pkgname detection
git clone --depth=1 https://src.fedoraproject.org/rpms/python-rpm-generators.git python-rpm-generators &&
cd python-rpm-generators &&
./tests/download_data_and_run_pytest.sh
test: ./mocktest.sh python-isort
prepare:
- name: Install dependencies
how: install
package:
- fedpkg-minimal
- mock
- python3-pip
- python3-pytest
- python3-pyyaml
- python3-setuptools
- python3-wheel
- python3.13
- python3.13-packaging
- rpmdevtools
- rpm-build
- dnf

View file

@ -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.13 -c 'import packaging'
python3.13 -c 'from packaging import version; version.Version("2.5.1rc2")'
python3.13 -c 'from packaging import specifiers; specifiers.SpecifierSet("~=1.0")'
python3.13 -c 'from packaging import markers; markers.Marker("python_version>'"'"'2'"'"'")'
python3.13 -c 'from packaging import requirements; requirements.Requirement('"'"'name[foo]>=2,<3; python_version>"2.0"'"'"')'
python3.13 -c 'from packaging import tags; tags.Tag("py39", "none", "any")'
python3.13 -c 'from packaging.utils import canonicalize_name; canonicalize_name("Django_foobar")'