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

Drop setup.{cfg,py} support, only support PEP-517 builds #153

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

martinpitt
Copy link
Owner

Draft for now, I want to keep this open to track the packaging/distro bugs which prevent this.

With a simple packit srpm and rpmbuild -rb python-dbusmock-0.28*.src.rpm in current Fedora 36 I get a broken rpm which only contains

 /usr/lib/python3.10/site-packages/UNKNOWN-0.0.post1+gac9a8ba.dist-info

and no actual modules. It seems it does not read the metadata from pyproject.toml properly.

@martinpitt
Copy link
Owner Author

At least in a local rpm mock build, the version is still broken. The included dbusmock/_version.py seems correct, though.

@martinpitt
Copy link
Owner Author

Better, but still blocked on the too old version on centos 9 stream, which misses a line break. I'll try to remove the docstring and pacify it in pylint instead.

@martinpitt martinpitt marked this pull request as ready for review October 3, 2024 06:35
@martinpitt martinpitt marked this pull request as draft October 3, 2024 07:18
@martinpitt
Copy link
Owner Author

Dang, the c9s build is still an empty rpm; reproducible locally with

packit srpm && mock -r centos-stream-9-x86_64 --no-bootstrap-image --isolation=simple *.src.rpm
less /var/lib/mock/centos-stream-9-x86_64/result/python3-dbusmock*.noarch.rpm

@martinpitt martinpitt mentioned this pull request Oct 3, 2024
@martinpitt
Copy link
Owner Author

I broke out the preparation commits into #219, they are fine.

Only support pyproject.toml and PEP-517 build tools (PyPA build).

Move spec to PyPA build.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant