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

Move ansible setuptools configuration into setup.cfg #530

Merged
merged 10 commits into from
Jul 7, 2023

Conversation

gotmax23
Copy link
Contributor

@gotmax23 gotmax23 commented May 9, 2023

Fixes: #504

@gotmax23
Copy link
Contributor Author

gotmax23 commented May 9, 2023

The contents of the wheels for 7.5.0 and 8.0.0a3 are the same before and after this change.

@felixfontein
Copy link
Collaborator

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+.

@gotmax23
Copy link
Contributor Author

Fair enough. I'll add back that code for those versions.

@gotmax23 gotmax23 force-pushed the metadata branch 2 times, most recently from 6538c16 to 76f8983 Compare May 22, 2023 01:11
@gotmax23
Copy link
Contributor Author

TODO: add a changelog entry

@gotmax23
Copy link
Contributor Author

I'm not sure what's causing:

ERROR: found collection dependency errors!
ERROR: dellemc.enterprise_sonic version_conflict: ansible.netcommon-5.1.1 but needs >=2.0.0,<5.0.0

-- https://github.com/ansible-community/antsibull/actions/runs/5040720589/jobs/9039753648?pr=530#step:12:14

The build-dumb-pypi job seems to be building for 7.99.0. Ansible 7 has

ansible.netcommon: >=4.1.0,<5.0.0

so I'm not sure how ansible.netcommon-5.1.1 is getting in there...

@felixfontein
Copy link
Collaborator

That CI workflow is generating a new .build file for every run ("Generate the list of compatible versions" step).

@gotmax23
Copy link
Contributor Author

I force pushed to update the changelog entry. This should be ready for review now.

@gotmax23
Copy link
Contributor Author

That CI workflow is generating a new .build file for every run ("Generate the list of compatible versions" step).

Ah, I didn't read that workflow closely enough. Thanks! I guess we'll need to fix that separately.

changelogs/fragments/530-setup-cfg.yaml Outdated Show resolved Hide resolved
changelogs/fragments/530-setup-cfg.yaml Outdated Show resolved Hide resolved
changelogs/fragments/530-setup-cfg.yaml Outdated Show resolved Hide resolved
noxfile.py Outdated Show resolved Hide resolved
noxfile.py Show resolved Hide resolved
noxfile.py 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.
@gotmax23 gotmax23 force-pushed the metadata branch 2 times, most recently from 8270459 to a86afcc Compare June 29, 2023 23:30
Copy link
Collaborator

@felixfontein felixfontein left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Besides this, LGTM!

.github/workflows/nox.yml Outdated Show resolved Hide resolved
gotmax23 and others added 7 commits July 7, 2023 03:27
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>
@gotmax23
Copy link
Contributor Author

gotmax23 commented Jul 7, 2023

Squashed fixup commit

@gotmax23 gotmax23 merged commit 3427a98 into ansible-community:main Jul 7, 2023
@gotmax23
Copy link
Contributor Author

gotmax23 commented Jul 7, 2023

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.

@felixfontein
Copy link
Collaborator

Thanks for working on this! Sounds good to me.

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.

Add subcommand to generate build files
2 participants