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

pip requirements aktualisiseren #25

Open
mhh008 opened this issue Sep 13, 2022 · 2 comments
Open

pip requirements aktualisiseren #25

mhh008 opened this issue Sep 13, 2022 · 2 comments

Comments

@mhh008
Copy link
Owner

mhh008 commented Sep 13, 2022

No description provided.

@mhh008
Copy link
Owner Author

mhh008 commented Sep 13, 2022

Check if following problem is already done by github dependapot or how to implement such a check as an action workflow

Problem:
Wie kann bei bestehender requirements.txt geprüft werden, ob neue Versionen von Dependency existieren und ob diese kompatibel mit dem vorhandenen Code sind.

https://stackoverflow.com/questions/22944861/check-if-requirements-are-up-to-date

Pip has this functionality built-in. Assuming that you're inside your virtualenv type:

$ pip list --outdated
psycopg2 (Current: 2.5.1 Latest: 2.5.2)
requests (Current: 2.2.0 Latest: 2.2.1)

$ pip install -U psycopg2 requests

After that new versions of psycopg2 and requests will be downloaded and installed. Then:

$ pip freeze > requirements.txt

And you are done. This is not one command but the advantage is that you don't need any external dependencies.

@mhh008
Copy link
Owner Author

mhh008 commented Oct 4, 2022

Wie kann automatisch geprüft werden ob das Programm kompatibel mit den neuen Versionen der Abhängigkeiten funktionieren.

Wie können tests implementiert werden.

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

No branches or pull requests

1 participant