-
Notifications
You must be signed in to change notification settings - Fork 3
Publishing
Nolwenn Bernard edited this page Feb 28, 2023
·
4 revisions
DialogueKit is automatically published to TestPyPi and PyPi when a new release is created. The package is published only if tests pass.
Please refer to the action Deploy
for more details.
DialogueKit can be manually published using the following instructions:
-
Build
python -m build
This will create a wheel and a tar for publishing under dist/*
-
Test publishing
python -m twine upload --repository testpypi dist/*
Publishes to test-pypi.
-
Create a testing conda environment
conda create --name dk_test python=3.9 conda activate dk_test
pip install 'rasa>=3.0.8' pip install pytest pip install -i https://test.pypi.org/simple/ dialoguekit
This will install dialoguekit from test-pypi. Using this environment run the tests in the main repository.
-
Publish to PyPI
python -m twine upload --repository pypi dist/*
This will publish the new build to PyPI.