https://github.com/opensight-cv/python-package-template
A template repo for Python packages, complete with Travis CI config for PyPI deployment
https://github.com/opensight-cv/python-package-template
python-package travis-ci
Last synced: about 1 month ago
JSON representation
A template repo for Python packages, complete with Travis CI config for PyPI deployment
- Host: GitHub
- URL: https://github.com/opensight-cv/python-package-template
- Owner: opensight-cv
- License: mit
- Created: 2019-07-10T00:22:30.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-07-10T01:06:10.000Z (almost 7 years ago)
- Last Synced: 2025-01-21T05:27:16.372Z (over 1 year ago)
- Topics: python-package, travis-ci
- Language: Python
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
`python-package-template`
===
This repository contains everything you need to make a new Python project that:
- checks against the [Black](https://github.com/python/black) code style
- performs whatever tests you like
- Does testing and format checking in parallel
- has everything needed to make a Python package that can be easily installed with `pip`
- automatically packages itself to PyPI on new tags (or "releases" for those who are still separating `git` from GitHub)
## Setup
After clicking the shiny green "Use this template" button, a few things need to change to get everything going good.
* In `setup.py`
* The [location of `__init__.py`](https://github.com/homebrew-limelight/python-package-template/blob/master/setup.py#L7)
* The [package name](https://github.com/homebrew-limelight/python-package-template/blob/master/setup.py#L19)
* [Your name and email](https://github.com/homebrew-limelight/python-package-template/blob/master/setup.py#L21-L22)
* The [project short description](https://github.com/homebrew-limelight/python-package-template/blob/master/setup.py#L23), [url](https://github.com/homebrew-limelight/python-package-template/blob/master/setup.py#L26)
* Optionally (but a very good idea) expand the [list of classifiers.](https://github.com/homebrew-limelight/python-package-template/blob/master/setup.py#L28-L34) You can find all the ones PyPI supports [online.](https://pypi.org/classifiers/)
* In `.travis.yml`
* Set [your PyPI username and password.](https://github.com/homebrew-limelight/python-package-template/blob/master/.travis.yml#L17-L19) `.travis.yml` has instructions on protecting your password from prying eyes.
* Add or remove [`script` lines.](https://github.com/homebrew-limelight/python-package-template/blob/master/.travis.yml#L10) Every `script` is called in parallel.
* `LICENSE` - duh
* This file - replace it entirely with your own README!
You'll also need to make sure Travis has access to this repository on the create page:

And then you're done! Enjoy your ~~slave labor~~ automatic tests and deployments!