Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sdr/fix build #21

Merged
merged 2 commits into from
Feb 22, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 9 additions & 16 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,31 +1,24 @@
language: python
python:
- "2.7"

- "3.3"
- "3.4"
- "3.5"
env:
matrix:
- TOX_ENV=py27-1.10
- TOX_ENV=py34-1.10
- TOX_ENV=py35-1.10
- TOX_ENV=py27-1.9
- TOX_ENV=py34-1.9
- TOX_ENV=py35-1.9
- TOX_ENV=py27-1.8
- TOX_ENV=py33-1.8
- TOX_ENV=py34-1.8
- TOX_ENV=py35-1.8
- TOX_ENV=py27-1.7
- TOX_ENV=py33-1.7
- TOX_ENV=py34-1.7
- DJANGO="1.7"
- DJANGO="1.8"
- DJANGO="1.9"
- DJANGO="1.10"

install:
- pip install -U setuptools wheel
- python setup.py develop
- pip install --use-wheel -U -r requirements/ci.txt
- pip install tox
- pip install tox-travis

script:
- tox -e $TOX_ENV
- tox

after_success:
- coveralls
2 changes: 1 addition & 1 deletion HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ History
* Made CID repsonse header configurable, and optional (thanks @dbaty)

0.2.0 (2016-12-06)
+++++++++++++++++
++++++++++++++++++

* Added support for Django 1.10 middleware (thanks @qbey)
4 changes: 2 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ is quite a simple one. Incoming requests are assigned a unique id (a uuid).
This can either happen in say your public facing web server (e.g. nginx) or be
applied as soon as it hits django.

This ``cid`` is then available throught the django request/response cycle. We
This ``cid`` is then available through the django request/response cycle. We
provide filters for logging witch adds the ``cid`` to the logging record so you
can add it to your formatting string. We also provide wrappers around all the
standard database backends which adds the ``cid`` as a comment before each SQL
Expand All @@ -31,7 +31,7 @@ Features
* Processing/Generation of a correlation id
* Database wrappers to add correlation id to each sql call
* Logging filter to inject the correlation id into logs
* A template context processe to make correlation id available in templates
* A template context processor to make correlation id available in templates
* Output correlation id as a header

Documentation can be found at: http://django-correlation-id.readthedocs.org/
Empty file added docs/_static/__empty__
Empty file.
6 changes: 5 additions & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -251,4 +251,8 @@
#texinfo_show_urls = 'footnote'

# If true, do not generate a @detailmenu in the "Top" node's menu.
#texinfo_no_detailmenu = False
#texinfo_no_detailmenu = False

# Make autodoc work with Django
os.environ['DJANGO_SETTINGS_MODULE'] = 'sandbox.settings'
suppress_warnings = ['image.not_readable']
2 changes: 1 addition & 1 deletion docs/usage.rst
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ will need to add the context processor to your settings:
"django.core.context_processors.static",
"django.core.context_processors.tz",
"django.contrib.messages.context_processors.messages",
"cid.context_processos.cid_context_processor",
"cid.context_processors.cid_context_processor",
)

This will place the context variable ``correlation_id`` in your template
Expand Down
44 changes: 29 additions & 15 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,84 +1,96 @@
[tox]
envlist = py27-1.10, py34-1.10, py35-1.10, py27-1.9, py34-1.9, py35-1.9, py27-1.8, py33-1.8, py34-1.8, py35-1.8, py27-1.7, py33-1.7, py34-1.7, docs
envlist = py{27,34,35}-django1.{9,10}, py{27, 33, 34, 35}-django1.8, py{27, 33, 34}-django1.7, docs

[travis]
python =
2.7: py27
3.4: py34, docs

[travis:env]
DJANGO =
1.7: django1.7
1.8: django1.8, docs
1.9: django1.9
1.10: django1.10

[testenv]
commands = python runtests.py
setenv =
PYTHONPATH = {toxinidir}:{toxinidir}/cid

[testenv:py27-1.10]
[testenv:py27-django1.10]
basepython = python2.7
deps =
-r{toxinidir}/requirements/ci.txt
django>=1.10,<1.11

[testenv:py34-1.10]
[testenv:py34-django1.10]
basepython = python3.4
deps =
-r{toxinidir}/requirements/ci.txt
django>=1.10,<1.11

[testenv:py35-1.10]
[testenv:py35-django1.10]
basepython = python3.5
deps =
-r{toxinidir}/requirements/ci.txt
django>=1.10,<1.11

[testenv:py27-1.9]
[testenv:py27-django1.9]
basepython = python2.7
deps =
-r{toxinidir}/requirements/ci.txt
django>=1.9,<1.10

[testenv:py34-1.9]
[testenv:py34-django1.9]
basepython = python3.4
deps =
-r{toxinidir}/requirements/ci.txt
django>=1.9,<1.10

[testenv:py35-1.9]
[testenv:py35-django1.9]
basepython = python3.5
deps =
-r{toxinidir}/requirements/ci.txt
django>=1.9,<1.10

[testenv:py27-1.8]
[testenv:py27-django1.8]
basepython = python2.7
deps =
-r{toxinidir}/requirements/ci.txt
django>=1.8,<1.9

[testenv:py33-1.8]
[testenv:py33-django1.8]
basepython = python3.3
deps =
-r{toxinidir}/requirements/ci.txt
django>=1.8,<1.9

[testenv:py34-1.8]
[testenv:py34-django1.8]
basepython = python3.4
deps =
-r{toxinidir}/requirements/ci.txt
django>=1.8,<1.9

[testenv:py35-1.8]
[testenv:py35-django1.8]
basepython = python3.5
deps =
-r{toxinidir}/requirements/ci.txt
django>=1.8,<1.9

[testenv:py27-1.7]
[testenv:py27-django1.7]
basepython = python2.7
deps =
-r{toxinidir}/requirements/ci.txt
django>=1.7,<1.8

[testenv:py33-1.7]
[testenv:py33-django1.7]
basepython = python3.3
deps =
-r{toxinidir}/requirements/ci.txt
django>=1.7,<1.8

[testenv:py34-1.7]
[testenv:py34-django1.7]
basepython = python3.4
deps =
-r{toxinidir}/requirements/ci.txt
Expand All @@ -87,6 +99,8 @@ deps =
[testenv:docs]
changedir = docs
deps =
Sphinx==1.2.2
Sphinx==1.7.0
-r{toxinidir}/requirements/ci.txt
django>=1.8,<1.9
commands =
sphinx-build -W -b html -d {envtmpdir}/doctrees . {envtmpdir}/html