You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 21, 2022. It is now read-only.
Repository navigation
This repository was archived by the owner on Oct 21, 2022. It is now read-only.
Pre-store the dependency versions to check the version conflicts #6
To get the deps and versions, we can use from pip._internal import get_installed_distributions.
And each time we receive a request to check the dependency conflicts, we just query the versions for each of the packages in the request to see if there are any conflict.
Data model for storing the deps and versions as below,
PKG_NAME
PKG_VERSION
DEP_NAME
DEP_VERSION
google-cloud-logging
1.6.0
grpcio
1.12.1
google-cloud-logging
1.6.0
google-cloud-core
0.28.1
...
...
...
We'll still need to run the pip checker to actually do pip install the dependencies periodically(daily) to update the versions we stored. All the released versions of the list of packages will need to be calculated and pre stored as an setup.
Activity