Skip to content

Latest commit

 

History

History
executable file
·
44 lines (35 loc) · 1.22 KB

README-development.md

File metadata and controls

executable file
·
44 lines (35 loc) · 1.22 KB

Setup

First create a virtual environment and then do an editable install of diii.

cd <directory where repository is checked out>
# Create virtual environment
python3 -m venv .venv

# Active the virtual environment
# Linux / Mac OS
source .venv/bin/activate
# Windows
source .venv/Scripts/activate

# Do an editable install
pip install -e .
# Activate the virtual environment again to update virtual environment $PATH
source .venv/bin/activate

# Now execute diii, which runs directly from the code from this directory
# Linux / Mac OS / Windows(PowerShell)
diii
# Windows (GIT Bash)
winpty diii

Closing the terminal will also exit the virtual environment. Running deactivate will exit the virtual environment as well.

If at a later point you want to start working again it's enough to activate the virtual environment again using

cd <directory of repository)
source .venv/bin/activate
diii

Package Update

https://packaging.python.org/en/latest/tutorials/packaging-projects/

  • pypi.org account, get token for token entry
python setup.py sdist bdist_wheel
python -m twine upload dist/*