48c0de39d9
See https://src.fedoraproject.org/rpms/python-setuptools/pull-request/40 Strictly speaking, this is not an RPM generator, but: - it generates provides - it is tighly coupled with pythondistdeps.py Usage: 1. Run `$ /usr/lib/rpm/pythonbundles.py .../vendored.txt` 2. Copy the output into the spec as a macro definition: %global bundled %{expand: Provides: bundled(python3dist(appdirs)) = 1.4.3 Provides: bundled(python3dist(packaging)) = 16.8 Provides: bundled(python3dist(pyparsing)) = 2.2.1 Provides: bundled(python3dist(six)) = 1.15 } 3. Use the macro to expand the provides 4. Verify the macro contents in %check: %check ... %{_rpmconfigdir}/pythonbundles.py src/_vendor/vendored.txt --compare-with '%{bundled}'
46 lines
928 B
YAML
46 lines
928 B
YAML
---
|
|
- hosts: localhost
|
|
tags:
|
|
- classic
|
|
tasks:
|
|
- dnf:
|
|
name: "*"
|
|
state: latest
|
|
|
|
- hosts: localhost
|
|
tags:
|
|
- classic
|
|
pre_tasks:
|
|
- import_role:
|
|
name: standard-test-source
|
|
vars:
|
|
fetch_only: True
|
|
roles:
|
|
- role: standard-test-basic
|
|
tests:
|
|
- pythonabi:
|
|
dir: .
|
|
run: ./pythonabi.sh
|
|
- pythonname:
|
|
dir: .
|
|
run: ./pythonname.sh
|
|
- pythondist:
|
|
dir: .
|
|
run: ./pythondist.sh
|
|
- prepare-test-data:
|
|
dir: .
|
|
run: tar -xvf test-sources-*.tar.gz -C ./tests/data/scripts_pythondistdeps/
|
|
- pytest:
|
|
dir: ./tests
|
|
# Use update-test-sources.sh to update the test data
|
|
run: python3 -m pytest --capture=no -vvv
|
|
required_packages:
|
|
- rpm-build
|
|
- rpmdevtools
|
|
- python3-devel
|
|
- python3-pip
|
|
- python3-pytest
|
|
- python3-pyyaml
|
|
- python3-setuptools
|
|
- python3-wheel
|