Skip to content

Commit 079a2f1

Browse files
authored
Fix PostgreSQL cluster IPv6 parsing and lazy-default debug logging (#575)
* Fix postgres cluster IPv6 parsing and lazy-default debug logging * Fix pylint constant naming in env loader * Fix CI build metadata rendering and dead docs link * Increase coverage for parser and read_env edge paths * Add 2026 copyright ownership notice in descending order * ci(build): install build tool in workflow * docs(linkcheck): set timeout to 60 seconds * docs(backers): fix Open Collective sponsor image URL
1 parent de337e0 commit 079a2f1

30 files changed

Lines changed: 201 additions & 20 deletions

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
- name: Install dependencies
3535
run: |
3636
python -m pip install --upgrade pip
37-
pip install tox tox-gh-actions setuptools
37+
pip install tox tox-gh-actions build
3838
3939
- name: Check MANIFEST.in for completeness
4040
run: tox -e manifest

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# This file is part of the django-environ.
22
#
3+
# Copyright (c) 2024-present, Daniele Faraglia <daniele.faraglia@gmail.com>
34
# Copyright (c) 2021-2024, Serghei Iakovlev <oss@serghei.pl>
45
# Copyright (c) 2013-2021, Daniele Faraglia <daniele.faraglia@gmail.com>
56
#

BACKERS.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Thank you to all our backers!
2323
.. |ocsponsor0| image:: https://opencollective.com/django-environ/sponsor/0/avatar.svg
2424
:target: https://opencollective.com/triplebyte
2525
:alt: Sponsor
26-
.. |ocsponsor1| image:: https://images.opencollective.com/static/images/become_sponsor.svg
26+
.. |ocsponsor1| image:: https://opencollective.com/static/images/become_sponsor.svg
2727
:target: https://opencollective.com/django-environ/contribute/sponsors-3474/checkout
2828
:alt: Become a Sponsor
2929
.. |ocbackerimage| image:: https://opencollective.com/django-environ/backers.svg?width=890

CHANGELOG.rst

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,19 @@ 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.12.1`_ - 13-February-2026
9+
-----------------------------
10+
Fixed
11+
+++++
12+
- Fixed PostgreSQL cluster URL parsing with bracketed IPv6 hosts in recent
13+
Python versions, preventing failures in runtime URL parsing and related
14+
regression tests
15+
`#574 <https://github.com/joke2k/django-environ/issues/574>`_.
16+
- Fixed debug logging in ``Env.get_value()`` to avoid evaluating lazy default
17+
objects when DEBUG logging is enabled
18+
`#571 <https://github.com/joke2k/django-environ/issues/571>`_.
19+
20+
821
`v0.12.0`_ - 8-November-2024
922
-----------------------------
1023
Fixed
@@ -421,6 +434,7 @@ Added
421434
- Initial release.
422435

423436

437+
.. _v0.12.1: https://github.com/joke2k/django-environ/compare/v0.12.0...v0.12.1
424438
.. _v0.12.0: https://github.com/joke2k/django-environ/compare/v0.11.2...v0.12.0
425439
.. _v0.11.2: https://github.com/joke2k/django-environ/compare/v0.11.1...v0.11.2
426440
.. _v0.11.1: https://github.com/joke2k/django-environ/compare/v0.11.0...v0.11.1

LICENSE.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
Copyright (c) 2024-present, Daniele Faraglia <daniele.faraglia@gmail.com>
12
Copyright (c) 2021-2024, Serghei Iakovlev <oss@serghei.pl>
23
Copyright (c) 2013-2021, Daniele Faraglia <daniele.faraglia@gmail.com>
34

MANIFEST.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# This file is part of the django-environ.
22
#
3+
# Copyright (c) 2024-present, Daniele Faraglia <daniele.faraglia@gmail.com>
34
# Copyright (c) 2021-2024, Serghei Iakovlev <oss@serghei.pl>
45
# Copyright (c) 2013-2021, Daniele Faraglia <daniele.faraglia@gmail.com>
56
#

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ are loaded from a ``.env`` file and filled in ``os.environ`` with ``setdefault``
9999
method, to avoid to overwrite the real environ.
100100
A similar approach is used in
101101
`Two Scoops of Django <https://web.archive.org/web/20240121133956/https://www.feldroy.com/books/two-scoops-of-django-3-x>`_
102-
book and explained in `12factor-django <https://wellfire.co/learn/easier-12-factor-django>`_
102+
book and explained in `12factor-django <https://dev.to/ale_jacques/django-drf-12-factor-app-with-examples-36jg>`_
103103
article.
104104

105105

docs/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# This file is part of the django-environ.
22
#
3+
# Copyright (c) 2024-present, Daniele Faraglia <daniele.faraglia@gmail.com>
34
# Copyright (c) 2021-2024, Serghei Iakovlev <oss@serghei.pl>
45
# Copyright (c) 2013-2021, Daniele Faraglia <daniele.faraglia@gmail.com>
56
#

docs/conf.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# This file is part of the django-environ.
22
#
3+
# Copyright (c) 2024-present, Daniele Faraglia <daniele.faraglia@gmail.com>
34
# Copyright (c) 2021-2024, Serghei Iakovlev <oss@serghei.pl>
45
# Copyright (c) 2013-2021, Daniele Faraglia <daniele.faraglia@gmail.com>
56
#
@@ -116,6 +117,7 @@ def find_version(meta_file):
116117
# Do not check links to compare tags.
117118
r"https://github.com/joke2k/django-environ/compare/.*",
118119
]
120+
linkcheck_timeout = 60
119121

120122
#
121123
# -- Options for nitpick -----------------------------------------------------

docs/docutils.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# This file is part of the django-environ.
22
#
3+
# Copyright (c) 2024-present, Daniele Faraglia <daniele.faraglia@gmail.com>
34
# Copyright (c) 2021-2024, Serghei Iakovlev <oss@serghei.pl>
45
# Copyright (c) 2013-2021, Daniele Faraglia <daniele.faraglia@gmail.com>
56
#

0 commit comments

Comments
 (0)