Skip to content

This is a test of asdf version manager's workflow with python 3's virtual environments.

Notifications You must be signed in to change notification settings

pierianeagle/asdf-venv-test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

adsf-venv-test

This is a test of asdf version manager's workflow with python 3's virtual environments.

When starting a new project:

# create repo
git init

# create .gitignore
echo .venv/ > .gitignore

# create .tool_versions
asdf local python latest

# create venv
python -m venv .venv

# activate venv
source .venv/bin/activate

# install packages
pip install pendulum

# export requirements
pip freeze > requirements.txt

# deactivate venv
deactivate

When working on an existing project:

# clone repo
git clone https://...

# install python
asdf install

# create venv
python -m venv .env

# activate venv
source .env/bin/activate

# install packages
pip install -r requirements.txt

# make binaries accessible from PATH
asdf reshim python

# deactivate venv
deactivate

Notes

Notes

# upgrade everything
pip list --outdated --format=freeze | grep -v '^\-e' | cut -d = -f 1  | xargs -n1 pip install -U

# downgrade a package
pip install -I pendulum==2.1.0

About

This is a test of asdf version manager's workflow with python 3's virtual environments.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages