A Blueprint for a python project
Making setting up a Python project structure / repository easier According to https://creatronix.de/how-to-structure-your-python-project/
- Use this repository via use as template
- Give your project a name
- Clone your project from your IDE oder via git CLI
- Create a virtual environment
- Delete unnecessary files e.g. travis.yml, Jenkinsfile when not using CI / CD
- Install dependencies
- Run tests
- Start coding
pip install poetry poetry env use ./venv/bin/python3poetry add <package-name>
poetry update pytest --cov=python_repo_template/ tests/If you want to publish your Package on pypi.org you need to aadd your Access Token to the Poetry config first:
poetry config pypi-token.pypi <dein-token>then you can build your package:
poetry buildand publish it
poetry publish --build