Go to file
Tomas Orsava 438d8d3b70 scripts/pythondistdeps: Backport switch to importlib.metadata from upstream
Upstream change to importlib.metadata: https://github.com/rpm-software-management/rpm/pull/1317

Due to extras packages being hadled slightly differently by importlib,
one test case for this was added.  And due to changes in handling
requires.txt files, comments were removed from the pyreq2rpm.tests
testing package.

Also because of the switch, we removed the dependency on setuptools and
added a dependency on packaging.

Note: Some packages with egg-info files might provide a different name
due to this change if there is a conflict between the filename and the
name in the metadata. Previously, the filename was sometimes used to
parse the name, now it is always the content of that file, which is what
packaging does, and thus also pip and other Python tooling. Currently,
this is known to affect only 1 package in Fedora (ntpsec).

The resulting script is different from upstream because of not yet upstreamed changes in Fedora:
- scripts/pythondistdeps: Rework error messages
- scripts/pythondistdeps: Add parameter --package-name
- scripts/pythondistdeps: Implement provides/requires for extras packages
- pythondistdeps.py: When parsing extras name, take the rightmost +

These changes are proposed in this upstream PR: https://github.com/rpm-software-management/rpm/pull/1546
2021-02-18 16:08:27 +01:00
tests scripts/pythondistdeps: Backport switch to importlib.metadata from upstream 2021-02-18 16:08:27 +01:00
.gitignore Bump version, enable new features, add test suite to Fedora CI 2020-05-04 13:45:57 +02:00
COPYING Fork upstream generators 2018-02-11 00:50:54 +01:00
python-rpm-generators.spec scripts/pythondistdeps: Backport switch to importlib.metadata from upstream 2021-02-18 16:08:27 +01:00
python.attr Fix python(abi) requires generator, it picked files from almost good directories 2020-06-18 13:32:24 +02:00
pythonbundles.py Add executable bit to pythonbundles.py 2020-10-19 12:56:51 +02:00
pythondist.attr Remove unused 2.7 from --majorver-provides-versions 2021-02-08 10:53:40 +01:00
pythondistdeps.py scripts/pythondistdeps: Backport switch to importlib.metadata from upstream 2021-02-18 16:08:27 +01:00
pythonname.attr Deduplicate automatically provided names trough Python RPM Lua macros 2020-05-05 14:02:52 +02:00
sources Bump version, enable new features, add test suite to Fedora CI 2020-05-04 13:45:57 +02:00
update-test-sources.sh Bump version, enable new features, add test suite to Fedora CI 2020-05-04 13:45:57 +02:00