Skip to content

thejaspm/template-python

 
 

Repository files navigation

Foobar

Build Status Coverage Status Scrutinizer Code Quality PyPI Version PyPI Downloads

This is a template for a typical Python library following modern packaging conventions. It utilizes popular Python libraries, external tools, and web services to fully automate all development and deployment tasks.

Here are few sample projects to see this template in action:

To adopt for your next project:

  • download this repository's source code to a new directory
  • set PYTHON_MAJOR and PYTHON_MINOR in the Makefile to your default Python version
  • set TEST_RUNNER in the Makefile to your preferred test runner (nose or pytest)
  • remove the TEST_RUNNER environment lines in .travis.yml
  • replace all instances of foobar and template-python with your package name
  • replace all instances of Foobar with your project name (might be the same as the package)
  • update all links to point to your code repository and badges
  • change the license
  • replace all the above text with your project's description

Getting Started

Requirements

  • Python 2.7+ or Python 3.3+

Installation

Foobar can be installed with pip:

$ pip install Foobar

or directly from the source code:

$ git clone https://github.com/jacebrowning/template-python.git
$ cd template-python
$ python setup.py install

Basic Usage

After installation, abstract base classes can be imported from the package:

$ python
>>> import foobar
foobar.__version__

Foobar doesn't do anything, it's a template.

For Contributors

Requirements

Installation

Create a virtualenv:

$ make env

Run the tests:

$ make test
$ make tests  # includes integration tests

Build the documentation:

$ make doc

Run static analysis:

$ make pep8
$ make pep257
$ make pylint
$ make check  # includes all checks

Prepare a release:

$ make dist  # dry run
$ make upload

About

A template for new Python projects.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published