-
Notifications
You must be signed in to change notification settings - Fork 14.5k
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
Use newer setuptools v67.2.0 #29465
Use newer setuptools v67.2.0 #29465
Conversation
Congratulations on your first Pull Request and welcome to the Apache Airflow community! If you have any issues or are unsure about any anything please check our Contribution Guide (https://github.com/apache/airflow/blob/main/CONTRIBUTING.rst)
|
Running tests. Let's see. |
@potiuk Seems like all tests pass except one for test_internal_api_command. |
Awesome work, congrats on your first merged pull request! |
Co-authored-by: eladkal <[email protected]> (cherry picked from commit 41dff98)
Co-authored-by: eladkal <[email protected]> (cherry picked from commit 41dff98)
I am facing issues with this for local virtualenv setup for editable installs. Not sure what we can do here, but for now pinning it locally to 63.4.3 for getting my local virtualenv up. There's also a comment we have leftover just above the change in this PR which mentions about the issue regarding editable installs. Since, the PR description mentions fix for a potential vulnerability, I guess we have to live it with like this until setuptools fixes the issue? |
We have an issue about it #30764 already and yeah. I think it needs a bit closer look. I think it might be quite tricky to solve - our setup.py is pretty, well complex, so for now I kept on ignoring it and I think we will need to solve it possibly by generally modernizing our package build tool configuration - part of it has been done in draft #31378 by @uranusjr . But what makes it difficult is that we want to keep the possibilities of:
So far this has been achieved by It might also be that we will only be able to do it "well" when we switch to a "proper" structure for provider's code, following #28291 (scripts) and #28292 (POC migration) - but then solving the above a little contradicting requirements might be tricky. I've been following what's going on in Python PyPa and maybe we should switch to flit or hatch - both are part of And my preference would be rather than invent something on our own, to contribute some work to standard tooling to make it capable of doing what we want to do. I think this is a great opportunity if our goals and ideas are aligned, because we could provide a nice testing ground for such case for @uranusjr - I think you are the best person here to have a say and recommendations what we should do and likely you even have some good relation with We could setup a small team around it and work on both - contributing things to hatch (if the direction would be aligned) and applying it to Airflow at the same time. Maybe we should brainstorm a little here or in #30764 on what we should do and how we should approach it? |
I have created a quick PR #32090 to update the comment a bit. |
Issue #29428 describes a potential CVE in setuptools v63.4.3 that is currently used, and says that any version before 65.5.1 could have the vulnerability.
Switching to the newest release of setuptools, v67.2.0 for this. A local test with breeze didn't indicate any issues after this change.
Resolves #29428