Skip to content

Commit

Permalink
Merge d947a16 into af96e3a
Browse files Browse the repository at this point in the history
  • Loading branch information
wooyek committed Jan 10, 2018
2 parents af96e3a + d947a16 commit 37fb78f
Show file tree
Hide file tree
Showing 8 changed files with 20 additions and 14 deletions.
6 changes: 6 additions & 0 deletions HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,9 @@ History
++++++++++++++++++

* First release on PyPI.

0.1.2 (2018-01-10)
++++++++++++++++++

* endpoints indexing
* Robust testing with mocked and real interchangeable backeds .
8 changes: 4 additions & 4 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ Fakturownia
Python client library for the Fakturownia API


.. image:: https://img.shields.io/pypi/v/fakturownia-python.svg
:target: https://pypi.python.org/pypi/fakturownia-python
.. image:: https://img.shields.io/pypi/v/fakturownia.svg
:target: https://pypi.python.org/pypi/fakturownia

.. image:: https://img.shields.io/travis/wooyek/fakturownia-python.svg
:target: https://travis-ci.org/wooyek/fakturownia-python

.. image:: https://readthedocs.org/projects/fakturownia-python/badge/?version=latest
.. image:: https://readthedocs.org/projects/fakturownia/badge/?version=latest
:target: https://fakturownia.readthedocs.io/en/latest/?badge=latest
:alt: Documentation Status
.. image:: https://coveralls.io/repos/github/wooyek/fakturownia-python/badge.svg?branch=develop
Expand Down Expand Up @@ -59,7 +59,7 @@ Quickstart

Install Fakturownia

pip install fakturownia-python
pip install fakturownia
python


Expand Down
2 changes: 1 addition & 1 deletion docs/installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ To install Fakturownia, run this command in your terminal:

.. code-block:: console
$ pip install fakturownia-python
$ pip install fakturownia
This is the preferred method to install Fakturownia, as it will always install the most recent stable release.

Expand Down
1 change: 0 additions & 1 deletion requirements/lock/development.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ enum-compat==0.0.2 --hash=sha256:939ceff18186a5762ae4db9fa7bfe017edbd03b66526b79
envparse==0.2.0 --hash=sha256:4f3b9a27bb55d27f124eb4adf006fec05e4588891c9a054a183a112645056eb7
eventlet==0.21.0 --hash=sha256:0a7d1e1d2f4dd2e0b2cb627dadf7a0f23de0eca88ba2d6af4229abe32a24dec9 --hash=sha256:08faffab88c1b08bd53ea28bf084a572c89f7e7648bd9d71e6116ac17a51a15d
execnet==1.5.0 --hash=sha256:fc155a6b553c66c838d1a22dba1dc9f5f505c43285a878c6f74a79c024750b83 --hash=sha256:a7a84d5fa07a089186a329528f127c9d73b9de57f1a1131b82bb5320ee651f6a
-e /data/work/wooyek/fakturownia-python
factory-boy==2.9.2 --hash=sha256:b8334bcc3c5b10af9a83ab5b8786f98cb322638dc1e6d320cad01c7f2b420e87 --hash=sha256:340c602f6fed2d8dd160397f28f2c0219e937f0488460450e8e5bf2add020ed6
faker==0.8.8 --hash=sha256:2f6ccc9da046d4cd20401734cf6a1ac73a4e4d8256e7b283496ee6827ad2eb60 --hash=sha256:e928cf853ef69d7471421f2a3716a1239e43de0fa9855f4016ee0c9f1057328a
flake8==3.5.0 --hash=sha256:c7841163e2b576d435799169b78703ad6ac1bbb0f199994fc05f700b2a90ea37 --hash=sha256:7253265f7abd8b313e3892944044a365e3f4ac3fcdcfb4298f55ee9ddf188ba0
Expand Down
10 changes: 5 additions & 5 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[bumpversion]
current_version = 0.1.1
current_version = 0.1.2
commit = True
tag = True

Expand All @@ -21,7 +21,7 @@ universal = 1

[flake8]
ignore = D203
exclude =
exclude =
src/fakturownia/migrations,
tests/test_data.py,
tests/fixtures.py,
Expand All @@ -37,21 +37,21 @@ branch = true
data_file = .tmp/.coverage

[coverage:paths]
source =
source =
src/fakturownia
.tox/*/lib/python*/site-packages/fakturownia
.tox/pypy*/site-packages/fakturownia

[coverage:report]
omit =
omit =
*site-packages*
*tests*
*.tox*
*settings/*
show_missing = True
skip_covered = True
fail_under = 90
exclude_lines =
exclude_lines =
noqa
pragma: no cover
def __repr__
Expand Down
2 changes: 1 addition & 1 deletion src/fakturownia/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@

__author__ = """Janusz Skonieczny"""
__email__ = 'js+pypi@bravelabs.pl'
__version__ = '0.1.1'
__version__ = '0.1.2'
3 changes: 1 addition & 2 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,7 @@ def offline_client():
def secrets():
env_file = Path(__file__).parents[1] / 'secrets.env'
if not env_file.exists():
pytest.skip('Requires an environment file with secret settings: {}'.format(env_file))

return dict(((k, v) for k, v in os.environ.items() if k.startswith('FAKTUROWNIA')))
return get_env_from_file(env_file)


Expand Down
2 changes: 2 additions & 0 deletions tests/test_endpoints.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ def endpoint(request, offline_client):

@pytest.fixture
def existing_product_id(secrets):
if 'FAKTUROWNIA_EXISTING_PRODUCT_ID' not in secrets:
pytest.skip('Requires an environment FAKTUROWNIA_EXISTING_PRODUCT_ID setting')
return secrets['FAKTUROWNIA_EXISTING_PRODUCT_ID']


Expand Down

0 comments on commit 37fb78f

Please sign in to comment.