-
Notifications
You must be signed in to change notification settings - Fork 41
Open
Labels
feature-requestRequest for new features or functionalityRequest for new features or functionalityneeds community feedback
Description
Context
Developer tracks dependencies through a requirements.txt file in their python project (the source of truth).
Developer creates a venv based on said requirements.txt through the Python Environments extension.
i.e.:
Create Environment -> Custom -> Select Python version -> Name env -> Install project dependencies -> Select requirements.txt
Issue
Once the venv is created, its link to requirements.txt is lost.
When dependencies need to be changed, the developer has to manually update both requirements.txt and the previously created venv
Proposal
Any of the below (first is best for user, but most complex to implement):
- When creating
venvsbased onrequirements.txt, link them together. Any change torequirements.txtautomatically updates thevenvand vice-versa. Settings and user prompts can be added where necessary. - When creating
venvsbased onrequirements.txt, link them together. Provide a user trigger to update thevenvbased onrequirements.txt, e.g. an Update Environment From Project Dependencies option pervenvin the "Environment Managers" tab - Add an Update/Recreate option for an already created
venv. Accessing it, the developer then goes through the normalvenvcreation process, but with preselected options (e.g. env name, python version), reselectingrequirements.txt.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
feature-requestRequest for new features or functionalityRequest for new features or functionalityneeds community feedback