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

Safety not working in poetry enviroment #116

Open
ulig123 opened this issue Jul 18, 2024 · 4 comments
Open

Safety not working in poetry enviroment #116

ulig123 opened this issue Jul 18, 2024 · 4 comments
Labels
bug Something isn't working

Comments

@ulig123
Copy link

ulig123 commented Jul 18, 2024

🐛 Bug Report

The issue occurs when the user wants to install safety. Safety depends on the safety-schema package version 0.0.2. This package depends on ruamel-yaml 0.18,6 which depends on ruamel-yaml-clib >=0.2.7. Poetry however cannot select this package even though it is installed in the site-packages.

🔬 How To Reproduce

Steps to reproduce the behavior:

  1. Add safety version 3.2.4 to pyproject.toml as dev dependency
  2. Reproduce poetry.lock using poetry update -vvv to log information about the dependency resolve process
  3. Dependency Resolve Process ends in infinite loop, since ruamel-yaml-clib cant be selected.

Code sample

image

Environment

  • OS: Linux
  • Python version, get it with: 3.10
python --version

Screenshots

image

@ulig123 ulig123 added the bug Something isn't working label Jul 18, 2024
Copy link

Hello @ulig123, thanks for your first issue and interest in our work 😊!

If this is a bug report, please provide screenshots, relevant logs and minimum viable code to reproduce your issue, which will help us debug the problem.

@Undertone0809
Copy link
Owner

Thanks for your feedback. But it doesn't seem to have anything to do with p3g? Providing more information if you think I was wrong.

@ZM-J
Copy link

ZM-J commented Nov 22, 2024

Moreover, I find designating safety=2.x will cause poetry 1.8.4 fail to work. It's imperative to move to safety 3.x.

@Undertone0809
Copy link
Owner

Undertone0809 commented Nov 22, 2024

Moreover, I find designating safety=2.x will cause poetry 1.8.4 fail to work. It's imperative to move to safety 3.x.

Thank you for your feedback, the latest release has been updated with the safety version.

https://github.com/Undertone0809/P3G/releases/tag/v1.3.9

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants