- First, create a virtual environment using
python3 -m venv venv
- Activate it with one of:
source venv/bin/activate
venv/Scripts/Activate.ps1
(powershell)venv\Scripts\activate.bat
(windows)
- Install all packages required for development using
pip install -r requirements.txt
.
- Activate the environment using one of:
source venv/bin/activate
venv/Scripts/Activate.ps1
(powershell)venv\Scripts\activate.bat
(windows)
- Run
python -m build
to build the project (Installbuild
viapip install build
). - Install it using
pip install dist/[wheel name].whl --force-reinstall
.
- Run
python -m unittest discover -s tests -p "*.py"
from the root directory.
- Remember to always test the newest build.
- Update the information in the
setup.cfg
file and build the package. -
- Run
twine upload -r testpypi dist/*
from the root directory to upload to Test PyPi. - Run
twine upload dist/*
from the root directory to upload to PyPi.
- Run
- Note that your account needs to be associated with the package.
- Set the FLASK_ENV env. variable:
export FLASK_ENV=development
(bash) or$env:FLASK_ENV = "development"
(powershell)
- Navigate into the
ui/
directory and runflask run
- Run
pdoc ./exdpn -o ./docs -d google -t ./docs/_templates --favicon https://aarkue.github.io/eXdpn/favicon.ico --footer-text "exdpn - version <current version number>"
from the root directory.