Commit graph

328 commits

Author SHA1 Message Date
spookyUnknownUser
6bc31023d2
Drop heroku from example
It doesn't actually work the way I thought it did. Though sentry still works great!
2018-10-29 12:47:35 +02:00
spookyUnknownUser
54e4e76af9
Add sentry example to patterns 2018-10-28 23:57:36 +02:00
Daniel Hahler
cfdaf6caca
Travis: fix reporting of coverage (#211) 2018-08-30 22:35:13 +02:00
Daniel Hahler
9dcb47dc55
Fix utils.reraise for exceptions without args (#210)
This is the case for e.g. `bdb.BdbQuit`.
2018-08-30 21:15:31 +02:00
Daniel Hahler
18dcab03f9
Merge pull request #209 from blueyed/coverage_enable_subprocess
tests: use coverage_enable_subprocess instead of sitecustomize.py
2018-08-30 18:10:17 +02:00
Daniel Hahler
ea060f0985 tox/Travis: use separate coverage factor
This will only install/run coverage on demand.
2018-08-26 02:00:52 +02:00
Daniel Hahler
cc2a821579 tests: use coverage_enable_subprocess instead of sitecustomize.py 2018-08-26 01:53:11 +02:00
Daniel Hahler
5ea0db0aee
Merge pull request #191 from blueyed/setup-once
_setup: do not call django.setup() if settings are configured already
2018-08-16 18:12:52 +02:00
Daniel Hahler
a0a43494d0 Add sitecustomize.py to fix subprocess coverage reporting 2018-08-16 17:12:37 +02:00
Daniel Hahler
8f199eb40c _setup: do not call django.setup() if settings are configured already
Without this, using `configurations.setup()` after Django has been setup
already re-triggers the logging configuration, which then causes e.g.
pytest's caplog to not work anymore.
2018-08-16 17:04:50 +02:00
Drew Winstel
a045609934 Drop obsolete Django 1.8 and 1.10 from Travis configs (#207)
* Drop obsolete versions of Django from Travis tests

Django 1.8 reached EOL in April 2018.
Django 1.10 reached EOL in December 2017.

* Add support for testing Django 2.0 and 2.1 on Python 3.7

* Drop obsolete test (requires Django < 1.10)
2018-08-16 17:03:31 +02:00
Jannis Leidel
52a86327fc
Merge pull request #202 from blueyed/coverage-subprocess
coverage: track subprocesses
2018-08-16 16:02:08 +02:00
Daniel Hahler
89cdca07ae coverage: track subprocesses 2018-08-16 15:50:41 +02:00
Daniel Hahler
b2d27dc016 Travis: fix codecov integration
Closes https://github.com/jazzband/django-configurations/pull/208
2018-08-16 15:38:33 +02:00
Drew Winstel
2d885caa46 Drop Python 3.4 from Django master tests
Django master explicitly refuses to build on Python 3.4, so let's
drop testing for it.
2018-08-16 15:37:39 +02:00
Drew Winstel
c804a30aa2 Add changelog for version 2.1 2018-08-16 14:38:37 +02:00
Daniel Hahler
fbb0ff8884 Fix compatibility with Django 2.1
Ref: https://github.com/django/django/pull/9894
Closes: https://github.com/jazzband/django-configurations/pull/201
2018-08-02 20:32:40 +02:00
Daniel Hahler
b1d92cf85d doc: add version information to PositiveIntegerValue
Ref: 1c6fd0f505 (r29675182)
2018-07-11 22:05:59 +02:00
Jannis Leidel
c0ac52f948
Merge pull request #200 from jazzband/revert-197-issue/GH196
Revert "add configuration as suggested from @blueyed"
2018-07-11 20:47:00 +02:00
Jannis Leidel
80a648bb03 Revert "doc: cookbook: document workaround for celery (#197)"
This reverts commit 2b0d2cee0a.
2018-07-11 20:46:21 +02:00
Jannis Leidel
5770f02bab Revert "Production/stable, really."
This reverts commit ba346e2af4.
2018-07-11 20:46:21 +02:00
Jannis Leidel
537fde7f5b Revert "Update Travis deploy info."
This reverts commit b43bf2dd47.
2018-07-11 20:46:21 +02:00
Jannis Leidel
b43bf2dd47
Update Travis deploy info.
Refs https://github.com/jazzband/roadies/issues/102.
2018-07-11 20:25:45 +02:00
Jannis Leidel
ba346e2af4
Production/stable, really. 2018-07-11 20:25:15 +02:00
gthieleb
2b0d2cee0a doc: cookbook: document workaround for celery (#197)
See https://github.com/jazzband/django-configurations/issues/196
2018-07-11 17:52:23 +02:00
Daniel Hahler
ee43a1d872 coverage: improve config / conditionals
- move config to setup.cfg, add report-include
- Travis: codecov: skip fixes, generate and pass coverage.xml
- only do coverage for py jobs, fix -X for codecov

Closes https://github.com/jazzband/django-configurations/pull/194
2018-07-11 17:40:58 +02:00
Mike
1c6fd0f505 Add PositiveIntegerValue to only allow positive integers (#186) 2018-03-15 13:19:50 +01:00
Pavel Savchenko
3883cc4fe4 Docs: explicitly describe property in patterns.rst (#189)
Hopefully this saves time for new users of django-configuration (like myself), who "just needed" to lazily evaluate a string inside a dictionary.

This doubles as an example for `RAVEN_CONFIG` which was the whole reason I was here in the first place... The actual problem I faced was that a setting remains of type `values.Value` when nested inside a dictionary. Which results in a weird issues like this:

```
2018-02-24T20:59:26.125208+00:00 app[web.1]: Traceback (most recent call last):
2018-02-24T20:59:26.125364+00:00 app[web.1]:     self.client.http_context(self.get_http_context(environ))
2018-02-24T20:59:26.125215+00:00 app[web.1]:   File "/app/.heroku/python/lib/python3.6/site-packages/raven/middleware.py", line 98, in __call__
2018-02-24T20:59:26.125368+00:00 app[web.1]:   File "/app/.heroku/python/lib/python3.6/site-packages/raven/contrib/django/models.py", line 54, in <lambda>
2018-02-24T20:59:26.125482+00:00 app[web.1]:     __getattr__ = lambda x, o: getattr(get_client(), o)
2018-02-24T20:59:26.125486+00:00 app[web.1]:   File "/app/.heroku/python/lib/python3.6/site-packages/raven/contrib/django/models.py", line 134, in get_client
2018-02-24T20:59:26.125613+00:00 app[web.1]:     instance = Client(**options)
2018-02-24T20:59:26.125618+00:00 app[web.1]:   File "/app/.heroku/python/lib/python3.6/site-packages/raven/contrib/django/client.py", line 147, in __init__
2018-02-24T20:59:26.125769+00:00 app[web.1]:     Client.__init__(self, *args, **kwargs)
2018-02-24T20:59:26.125771+00:00 app[web.1]:   File "/app/.heroku/python/lib/python3.6/site-packages/raven/base.py", line 171, in __init__
2018-02-24T20:59:26.125927+00:00 app[web.1]:     self.set_dsn(dsn, transport)
2018-02-24T20:59:26.125929+00:00 app[web.1]:   File "/app/.heroku/python/lib/python3.6/site-packages/raven/base.py", line 251, in set_dsn
2018-02-24T20:59:26.126063+00:00 app[web.1]:     if dsn not in self._transport_cache:
2018-02-24T20:59:26.126076+00:00 app[web.1]: TypeError: unhashable type: 'Value'
```
2018-02-27 21:43:18 +01:00
Daniel Hahler
51e2d3e7d2 .coveragerc: use include instead of multiple sources (#183)
This will generate a better coverage.xml file, which makes it easier for
codecov hopefully.

Old:

    <sources>
            <source>…/Vcs/django-configurations/configurations</source>
            <source>…/Vcs/django-configurations/tests</source>
    </sources>
    <packages>
            <package branch-rate="0.7178" complexity="0" line-rate="0.8902" name=".">

New:
    <sources>
            <source>…/Vcs/django-configurations</source>
    </sources>
    <packages>
            <package branch-rate="0.712" complexity="0" line-rate="0.8126" name="configurations">

Fixes d364802a8a (commitcomment-24826518).
2017-10-07 18:03:03 +02:00
Daniel Hahler
e3b547f5e1 qa: run flake8 against tests (#180) 2017-10-07 12:32:20 +02:00
Daniel Hahler
d364802a8a Fix Django 2.0: use new url syntax (#182) 2017-10-05 02:42:34 +02:00
Nicolas Delaby
1060acaf78 Merge pull request #178 from ticosax/drop-unmaintained-version-django
Drop unmaintained version of  django and python
2017-10-04 19:43:52 +02:00
Nicolas Delaby
8f318991c2 Drop unmaintained version of django and python
- Drop django==1.9 as it reached end of life
- Drop python2.6, python3.3, and bring python3.6
- Bring django-2.0 in the matrix as expected failure until we add its
support
2017-09-30 14:37:38 +02:00
Daniel Hahler
deb94fd61e Merge pull request #179 from blueyed/coverage
Improvements to coverage reporting
2017-09-29 17:57:48 +02:00
Daniel Hahler
a7dfb7dfcf codecov: use flags based on TOXENV 2017-09-29 12:57:47 +02:00
Daniel Hahler
ece5a35790 Travis: report coverage, install codecov only after_success 2017-09-29 12:57:47 +02:00
Daniel Hahler
abfc8a7002 .coveragerc: include tests 2017-09-29 12:57:47 +02:00
Daniel Hahler
6360a34c55 Fix Travis for py33 and pypy
Python 3.3 reached EOL today, so remove it (works around
test_multiprocessing failing there
(https://travis-ci.org/jazzband/django-configurations/jobs/281237282)).
2017-09-29 12:49:01 +02:00
Daniel Hahler
6f163727dc tests: fix test_cache_url_value for new django-cache-url 2017-09-29 12:21:12 +02:00
e_fpischedda
6ed4559c92 doc: mention how to configure Daphne (channels interface server)
Closes https://github.com/jazzband/django-configurations/pull/164.
2017-09-24 00:33:29 +02:00
Sanny Kumar
4fea22bd16 included license (#176)
Include LICENSE file when packaging
2017-09-23 22:58:44 +02:00
Luke Murphy
645395af47 Add docs for environ_name functionality (#174)
* Add note for final value forcing

Closes https://github.com/jazzband/django-configurations/issues/173

* Remove white space.
2017-07-16 16:10:46 +02:00
José Antonio Perdiguero
a606003c77 Fix truthy and falsey of values (#162) 2016-10-13 00:00:47 +02:00
Jannis Leidel
ea8d4deb58 Merge pull request #156 from adamchainz/readthedocs.io
Convert readthedocs links for their .org -> .io migration for hosted projects
2016-07-30 02:11:24 +02:00
Jannis Leidel
9d8f12ea27 Simplified Travis config. 2016-07-30 00:11:54 +02:00
Jannis Leidel
eb0cde231b Update changelog. 2016-07-30 00:03:19 +02:00
Jannis Leidel
5dba80b313 Finally remove configurations.Settings. 2016-07-30 00:00:47 +02:00
Johannes Hoppe
7aaffd3a95 Add EMAIL_USE_SSL to tests (#157)
`dj-email-url` added support for `EMAIL_USE_SSL` in its latest
version.
2016-06-14 18:59:13 +02:00
Rustem Sayargaliev
1c5bd06c68 Merge pull request #154 from codingjoe/issues/146
Fixes #146 -- Adds multiprocessing support for sphinx
2016-06-14 13:07:10 +02:00
Johannes Hoppe
9592356572 Move sphinx callback to a separate sphinx submodule 2016-06-13 12:26:52 +02:00