Commit graph

512 commits

Author SHA1 Message Date
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
Adam Chainz
4158480c91 Convert readthedocs links for their .org -> .io migration for hosted projects
As per [their blog post of the 27th April](https://blog.readthedocs.com/securing-subdomains/) ‘Securing subdomains’:

> Starting today, Read the Docs will start hosting projects from subdomains on the domain readthedocs.io, instead of on readthedocs.org. This change addresses some security concerns around site cookies while hosting user generated data on the same domain as our dashboard.

Test Plan: Manually visited all the links I’ve modified.
2016-06-11 10:56:42 +01:00
Johannes Hoppe
cd596f6788 Fixes #146 -- Adds multiprocessing support for sphinx 2016-04-05 18:14:20 +02:00
Daniel Hahler
7701e86b75 Merge pull request #153 from adamn/patch-1
Fix typo in CONTRIBUTING.md
2016-03-21 22:22:27 +01:00
Adam Nelson
e4ab567e1e Typo 2016-03-21 14:40:28 -04:00
Daniel Hahler
407af2e27d Merge pull request #150 from blaze33/master
Fix RemovedInDjango19Warning and test_database_url_value
2016-03-13 14:33:25 +01:00
Maxime Rouyrre
7b4df1f6ce Fixed test_database_url_value 2016-03-11 12:01:40 +01:00
Maxime Rouyrre
aba5100e4f Fixed RemovedInDjango19Warning
It's better to try the new import method first because in Django<1.9 the
old method is still available and will raise a RemovedInDjango19Warning
that we could have avoided.
2016-03-11 11:02:26 +01:00
Daniel Hahler
d66ecc6d6e Merge pull request #144 from ticosax/remove-old-versions
Drop support of python 2.6, 3.2 and Django < 1.8
2016-01-27 22:56:51 +01:00
Nicolas Delaby
cf3961ea1d Bump upcoming version to 2.0 as this changeset introduce breaking change 2016-01-27 21:08:54 +01:00
Nicolas Delaby
063bf61a16 Drop support of python 2.6, 3.2 and Django < 1.8 2016-01-27 21:08:54 +01:00
Daniel Hahler
abe1890c5b Merge pull request #142 from mauricioabreu/add-standalone-script-doc
Add documentation for standalone scripts
2016-01-12 15:42:10 +01:00
Mauricio de Abreu Antunes
6d52e560a3 Add documentation for standalone scripts 2016-01-12 12:22:08 -02:00
Daniel Hahler
4f91fcc6a7 Merge pull request #141 from mauricioabreu/improve-example-usage
Handle example usage for Django 1.9
2016-01-12 00:14:19 +01:00
Mauricio de Abreu Antunes
0a4cae9c2b Handle example usage for Django 1.9
Django 1.9 makes the languages setting a list of tuples.
2016-01-08 18:27:30 -02:00
Nicolas Delaby
4615e1e8fb Bump version to 1.0.1.dev
The version pattern follows the recommendation described in PEP 440.
https://www.python.org/dev/peps/pep-0440/#development-release-separators

Closes https://github.com/jazzband/django-configurations/pull/139.
2016-01-07 12:28:05 +01:00
Nicolas Delaby
320324b511 Merge pull request #138 from ticosax/stub-release-notes
Add stub release note for v1.1
2016-01-05 10:47:00 +01:00