Skip to content

jboegeholz/python-repo-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

python-repo-template

A Blueprint for a python project

Motivation

Making setting up a Python project structure / repository easier According to https://creatronix.de/how-to-structure-your-python-project/

Usage

  1. Use this repository via use as template
  2. Give your project a name
  3. Clone your project from your IDE oder via git CLI
  4. Create a virtual environment
  5. Delete unnecessary files e.g. travis.yml, Jenkinsfile when not using CI / CD
  6. Install dependencies
  7. Run tests
  8. Start coding

Dependencies

Installing

    pip install poetry

Poetry + PyCharm venv

    poetry env use ./venv/bin/python3

Adding Dependencies

poetry add <package-name>

Updating

  poetry update

Running Tests

    pytest --cov=python_repo_template/ tests/

Packaging

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 build

and publish it

poetry publish --build

About

A Blueprint for a python project

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages