Skip to content

Latest commit

 

History

History
20 lines (15 loc) · 1.08 KB

README.md

File metadata and controls

20 lines (15 loc) · 1.08 KB

devenv-python

A simple template to get started with a new Python project using devenv.

Requirements

Usage

Setting up

Clone and cd into the repo, write direnv allow, hit enter, and watch the magic happen! Devenv will automatically take care of setting up everything as Nix derivations, create a Python virtual environment, activate it, and install the packages specified in the pyproject.toml file.

This project will be completely isolated and not make any global changes.

Add or update Python packages

To add a new Python package, simply write poetry add package, and poetry will add it to the pyproject.toml file, resolve dependencies in poetry.lock, and install the package in the virtual environment. Similarly, writing poetry remove package will do the reverse.

If you want to update a package version, you can write poetry add package@latest.