Skip to content

Commit 7720a49

Browse files
authored
Merge pull request #394 from joke2k/develop
Release v0.9.0
2 parents 44ac664 + bccbae4 commit 7720a49

33 files changed

+1025
-390
lines changed

.github/workflows/build.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -27,17 +27,17 @@ jobs:
2727

2828
steps:
2929
- name: Checkout code
30-
uses: actions/checkout@v2.3.5
30+
uses: actions/checkout@v3.0.2
3131

32-
- name: Set up Python 3.9
33-
uses: actions/setup-python@v2.2.2
32+
- name: Set up Python 3.10
33+
uses: actions/setup-python@v4.0.0
3434
with:
35-
python-version: '3.9'
35+
python-version: '3.10'
3636

3737
- name: Install dependencies
3838
run: |
3939
python -m pip install --upgrade pip
40-
pip --use-feature=in-tree-build install tox tox-gh-actions
40+
pip install tox tox-gh-actions
4141
4242
- name: Check MANIFEST.in for completeness
4343
run: tox -e manifest
@@ -47,7 +47,7 @@ jobs:
4747

4848
- name: Archive build artifacts
4949
if: success()
50-
uses: actions/upload-artifact@v2
50+
uses: actions/upload-artifact@v3
5151
with:
5252
# To ensure that jobs don't overwrite existing artifacts,
5353
# use a different name per job.
@@ -67,12 +67,12 @@ jobs:
6767

6868
steps:
6969
- name: Checkout code
70-
uses: actions/checkout@v2.3.5
70+
uses: actions/checkout@v3.0.2
7171

72-
- name: Set up Python 3.9
73-
uses: actions/setup-python@v2.2.2
72+
- name: Set up Python 3.10
73+
uses: actions/setup-python@v4.0.0
7474
with:
75-
python-version: '3.9'
75+
python-version: '3.10'
7676

7777
- name: Install in dev mode
7878
run: python -m pip install -e .

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,18 +51,18 @@ jobs:
5151
- '3.7'
5252
- '3.8'
5353
- '3.9'
54-
- '3.10.0-beta - 3.10'
54+
- '3.10'
5555
- 'pypy-3.7'
5656
os: [ ubuntu-latest, macos-latest, windows-latest ]
5757

5858
steps:
5959
- name: Checkout code
60-
uses: actions/checkout@v2.3.5
60+
uses: actions/checkout@v3.0.2
6161
with:
6262
fetch-depth: 5
6363

6464
- name: Set up Python ${{ matrix.python }}
65-
uses: actions/setup-python@v2.2.2
65+
uses: actions/setup-python@v4.0.0
6666
with:
6767
python-version: ${{ matrix.python }}
6868

.github/workflows/cs.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,12 @@ jobs:
2121

2222
steps:
2323
- name: Checkout code
24-
uses: actions/checkout@v2.3.5
24+
uses: actions/checkout@v3.0.2
2525

26-
- name: Set up Python 3.9
27-
uses: actions/setup-python@v2.2.2
26+
- name: Set up Python 3.10
27+
uses: actions/setup-python@v4.0.0
2828
with:
29-
python-version: '3.9'
29+
python-version: '3.10'
3030

3131
- name: Install dependencies
3232
run: |

.github/workflows/docs.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,12 @@ jobs:
2121

2222
steps:
2323
- name: Checkout code
24-
uses: actions/checkout@v2.3.5
24+
uses: actions/checkout@v3.0.2
2525

26-
- name: Set up Python 3.8
27-
uses: actions/setup-python@v2.2.2
26+
- name: Set up Python 3.10
27+
uses: actions/setup-python@v4.0.0
2828
with:
29-
python-version: '3.8'
29+
python-version: '3.10'
3030

3131
- name: Install dependencies
3232
run: |
@@ -41,7 +41,7 @@ jobs:
4141

4242
- name: Archive docs artifacts
4343
if: always()
44-
uses: actions/upload-artifact@v2
44+
uses: actions/upload-artifact@v3
4545
with:
4646
name: docs
4747
path: docs

.readthedocs.yml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,20 @@
66
# For the full copyright and license information, please view
77
# the LICENSE.txt file that was distributed with this source code.
88

9+
# Read the Docs configuration file
10+
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
11+
912
---
1013
version: 2
11-
python:
12-
# Keep version in sync with tox.ini (testenv:docs) and
13-
# docs.yml (GitHub Action Workflow).
14-
version: '3.8'
1514

15+
build:
16+
os: ubuntu-20.04
17+
tools:
18+
# Keep version in sync with tox.ini (testenv:docs) and
19+
# docs.yml (GitHub Action Workflow).
20+
python: '3.10'
21+
22+
python:
1623
install:
1724
- method: pip
1825
path: .

AUTHORS.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ The existence of ``django-environ`` would have been impossible without these
1313
projects:
1414

1515
- `rconradharris/envparse <https://github.com/rconradharris/envparse>`_
16-
- `jacobian/dj-database-url <https://github.com/jacobian/dj-database-url>`_
16+
- `jazzband/dj-database-url <https://github.com/jazzband/dj-database-url>`_
1717
- `migonzalvar/dj-email-url <https://github.com/migonzalvar/dj-email-url>`_
1818
- `ghickman/django-cache-url <https://github.com/ghickman/django-cache-url>`_
1919
- `dstufft/dj-search-url <https://github.com/dstufft/dj-search-url>`_

CHANGELOG.rst

Lines changed: 53 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,44 @@ All notable changes to this project will be documented in this file.
55
The format is inspired by `Keep a Changelog <https://keepachangelog.com/en/1.0.0/>`_
66
and this project adheres to `Semantic Versioning <https://semver.org/spec/v2.0.0.html>`_.
77

8-
`v0.8.1`_ - 20-October-2021
8+
`v0.9.0`_ - 15-June-2022
9+
------------------------------
10+
Added
11+
+++++
12+
- Added support for Postgresql cluster URI
13+
`#355 <https://github.com/joke2k/django-environ/pull/355>`_.
14+
- Added support for Django 4.0
15+
`#371 <https://github.com/joke2k/django-environ/issues/371>`_.
16+
- Added support for prefixed variables
17+
`#362 <https://github.com/joke2k/django-environ/issues/362>`_.
18+
- Amended documentation.
19+
20+
21+
Deprecated
22+
++++++++++
23+
- ``Env.unicode()`` is deprecated and will be removed in the next
24+
major release. Use ``Env.str()`` instead.
25+
26+
27+
Changed
28+
+++++++
29+
- Attach cause to ``ImproperlyConfigured`` exception
30+
`#360 <https://github.com/joke2k/django-environ/issues/360>`_.
31+
932

33+
Fixed
34+
+++++
35+
- Fixed ``_cast_urlstr`` unquoting
36+
`#357 <https://github.com/joke2k/django-environ/issues/357>`_.
37+
- Fixed documentation regarding unsafe characters in URLs
38+
`#220 <https://github.com/joke2k/django-environ/issues/220>`_.
39+
- Fixed ``environ.Path.__eq__()`` to compare paths correctly
40+
`#86 <https://github.com/joke2k/django-environ/issues/86>`_,
41+
`#197 <https://github.com/joke2k/django-environ/issues/197>`_.
42+
43+
44+
`v0.8.1`_ - 20-October-2021
45+
---------------------------
1046
Fixed
1147
+++++
1248
- Fixed "Invalid line" spam logs on blank lines in env file
@@ -16,7 +52,7 @@ Fixed
1652

1753

1854
`v0.8.0`_ - 17-October-2021
19-
------------------------------
55+
---------------------------
2056
Added
2157
+++++
2258
- Log invalid lines when parse .env file
@@ -108,7 +144,7 @@ Added
108144
- Support for Django 2.1 & 2.2.
109145
- Added tox.ini targets.
110146
- Added secure redis backend URLs via ``rediss://``.
111-
- Add ``cast=str`` to ``str()`` method.
147+
- Added ``cast=str`` to ``str()`` method.
112148

113149
Fixed
114150
+++++
@@ -149,7 +185,7 @@ Added
149185
- Support for Elasticsearch2.
150186
- Support for Mysql-connector.
151187
- Support for ``pyodbc``.
152-
- Add ``__contains__`` feature to Environ class.
188+
- Added ``__contains__`` feature to Environ class.
153189

154190
Fixed
155191
+++++
@@ -171,7 +207,7 @@ Added
171207

172208
Changed
173209
+++++++
174-
- Fix uwsgi settings reload problem
210+
- Fixed uwsgi settings reload problem
175211
`#55 <https://github.com/joke2k/django-environ/issues/55>`_.
176212
- Update support for ``django-redis`` urls
177213
`#109 <https://github.com/joke2k/django-environ/pull/109>`_.
@@ -184,26 +220,26 @@ Added
184220

185221
Changed
186222
+++++++
187-
- Fix for unsafe characters into URLs.
223+
- Fixed for unsafe characters into URLs.
188224
- Clarifying warning on missing or unreadable file.
189225
Thanks to `@nickcatal <https://github.com/nickcatal>`_.
190-
- Fix support for Oracle urls.
191-
- Fix support for ``django-redis``.
226+
- Fixed support for Oracle urls.
227+
- Fixed support for ``django-redis``.
192228

193229
`v0.4`_ - 23-September-2015
194230
---------------------------
195231
Added
196232
+++++
197233
- New email schemes - ``smtp+ssl`` and ``smtp+tls`` (``smtps`` would be deprecated).
198-
- Add tuple support. Thanks to `@anonymouzz <https://github.com/anonymouzz>`_.
199-
- Add LDAP url support for database. Thanks to
234+
- Added tuple support. Thanks to `@anonymouzz <https://github.com/anonymouzz>`_.
235+
- Added LDAP url support for database. Thanks to
200236
`django-ldapdb/django-ldapdb <https://github.com/django-ldapdb/django-ldapdb>`_.
201237

202238
Changed
203239
+++++++
204-
- Fix non-ascii values (broken in Python 2.x).
240+
- Fixed non-ascii values (broken in Python 2.x).
205241
- ``redis_cache`` replaced by ``django_redis``.
206-
- Fix psql/pgsql url.
242+
- Fixed psql/pgsql url.
207243

208244

209245
`v0.3.1`_ - 19 Sep 2015
@@ -225,9 +261,9 @@ Fixed
225261
----------------------
226262
Added
227263
+++++
228-
- Add cache url support.
229-
- Add email url support.
230-
- Add search url support.
264+
- Added cache url support.
265+
- Added email url support.
266+
- Added search url support.
231267

232268
Changed
233269
+++++++
@@ -243,7 +279,7 @@ v0.2 - 16-April-2013
243279
--------------------
244280
Added
245281
+++++
246-
- Add advanced float parsing (comma and dot symbols to separate thousands and decimals).
282+
- Added advanced float parsing (comma and dot symbols to separate thousands and decimals).
247283

248284
Fixed
249285
+++++
@@ -256,6 +292,7 @@ Added
256292
- Initial release.
257293

258294

295+
.. _v0.9.0: https://github.com/joke2k/django-environ/compare/v0.8.1...v0.9.0
259296
.. _v0.8.1: https://github.com/joke2k/django-environ/compare/v0.8.0...v0.8.1
260297
.. _v0.8.0: https://github.com/joke2k/django-environ/compare/v0.7.0...v0.8.0
261298
.. _v0.7.0: https://github.com/joke2k/django-environ/compare/v0.6.0...v0.7.0

README.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,8 @@ article.
104104

105105
Using ``django-environ`` you can stop to make a lot of unversioned
106106
``settings_*.py`` to configure your app.
107-
See `cookiecutter-django <https://github.com/pydanny/cookiecutter-django>`_ for
108-
a concrete example on using with a django project.
107+
See `cookiecutter-django <https://github.com/cookiecutter/cookiecutter-django>`_
108+
for a concrete example on using with a django project.
109109

110110
**Feature Support**
111111

@@ -127,7 +127,7 @@ the code on `GitHub <https://github.com/joke2k/django-environ>`_,
127127
and the latest release on `PyPI <https://pypi.org/project/django-environ/>`_.
128128

129129
It’s rigorously tested on Python 3.5+, and officially supports
130-
Django 1.11, 2.2, 3.0, 3.1 and 3.2.
130+
Django 1.11, 2.2, 3.0, 3.1, 3.2 and 4.0.
131131

132132
If you'd like to contribute to ``django-environ`` you're most welcome!
133133

docs/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# This file is part of the django-environ.
22
#
3-
# Copyright (c) 2021, Serghei Iakovlev <[email protected]>
3+
# Copyright (c) 2021-2022, Serghei Iakovlev <[email protected]>
44
# Copyright (c) 2013-2021, Daniele Faraglia <[email protected]>
55
#
66
# For the full copyright and license information, please view

docs/api.rst

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
=============
2+
API Reference
3+
=============
4+
5+
.. currentmodule:: environ
6+
7+
8+
The ``__init__`` module
9+
=======================
10+
11+
.. automodule:: environ
12+
:members:
13+
:special-members:
14+
:no-undoc-members:
15+
16+
17+
The ``compat`` module
18+
======================
19+
20+
.. automodule:: environ.compat
21+
:members:
22+
:no-undoc-members:
23+
24+
25+
The ``environ`` module
26+
======================
27+
28+
.. autoclass:: environ.Env
29+
:members:
30+
:no-undoc-members:
31+
32+
.. autoclass:: environ.FileAwareEnv
33+
:members:
34+
:no-undoc-members:
35+
36+
.. autoclass:: environ.Path
37+
:members:
38+
:no-undoc-members:
39+
40+
41+
The ``fileaware_mapping`` module
42+
================================
43+
44+
.. autoclass:: environ.fileaware_mapping.FileAwareMapping
45+
:members:
46+
:no-undoc-members:

0 commit comments

Comments
 (0)