Skip to content

This is a test of asdf version manager's workflow with direnv.

Notifications You must be signed in to change notification settings

pierianeagle/asdf-direnv-test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

adsf-direnv-test

This is a test of asdf version manager's workflow with direnv.

When starting a new project:

# create repo
git init

# create .gitignore
echo .direnv/ > .gitignore

# create .tool_versions
asdf local python latest

# create venv
echo "layout python" > .envrc
direnv allow

# install packages
pip install pendulum

# export requirements
pip freeze > requirements.txt

When working on an existing project:

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

# install python
asdf install

# create venv
echo "layout python" > .envrc
direnv allow

# install packages
pip install -r requirements.txt

# make binaries accessible from PATH
asdf reshim python

Environment Variables

Environment variables are set in .envrc, there is no need for .env.

layout python

export API_KEY=123

About

This is a test of asdf version manager's workflow with direnv.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages