jamesvrt / poetry-conda

Template for using Poetry and Conda together

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Setup

  1. export PROJECT_NAME=<my-project-name>

  2. Change the Python version in environment.yml to suit your needs.

  3. Replace conda commands below with mamba if you have it installed for increased speed.

    mkdir $PROJECT_NAME
    touch $PROJECT_NAME/__init__.py
    conda env create -f environment.yml -n $PROJECT_NAME
    conda activate $PROJECT_NAME
    poetry init
    
  4. Use correct Python version during poetry init.

  5. Replace this README.md with your own.

  6. Install pip packages with poetry add <package>

  7. Install conda-only packages with conda install <package> & update the environment.yml.

About

Template for using Poetry and Conda together