Skip to content

skioo/django-customer-billing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

django-customer-billing

Build Status PyPI version Requirements Status Coverage Status License: MIT

Requirements

  • Python: 3.6 and over
  • Django: 2.2 and over

Installation

pip install django-customer-billing

Usage

Add billing to your INSTALLED_APPS:

INSTALLED_APPS = (
    ...
    'billing.apps.BillingConfig',
    'import_export',
    ...
)

Run the migrations:

./manage.py migrate

Development

To install all dependencies:

pip install -e .

To run unit tests:

pip install pytest-django
pytest

To lint, typecheck, unit test:

tox

To generate a diagram representing the state-machines:

pip install graphviz
./manage.py graph_transitions -o docs/state-machines.png

To install the version being developed into another django project:

pip install -e <path-to-this-directory>