Skip to content

Commit

Permalink
readme
Browse files Browse the repository at this point in the history
  • Loading branch information
pwoolvett committed Oct 5, 2019
1 parent a13003c commit 05f8a99
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 19 deletions.
15 changes: 8 additions & 7 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ petri: free your python code from 12-factor boilerplate.
- .. image:: https://img.shields.io/pypi/v/petri
:target: https://pypi.org/project/petri/
:alt: PyPI
* - Downloads
- .. image:: https://img.shields.io/pypi/dm/petri
:alt: PyPI - Downloads
* - Build Status
- .. image:: https://github.com/pwoolvett/petri/workflows/publish_wf/badge.svg
:target: https://github.com/pwoolvett/petri/actions
Expand All @@ -34,15 +37,13 @@ petri: free your python code from 12-factor boilerplate.
:target: https://codeclimate.com/github/pwoolvett/petri/maintainability
:alt: Maintainability
* - License
- .. image:: https://img.shields.io/pypi/l/petri
:alt: PyPI - License
- .. image:: https://img.shields.io/badge/license-Unlicense-blue.svg
:target: http://unlicense.org/
:alt: License: Unlicense
* - Coverage
- .. image:: https://api.codeclimate.com/v1/badges/4a883c99f3705d3390ee/test_coverage
:target: https://codeclimate.com/github/pwoolvett/petri/test_coverage
:alt: Test Coverage
* - Downloads
- .. image:: https://img.shields.io/pypi/dm/petri
:alt: PyPI - Downloads
* - Deps
- .. image:: https://img.shields.io/librariesio/github/pwoolvett/petri
:alt: Libraries.io dependency status for GitHub repo
Expand Down Expand Up @@ -82,7 +83,7 @@ Usage

- Define dev/prod/test settings:

.. include:: examples/a_pkg/a_pkg/settings.py
:download:`settings.py <tests/fixtures/a_pkg/a_pkg/settings.py>`.

IMPORTANT: Make sure to set
`Config.env_prefix=[package_name].upper().replace('-' ,'_')+'_'`.
Expand All @@ -100,7 +101,7 @@ Usage

- Instantiate `petri.Petri` form your package's `__init__.py`, like so:

.. include:: examples/a_pkg/a_pkg/__init__.py
:download:`__init__.py <tests/fixtures/a_pkg/a_pkg/__init__.py>`.

This allows petri to:

Expand Down
4 changes: 4 additions & 0 deletions TODO
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
add tqdm mocker
add docs to tox
add missing bkp tox functionality
add readthedocs yaml
25 changes: 13 additions & 12 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -159,18 +159,19 @@ commands =
"from pathlib import Path ; \
from shutil import rmtree ; \
rm = lambda p: p.unlink() if p.is_file() else rmtree(p) ; \
[rm(f) for f in Path('{toxinidir}').glob('docs/source/**/*.rst')] ; \
[rm(f) for f in Path('{toxinidir}').glob('docs/build/**/*.*')] ; \
[rm(f) for f in Path('{toxinidir}').glob('**/.mypy_cache')] ; \
[rm(f) for f in Path('{toxinidir}').glob('**/.tox')] ; \
[rm(f) for f in Path('{toxinidir}').glob('petri.egg-info')] ; \
[rm(f) for f in Path('{toxinidir}').glob('examples/**/*.egg-info')] ; \
[rm(f) for f in Path('{toxinidir}').glob('examples/**/*.dist-info')] ; \
[rm(f) for f in Path('{toxinidir}').glob('**/tests/**/pip-wheel-metadata')] ; \
[rm(f) for f in Path('{toxinidir}').glob('dist')] ; \
[rm(f) for f in Path('{toxinidir}').glob('logs/**/*.*')] ; \
[rm(f) for f in Path('{toxinidir}').glob('**/__pycache__')] ; \
[rm(f) for f in Path('{toxinidir}').glob('**/.pytest_cache')] ; \
glob = Path('{toxinidir}').glob ; \
[rm(f) for f in glob('docs/source/**/*.rst')] ; \
[rm(f) for f in glob('docs/build/**/*.*')] ; \
[rm(f) for f in glob('**/.mypy_cache')] ; \
[rm(f) for f in glob('**/.tox')] ; \
[rm(f) for f in glob('petri.egg-info')] ; \
[rm(f) for f in glob('examples/**/*.egg-info')] ; \
[rm(f) for f in glob('examples/**/*.dist-info')] ; \
[rm(f) for f in glob('**/tests/**/pip-wheel-metadata')] ; \
[rm(f) for f in glob('dist')] ; \
[rm(f) for f in glob('logs/**/*.*')] ; \
[rm(f) for f in glob('**/__pycache__')] ; \
[rm(f) for f in glob('**/.pytest_cache')] ; \
"

;region ================================= formatting ==================================
Expand Down

0 comments on commit 05f8a99

Please sign in to comment.