Compare commits
No commits in common. "rawhide" and "f41" have entirely different histories.
7 changed files with 39 additions and 68 deletions
|
|
@ -1 +0,0 @@
|
||||||
1
|
|
||||||
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -19,4 +19,3 @@
|
||||||
/packaging-24.0.tar.gz
|
/packaging-24.0.tar.gz
|
||||||
/packaging-24.1.tar.gz
|
/packaging-24.1.tar.gz
|
||||||
/packaging-24.2.tar.gz
|
/packaging-24.2.tar.gz
|
||||||
/packaging-25.0.tar.gz
|
|
||||||
|
|
|
||||||
51
plan.fmf
51
plan.fmf
|
|
@ -1,51 +0,0 @@
|
||||||
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
|
|
||||||
|
|
@ -21,7 +21,7 @@
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
Name: python-%{pypi_name}
|
Name: python-%{pypi_name}
|
||||||
Version: 25.0
|
Version: 24.2
|
||||||
Release: %autorelease
|
Release: %autorelease
|
||||||
Summary: Core utilities for Python packages
|
Summary: Core utilities for Python packages
|
||||||
|
|
||||||
|
|
|
||||||
2
sources
2
sources
|
|
@ -1 +1 @@
|
||||||
SHA512 (packaging-25.0.tar.gz) = fb8419f81f0f817440c0b297fc6e963832e219e7a324bf4e0321f1e131a4822f17a19f2eb033a8d4adb622ccb16db59776ec44906a0c0b34f2877b59b9558c18
|
SHA512 (packaging-24.2.tar.gz) = cab6be7284c6bc2abce7a5bbdc25a40e33378576c5590dad4aef9d835a2205af81ca24af7ae3603d0e4e32f8865d87a621187dae2f86df6ac613c9886d482804
|
||||||
|
|
|
||||||
|
|
@ -1,13 +0,0 @@
|
||||||
#!/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")'
|
|
||||||
37
tests/tests.yml
Normal file
37
tests/tests.yml
Normal file
|
|
@ -0,0 +1,37 @@
|
||||||
|
---
|
||||||
|
- 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
|
||||||
Loading…
Add table
Add a link
Reference in a new issue