Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Include dist-info for python3-dnf #1997

Merged

Conversation

evan-goode
Copy link
Member

This is the DNF 4 cousin to this patch [0] for DNF 5.

Per [1], Python packages should include some minimal distribution metadata, e.g. to make the package appear in pip list.

Perhaps the "proper way" to generate this dist-info metadata would be to write a pyproject.toml and use a conventional Python build system like Poetry to build python3-dnf rather than doing it with CMake, but this is a way to do it with minimal changes to the build process.

Closes RhBug:2239323 [2]

[0] rpm-software-management/dnf5#447
[1] https://packaging.python.org/en/latest/specifications/core-metadata/#core-metadata,
[2] https://bugzilla.redhat.com/show_bug.cgi?id=2239323

= changelog =
msg: Add metadata for dnf Python package
type: bugfix
resolves: https://bugzilla.redhat.com/show_bug.cgi?id=2239323

@evan-goode evan-goode self-assigned this Oct 3, 2023
@evan-goode evan-goode requested a review from m-blaha October 3, 2023 21:13
@jan-kolarik
Copy link
Member

Looks OK to me, I'd just modify the commit message which is saying "Include dist-info for python3-libdnf5".

@jan-kolarik
Copy link
Member

And what about other packages like python3-libdnf, python3-dnf-plugin-*? Not sure there are any consumers of these besides us.

This is the DNF 4 cousin to this patch [0] for DNF 5.

Per [1], Python packages should include some minimal distribution
metadata, e.g. to make the package appear in `pip list`.

Perhaps the "proper way" to generate this dist-info metadata would be to
write a pyproject.toml and use a conventional Python build system like
Poetry to build `python3-dnf` rather than doing it with CMake, but this
is a way to do it with minimal changes to the build process.

Closes RhBug:2239323 [2]

[0] rpm-software-management/dnf5#447
[1] https://packaging.python.org/en/latest/specifications/core-metadata/#core-metadata,
[2] https://bugzilla.redhat.com/show_bug.cgi?id=2239323

= changelog =
msg: Add metadata for `dnf` Python package
type: bugfix
resolves: https://bugzilla.redhat.com/show_bug.cgi?id=2239323
@evan-goode evan-goode force-pushed the evan-goode/dist-info branch from 7184349 to fcd93f4 Compare October 6, 2023 15:14
@evan-goode evan-goode changed the title Include dist-info for python3-libdnf5 Include dist-info for python3-dnf Oct 6, 2023
@evan-goode
Copy link
Member Author

Looks OK to me, I'd just modify the commit message which is saying "Include dist-info for python3-libdnf5".

Whoops thanks!

And what about other packages like python3-libdnf, python3-dnf-plugin-*? Not sure there are any consumers of these besides us.

Sure, I'll PR libdnf. I don't know whether it'd be worth adding metadata to each python3-dnf-plugin.

@jan-kolarik jan-kolarik merged commit 43e9249 into rpm-software-management:master Oct 9, 2023
3 checks passed
evan-goode pushed a commit to evan-goode/libdnf that referenced this pull request Oct 9, 2023
This is the libdnf version of this patch [0] for DNF 4.

Per [1], Python packages should include some minimal distribution
metadata, e.g. to make the package appear in `pip list`.

[0] rpm-software-management/dnf#1997
[1] https://packaging.python.org/en/latest/specifications/core-metadata/#core-metadata

= changelog =
msg: Add metadata for `libdnf` Python package
type: bugfix
evan-goode added a commit to evan-goode/libdnf that referenced this pull request Oct 10, 2023
This is the libdnf version of this patch [0] for DNF 4.

Per [1], Python packages should include some minimal distribution
metadata, e.g. to make the package appear in `pip list`.

[0] rpm-software-management/dnf#1997
[1] https://packaging.python.org/en/latest/specifications/core-metadata/#core-metadata

= changelog =
msg: Add metadata for `libdnf` Python package
type: bugfix
jan-kolarik pushed a commit to rpm-software-management/libdnf that referenced this pull request Oct 10, 2023
This is the libdnf version of this patch [0] for DNF 4.

Per [1], Python packages should include some minimal distribution
metadata, e.g. to make the package appear in `pip list`.

[0] rpm-software-management/dnf#1997
[1] https://packaging.python.org/en/latest/specifications/core-metadata/#core-metadata

= changelog =
msg: Add metadata for `libdnf` Python package
type: bugfix
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants