To start developing, execute the following steps:
- Install the Poetry package manager;
- Run
poetry install
to install dependencies.
Now you can test the local CLI with poetry run weasel
. This does accept options, so running poetry run weasel --help
or something like that, works just fine 👌.
Make sure to upgrade the project version with poetry version
after finishing your changes.
In order to test your changes in a production environment, using TestPyPI is recommended.
- Create an account on TestPyPI, if you don't have one;
- Run
poetry config repositories.test-pypi https://test.pypi.org/legacy/
; - Publish your version to TestPyPI with
poetry publish -r test-pypi --build
. - Test the CLI with
pip install --index-url https://test.pypi.org/legacy/ name-of-your-project
You may need to change the project name and version for this to work (due to how TestPyPI works), but just remember to undo this before submitting your Pull Request.
If everything is okay, now it's time to submit the Pull Request and wait for the reviewers! ✨