-
Notifications
You must be signed in to change notification settings - Fork 151
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
Pinning to packaging < 22.0 #447
Comments
I am sure I am not alone, but today github's dependabot updated one of my projects, dependency to packaging = ^22.0, which of course will not work in conjunction with safety 2.3.5. |
Hi @dmaljovec and @qs5779, Thanks for your interest in this issue.
Packaging There is already work in progress related to this issue. Indeed I'll request your help checking it when it gets released. Thanks. |
Awesome! Thanks for the quick reply and look forward to the update. |
@yeisonvargasf Please let us know through this issue once that issue is solved. Thank you. We have temporarily removed |
@dashmug, the next version will solve this issue. We are near to releasing this new version. |
Update here: we released a beta version (Feb 26) with significant changes and additional improvements. This version ( https://pypi.org/project/safety/2.4.0b1/) should fix this issue. Could you try? Let me know if this version works for you. |
Hi, |
Hi again, 5 months after my previous comment, packaging v23.1 is out, and the pre-release workaround is not working anymore with it:
|
Hi @nim65s, I'm sorry you're experiencing this issue; we revamped Safety CLI in the coming version 3.0 (this month); this 3.0 version will fix this issue with packaging and add more features and services. I recommend you pin packaging if possible. If multiple users are having the same issue with |
Like some previous users, we also have version conflicts. One of our dependencies uses packaging |
Hi do you have an update on when this will be fixed? We're running into a packaging mismatch with several libraries because of this |
@yeisonvargasf What is the recommended solution at the moment? We are a paying custumer of PyUp.io and we want to switch from It was reported more than a year ago, Why don't you release |
Hi @washeck. Please accept my apology for this sequence of events and the inconvenience caused. We are releasing version 3.0.0 within the next 24 hours, which supports the same safety check command from 2.4.0b2, so you will be able to upgrade to this version this week. Safety 3.0.0 includes native support for reporting on Poetry files. Full details on Safety 3.0.0, what changes it includes, and how to upgrade will be detailed here in GitHub and in our Documentation hub. In addition to the release of version 3 this week, we will also be removing the beta flag on version 2.4.0, to support those who want to remain on version 2.x of safety. We did not communicate clearly here, and I acknowledge that we must do better, both for Safety customers and the open source community. To ensure this won't happen again, we will also be moving to a public roadmap and maintenance schedule for Safety CLI 2.x and 3.x going forward, and adopting a trunk based development approach. In the meantime, I appreciate the feedback here and invite you to reach out at [email protected] with any questions you have about safety cli, or any account-related questions. Justin - CEO, Safety Cybersecurity |
Hi @dmaljovec, @qs5779, @nim65s, @Nachtalb, @grutts, @washeck, We hope this message finds you well. We wanted to follow up on the issue related to the pinning of packaging<22.0. We have made the necessary adjustments in Safety version 2.3.4, where we removed the use of We believe this update should address the concerns raised and ensure smooth compatibility with dependencies. Could you please confirm if this resolves the issue on your end? Your feedback is invaluable, and we'd like to close this issue once we have confirmation from your side. Thank you for your patience and support. Best Regards, |
I'm not one of the people mentioned, but this appears to have solved the problem for me |
Description
We are attempting to create virtual environments for our developers that include all production dependencies for their package plus all of our static analyzers and security checks, so they can reproduce our CI system locally. It has recently come up that the latest version of
safety
pins topackaging<22.0
whichis incompatiblerequires some extra work to operate with some of our existing package dependencies.Can you shed some more light on the comment in this commit: aa1b153? What exactly is meant by "preventing issues?" Is this something that you could use help on or is on your roadmap to support?
What I Did
First look at my input file (reduced to show minimal reproducible error):
Next, compile that file to a lockfile:
Now to show the dev requirements:
And finally, attempt to lock that file:
I realize there are some pretty simple workarounds in this case, and we are investigating tools like pip-compile-multi to solve this problem more robustly with our internal tooling, but I just wanted to flag in case others do not have the luxury of dodging a specific version of
packaging
. It could be someone is reliant on a new feature. I also acknowledge that this new version ofpackaging
is hot off the press, and will take time to onboard. Let me know if I can help, I really like this tool!The text was updated successfully, but these errors were encountered: