python-rpm-generators/tests
Miro Hrončok 48c0de39d9 Add a script to generate Python bundled provides
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}'
2020-07-07 16:01:37 +02:00
..
data Add a script to generate Python bundled provides 2020-07-07 16:01:37 +02:00
pythonabi.sh Fix reversed grep exit codes in integration tests 2020-05-04 13:45:57 +02:00
pythonabi.spec Use dynamic %_prefix value when matching files for python(abi) provides 2020-04-07 16:25:11 +02:00
pythondist.sh Use PEP 503 names for requires 2020-05-21 17:43:19 +02:00
pythondist.spec Adapt tests for the pythonXY -> pythonX.Y renaming 2020-05-07 17:59:18 +02:00
pythonname.sh Adapt tests for the pythonXY -> pythonX.Y renaming 2020-05-07 17:59:18 +02:00
pythonname.spec Adapt tests for the pythonXY -> pythonX.Y renaming 2020-05-07 17:59:18 +02:00
test_scripts_pythonbundles.py Add a script to generate Python bundled provides 2020-07-07 16:01:37 +02:00
test_scripts_pythondistdeps.py Bump version, enable new features, add test suite to Fedora CI 2020-05-04 13:45:57 +02:00
tests.yml Add a script to generate Python bundled provides 2020-07-07 16:01:37 +02:00