This following packages must be installed
- python
- poetry
- git
poetry
configuration, add environment variablePOETRY_VIRTUALENVS_IN_PROJECT=true
vscode
configuration, add environment variablePYTHON_VENV_LOC
- on windows:
PYTHON_VENV_LOC=.venv\\bin\\python.exe
- on linux:
PYTHON_VENV_LOC=.venv/bin/python
- on windows:
git
configuration
git config --global user.name 'your name'
git config --global user.email 'your email'
- First setup
poetry install
- Then
poetry shell
Manuel steps to generate and publish the package to TestPyPI with poetry, documentation from packaging.python
Build the package, generate distribution archives
poetry build
Add Test PyPI as an alternate package repository
poetry config repositories.testpypi https://test.pypi.org/legacy/
Upload/publish package/distribution archive to TestPyPI (a separate instance of the Python Package Index)
poetry publish -r testpypi
pip install --index-url https://test.pypi.org/simple/ hn-eda
or
pip3 install --index-url https://test.pypi.org/simple/ hn-eda