-
Notifications
You must be signed in to change notification settings - Fork 25
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
[RFE] Micropipenv get-python-version #189
Comments
One idea would be a
then Creating the list (and possibly ordering it by desrability) would be left to the caller, as would choosing a default/error if the result is empty. |
+1 on my side, the extension sounds reasonable.
It might be a good idea to end with an error here - following "Explicit is better than implicit." Then, let the user decide which version to use. Alternatively, create a flag like
The lowest matching might make sense here. Maybe create a flag that would assist in choosing the appropriate version in this case as well. |
/kind feature |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with /lifecycle stale |
/remove-lifecycle stale |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with /lifecycle stale |
/lifecycle frozen |
Given these two facts:
it might make sense to implement a new command
get-python-version
. The new command would basically just print out the information about the Python version the configuration is prepared for.Let's say I'd like to use micropipenv instead of pipenv in an automated script for deploying applications. I'm able to create my own virtual environment for the application but I need to know which Python version to use. And this is the spot micropipenv can help me. All the logic to find the proper file and parse all the JSONs or TOMLs is already there so this new feature would enable us to do something like:
@encukou I hope that I described your idea correctly.
This is slightly related to #187
Possible problems to solve:
requirements.txt
files do not contain Python version, what to return in this case?==3.6.7
or>=3.6.7
or worse^3.7
, what version return in case of such ranges?python_version
is valid and pipenv works fine in that case without any issues of warnings.The text was updated successfully, but these errors were encountered: