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

Add option for templates (for automatic package installation) #5

Open
fohrloop opened this issue Jan 24, 2021 · 0 comments
Open

Add option for templates (for automatic package installation) #5

fohrloop opened this issue Jan 24, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@fohrloop
Copy link
Owner

This is related to #4.

Proposal

Sometimes it would be handy to install some packages automatically, but putting all useful packages to autoinstall_packages does not make sense. Something like "virtual environment templates" could be useful. In short, add to venvlinkrc something like:

[templates]
datascience = [numpy, pandas, matplotlib]
datascience2 = [numpy, pandas, plotly]
django = [django~=3.1.5, django-debug-toolbar, djangorestframework]

There could be optional PEP440 compatible version identifiers (like in the django case in the example above) to help keeping versions compatible.

Usage could looks something like this. Creating new virtual environment:

python -m venvlink --template datascience

or

python -m venvlink -t datascience
@fohrloop fohrloop added the enhancement New feature or request label Jan 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant