Compare commits

...
Sign in to create a new pull request.

8 commits

Author SHA1 Message Date
Python Maint
efb6ac5714 Rebuilt for Python 3.14.0rc3 bytecode 2025-09-19 13:55:23 +02:00
Lukáš Zachar
38746eb07f CI: Drop STI and use tmt instead
Resolves: rhbz#2383038
2025-09-02 09:32:22 +00:00
Python Maint
5826dff7bb Rebuilt for Python 3.14.0rc2 bytecode 2025-08-15 14:19:05 +02:00
Fedora Release Engineering
6fcf0545b1 Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild 2025-07-25 09:13:37 +00:00
Python Maint
4f8ffba24f Rebuilt for Python 3.14 2025-06-03 11:30:32 +02:00
Python Maint
1d5255c3b7 Bootstrap for Python 3.14 2025-06-02 11:22:42 +02:00
Lumir Balhar
177dbd914c Update to 25.0 (rhbz#2361114) 2025-04-20 20:26:22 +02:00
Karolina Surma
f20db6945a Run a smoke test on CI
Unify the test suite between Fedora and CentOS Stream.
This has been cherry-picked from c10s branch.
2025-01-27 14:10:48 +00:00
7 changed files with 68 additions and 39 deletions

1
.fmf/version Normal file
View file

@ -0,0 +1 @@
1

1
.gitignore vendored
View file

@ -19,3 +19,4 @@
/packaging-24.0.tar.gz
/packaging-24.1.tar.gz
/packaging-24.2.tar.gz
/packaging-25.0.tar.gz

51
plan.fmf Normal file
View file

@ -0,0 +1,51 @@
execute:
how: tmt
discover:
- name: same_repo
how: shell
tests:
- name: smoke
test: ./smoke/runtest.sh
path: /tests
- name: rpms_pyproject-rpm-macros
how: shell
url: https://src.fedoraproject.org/rpms/pyproject-rpm-macros.git
tests:
- name: pyproject_pytest
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
prepare:
- name: Install dependencies
how: install
package:
- fedpkg-minimal
- mock
- python3-pip
- python3-pytest
- python3-pyyaml
- python3-setuptools
- python3-wheel
- rpmdevtools
- rpm-build
- dnf
- name: Update packages
how: shell
script: dnf upgrade -y

View file

@ -21,7 +21,7 @@
%endif
Name: python-%{pypi_name}
Version: 24.2
Version: 25.0
Release: %autorelease
Summary: Core utilities for Python packages

View file

@ -1 +1 @@
SHA512 (packaging-24.2.tar.gz) = cab6be7284c6bc2abce7a5bbdc25a40e33378576c5590dad4aef9d835a2205af81ca24af7ae3603d0e4e32f8865d87a621187dae2f86df6ac613c9886d482804
SHA512 (packaging-25.0.tar.gz) = fb8419f81f0f817440c0b297fc6e963832e219e7a324bf4e0321f1e131a4822f17a19f2eb033a8d4adb622ccb16db59776ec44906a0c0b34f2877b59b9558c18

13
tests/smoke/runtest.sh Executable file
View file

@ -0,0 +1,13 @@
#!/bin/bash
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")'

View file

@ -1,37 +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
required_packages:
- fedpkg-minimal
- mock
- python3-pip
- python3-pytest
- python3-pyyaml
- python3-setuptools
- python3-wheel
- rpmdevtools
- rpm-build