Dependency generators for Python RPMs
Go to file
Miro Hrončok e78c420523 Fix python(abi) requires generator, it picked files from almost good directories
The %__python_magic filter suddenly got actually working with file 5.39:

Before:

    file.cpython-38.opt-1.pyc: data

After:

    file.cpython-38.opt-1.pyc: python 3.8 byte-compiled

Hence, the filter started to pick all Python files regardless of their location.
Later, in the actual generator, paths like this were considered:

    /opt/usr/lib/python3.X/...

And generated requirements on python(abi).

We don't actually need to filter the files by file magic,
so we drop it to get the previously accidentally working behavior.

We could choose if the path and magic filters are applied as OR or AND.
However, we don't want either.

We actually want to mach any files in Python directories regardless of their magic.
We *could* filter by file type (and executable bit) for provides,
but that would require us to split the attr files into two.
2020-06-18 13:32:24 +02:00
tests Use PEP 503 names for requires 2020-05-21 17:43:19 +02: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 Fix python(abi) requires generator, it picked files from almost good directories 2020-06-18 13:32:24 +02:00
python.attr Fix python(abi) requires generator, it picked files from almost good directories 2020-06-18 13:32:24 +02:00
pythondist.attr Use PEP 503 names for requires 2020-05-21 17:43:19 +02:00
pythondistdeps.py scripts/pythondistdeps: Modify handling of dev versions 2020-04-30 22:24:44 +02: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