Skip to content

pyenv-autoenv is a pyenv plugin that will automatically create and upgrade your project's virtualenv.

License

Notifications You must be signed in to change notification settings

strokirk/pyenv-autoenv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pyenv-autoenv

pyenv-autoenv is a pyenv plugin that will automatically create and upgrade your project's virtualenv.

Installation

Install using git:

$ git clone https://github.com/strokirk/pyenv-autoenv.git $(pyenv root)/plugins/pyenv-autoenv

Upgrade by removing and reinstalling, or with git:

$ git --git-dir $(pyenv root)/plugins/pyenv-autoenv/.git pull

Usage

To create the virtualenv of a project, simply run pyenv autoenv and let the magic happen.

It will create a virtualenv named after the current directory using the latest available Python version.

To specify a specific Python version, use the --python flag.

$ pyenv autoenv --python 3.X.Y

To customize the name of the created virtualenv, use the --name flag.

$ pyenv autoenv --name venv-name

To recreate the virtualenv even if one already exists, use the --clear flag.

$ pyenv autoenv --clear

If you only want to recreate the virtualenv when you're using an older version than the recommended one for the proejct, use the --clear-if-lower flag.

$ pyenv autoenv --clear-if-lower

About

pyenv-autoenv is a pyenv plugin that will automatically create and upgrade your project's virtualenv.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published