-
Notifications
You must be signed in to change notification settings - Fork 31
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
Move ansible setuptools configuration into setup.cfg #530
Conversation
The contents of the wheels for 7.5.0 and 8.0.0a3 are the same before and after this change. |
I think this is too late for the Ansible 8 release cycle, and definitely too late for the Ansible 7 release cycle, and should thus only apply to Ansible 9+. |
Fair enough. I'll add back that code for those versions. |
6538c16
to
76f8983
Compare
TODO: add a changelog entry |
I'm not sure what's causing:
The build-dumb-pypi job seems to be building for 7.99.0. Ansible 7 has
so I'm not sure how ansible.netcommon-5.1.1 is getting in there... |
That CI workflow is generating a new |
I force pushed to update the changelog entry. This should be ready for review now. |
Ah, I didn't read that workflow closely enough. Thanks! I guess we'll need to fix that separately. |
tests/test_data/package-files/7.5.0/dist-files/ansible-7.5.0-py3-none-any.whl
Outdated
Show resolved
Hide resolved
I had to use `git add -f tests/test_data/package-files/` as our .gitignore excluded some of the test_Data files.
8270459
to
a86afcc
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Besides this, LGTM!
The next commit will show any differences between the new setup.py generation code and the old code.
We still want to build legacy setup.py for ansible 6, 7, and 8. Instead of duplicating the old code in build_ansible_commands.py, add a LegacyBuildMetaMaker class with the same interface as BuildMetaMaker. Note that there's a few differences in the 8.0.0a1 setup.py. I have no idea why there's extra entries that don't seem to exist in the original source distribution, but the final wheel's file list is the same. This change also moves the package file generation code into a function that can be shared by the rebuild-single and generate-package-files commands. Typing annotations are changed to StrPath for files where possible.
Temporarily test the setup.cfg generator with 8.1.0.
Co-authored-by: Felix Fontein <felix@fontein.de>
Squashed fixup commit |
Thanks for reviewing this @felixfontein. I plan to let this sit for a couple days and then cut a new release. We have a good amount of unreleased changes. |
Thanks for working on this! Sounds good to me. |
Fixes: #504