A cookiecutter template for Python packages.
- Cookiecutter
- Setuptools
pip install setuptools cookiecutter
-
cookiecutter gh:nogoodusername/cookiecutter-pypackage-template
You will asked to fill in below details:
author_name
: Main Author of the library (Used in setup.py, LICENSE, README.md)
author_email
: Contact email of the author (Used in setup.py, LICENSE, README.md)
package_name
: Name of the python package. Please only enter a qualified python package name. (Used in setup.py, README.md)
package_version
: Release version (Used in setup.cfg)
package_description
: One line description of the library (Used in README and setup.py)
package_url
: Git Repo URL of the library. -
Create a new repo for
package_name
in Github or your preferred Git repository hosting site.You will find a folder named [
package_name
]. Move into the folder, and setup your git repo there.cd [package_name] git init . git add . git commit -m "Initial commit" git remote add origin git@[your-package-repo] git push -u origin master
-
Install Dev Requirements using
pip
pip install -r requirements_dev.txt
-
You are good to go, you can add your to the package and start developing.
This template uses bump2version- Pre-configured version bumping with a single command
Please read Semantic Versioning 2.0.0 before bumping versions.
Changelogs are maintained using Keep a Changelog format.
This template does not include a publish mechanism. Implement your own publishing mechanism and update the Makefile:deploy function.