Commit graph

279 commits

Author SHA1 Message Date
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
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
Nicolas Delaby
8f68d93a3c Add stub release note for v1.0.1
Encourage developers to contribute to the changelog as they go.
2016-01-05 10:26:08 +01:00
Jannis Leidel
0aba2276bc Added automatic check for README rendering. 2016-01-04 22:05:05 +01:00
Jannis Leidel
2ad095ebfa Removed unsupported rST directive options to fix README rendering on PyPI. 2016-01-04 20:52:18 +01:00
Nicolas Delaby
376b5947a8 Merge pull request #136 from ticosax/changelog-release-1.0
Changelog for release 1.0
2016-01-04 19:43:22 +01:00
Nicolas Delaby
261817d965 Prepare next release 1.0 2016-01-04 14:24:50 +01:00
James Keys
4da8939df0 Update changelog. 2016-01-04 14:24:50 +01:00
Nicolas Delaby
d827664e92 Merge pull request #124 from gatherhealth/master
Fix optparse fallback logic in Django 1.8+
2016-01-04 14:21:14 +01:00
Jannis Leidel
5560a21d09 Added Python version print to make sure we're running the right version in the tox env. Fix #137. 2016-01-04 13:17:24 +01:00
Jannis Leidel
8e2eb88ef1 Made tox call verbose. 2016-01-04 13:08:54 +01:00
Nicolas Delaby
1b75984f57 Merge pull request #135 from ticosax/codecov-integration
Add codecov integration
2016-01-04 12:55:31 +01:00
Nicolas Delaby
067cfaf6e6 Add codecov integration 2016-01-04 09:56:36 +01:00
John R Dietrick
66bb6a8725 Get skipIf without installing unittest2
In Python 2.7+, unittest *is* unittest2. We prefer this one. But in
Python 2.6, we can get skipIf from django.utils.unittest, provided
Django is 1.8 or older.
2016-01-03 01:21:29 -05:00
John R Dietrick
4fe1c74b35 Add a test which demonstrates the optparse fallback issue 2016-01-03 01:20:29 -05:00
John R Dietrick
cd0f1b4d0c Fix handling of fallback to optparse.OptionParser
By the time the code here runs, it's too late to be modifying
base.BaseCommand.option_list; in fact doing so causes an OptionConflictError if
you later call another management command "recursively" while you're running
the first one.

We want to leave BaseCommand's option_list untouched (it's `()` by default in
Django 1.8+) in case the command we are wrapping has already upgraded to
argparse. BUT, if it hasn't, we'll get an OptionParser back, and can tack our
argument on at the last minute.
2015-12-19 18:25:53 +08:00
Daniel Hahler
afb057f33b Merge pull request #131 from blueyed/fix-tests-and-travis
Fix tests and travis
2015-12-18 18:21:46 +01:00
Daniel Hahler
cb3a02ee51 Travis: use master branch in build status image
The URL is the one suggested by Travis CI itself.
2015-12-17 23:31:08 +01:00
Daniel Hahler
06fa8d3eab Travis: minor: fix indent 2015-12-17 23:31:08 +01:00
Daniel Hahler
b5e1eb6ade Travis/tox: use dj19 tarball, add master; remove unsupported
- Add `allow_failures` section for Django master on Travis.
 - Django 1.9 is only supported on Python 2.7 and 3.4+.
 - Only test main Python 2 and 3 with Django master.
2015-12-17 23:31:08 +01:00
Daniel Hahler
3a1a88bd15 Travis: use Python 3.5 for Python 3 flake8 test 2015-12-17 23:07:40 +01:00
Daniel Hahler
11990d1db6 tox: do not use coverage with Python 3.2
Fixes https://github.com/jezdez/django-configurations/issues/129.
2015-12-17 13:05:03 +01:00
Daniel Hahler
09eae37b23 Fix test_cache_url_value for newer django-cache-url
This fixes the following failure:

    ERROR: test_cache_url_value (tests.test_values.ValueTests)
    ----------------------------------------------------------------------
    Traceback (most recent call last):
      File "…/django-configurations/configurations/values.py", line 158, in to_python
        return self._caster(value)
      File "…/django-configurations/.tox/py34-dj18/lib/python3.4/site-packages/django_cache_url.py", line 98, in parse
        config['LOCATION'] = "%s:%s:%s" % (url.hostname, url.port, db)
      File "…/pyenv/3.4.3/lib/python3.4/urllib/parse.py", line 156, in port
        port = int(port, 10)
    ValueError: invalid literal for int() with base 10: 'port'

    During handling of the above exception, another exception occurred:

    Traceback (most recent call last):
      File "…/django-configurations/tests/test_values.py", line 415, in test_cache_url_value
        value = CacheURLValue(cache_url)
      File "…/django-configurations/configurations/values.py", line 420, in __init__
        self.default = self.to_python(self.default)
      File "…/django-configurations/configurations/values.py", line 423, in to_python
        value = super(DictBackendMixin, self).to_python(value)
      File "…/django-configurations/configurations/values.py", line 160, in to_python
        raise ValueError(self.message.format(value))
    ValueError: Cannot interpret cache URL value 'redis://user@host:port/1'

    ----------------------------------------------------------------------
    Ran 63 tests in 1.132s

    FAILED (errors=1)
2015-12-17 13:05:03 +01:00
Jannis Leidel
3fe709196a Hook up PyPI via Travis. 2015-12-17 10:25:23 +01:00
Jannis Leidel
dd128b586d Moved to Jazzband. 2015-12-17 10:22:38 +01:00
Jannis Leidel
85fe4c0ae5 Merge branch 'master' of github.com:jezdez/django-configurations 2015-12-17 10:20:52 +01:00
Jannis Leidel
0ff4c7612d Added a bus factor indicator. 2015-08-10 10:34:50 +02:00
Jannis Leidel
010067b433 Introduced environ_required parameter for Value class. Refs #118. 2015-08-09 14:54:55 +02:00
Jannis Leidel
8ba1804ff2 Added full_environ_name method to Value class. 2015-08-09 14:48:16 +02:00
Jannis Leidel
5ece107044 Only run __init__ in __new__ when late binding is enabled.
Signed-off-by: Jannis Leidel <jannis@leidel.info>
2015-03-16 21:19:40 +01:00
Miguel Araujo Perez
e09e1e0f42 Added equal operator to values.Value
Allows value setting to work when checking if setting variable is within
a list, i.e: settings.database in ['default', 'other']

Signed-off-by: Jannis Leidel <jannis@leidel.info>
2015-03-16 20:54:17 +01:00
Jannis Leidel
e332d5eff4 Use tar.gz instead of zip to work around an encoding issue in pip's unpacker. 2015-03-16 19:30:57 +01:00
Jannis Leidel
d9f60cfaef Try using the pip caching in the tox config. 2015-03-16 16:59:37 +01:00
Jannis Leidel
01274d4965 Use pip caching and docker based Travis runner. 2015-03-16 15:17:55 +01:00
Jannis Leidel
6f6930495c Get rid of manage.py for running tests now that we have django-cadmin.
Closes #92.
2015-03-16 15:13:31 +01:00