-
Notifications
You must be signed in to change notification settings - Fork 361
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
Upgrade setuptools-scm #1332
Upgrade setuptools-scm #1332
Conversation
I think we just capped the build dep versions for safety after the PyYAML Cython fiasco and knowing setuptools is going to start breaking things more aggressively too. If we're going to do a new release just to bump Bigger picture question though: why isn't AWX vendoring a wheel instead of a source tarball? Then you don't have to care- either ship the wheel we provide on PyPI or roll your own during the AWX release process (which would run in an isolated build like it's supposed to and "just work"). |
IIRC this is due to needing to vendor the source inside of our source RPM. But honestly ... the answer to this question shouldn't matter right? You also hit this error if you're simply trying to install from git with newer versions of setuptools / setuptools-scm. IMHO it's bad practice to cap these kinds of deps unless they are causing some issue. |
@jessicamack could you give more information about why this is needed? What upgrade error led you down this path? |
Link the code conflict:
Since these are both public projects that makes this fairly clear. Either runner changes or ansible_base changes to be compatible. @john-westcott-iv any preference? |
I have a preference ... if there is no real reason why runner pins this, why make other projects cargo-cult this tech debt? |
I agree with that preference, I just want to frame what the conflict is and establish why this is a priority now. |
Generally speaking, you would be building in an isolated environment. I'm not sure in what manner of building/installing would cause this issue. Answering the question of "What upgrade error led you down this path?" would be good to know. Since any source should be turned into a wheel intermediately, I'm not sure where this happens. I tested a Regardless of this being 2 packages "we" own, this could happen for any other number of packages. It seems like there are some assumptions that are not true, that are at a level above this problem, that we might want to address. |
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.
Tested this change and the only difference in metadata (between these versions and the current versions from devel
) that I can see is that the source distro's PKG-INFO
file contains these additional lines:
Requires-Dist: pexpect>=4.5
Requires-Dist: packaging
Requires-Dist: python-daemon
Requires-Dist: pyyaml
Requires-Dist: importlib-metadata<6.3,>=4.6; python_version < "3.10"
Those lines appear in both versions of the .whl
package's METADATA
file.
Upgrading setuptools-scm to work with the upgrading of the package in AWX