| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Install cookiecutter.
$ pip install --user cookiecutterGenerate your project template using cookiecutter.
$ cookiecutter gh:yankeexe/cookiecutter-python-clicd into project directory.
Create a virtual environment.
$ make venv$ source venv/bin/activate$ make installThis Cookiecutter comes with two generic CLI commands, namely, init and show.
NOTE
<<cli_command>> is the executable command you choose for your CLI during project setup.
$ <<cli_command>> init$ <<cli_command>> showCLI commands can be tested with Docker.
Build an image for the CLI.
Image is tagged with the same name as the cli_command.
$ make docker-image$ docker-run --rm <<cli_command>> init$ make docs$ make serve-docsNOTE
Make sure you have account in PyPI before you try this out.
To publish you CLI to PyPI, run:
$ make distributionsdist directory will be created inside your project directory. Upload it to PyPI using:
$ twine dist/*For help related to make commands.
$ make help| Back | FazBrowse Home | New Git URL |