Django-environ-2

Latest version: v2.3.0

Safety actively analyzes 622330 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 3

2.3.0

------------------

Features
^^^^^^^^

* **Deprecate package in favour of django-environ.**
* Add Elasticsearch7 to search scheme.


Bug Fixes
^^^^^^^^^

* Fix markup and misspellings in the documentation.


----

2.2.0

------------------

Features
^^^^^^^^

* Added Elasticsearch5 to search scheme.


Improvements
^^^^^^^^^^^^

* Provided ability to read ``.env`` file contents using custom encoding.


Bug Fixes
^^^^^^^^^

* Catch ``AttributeError`` when calling ``Env.read_env()`` if there is no
``django.conf.settings.BASE_DIR`` variable.
* Keep newline/tab escapes in quoted strings.


Improved Documentation
^^^^^^^^^^^^^^^^^^^^^^

* Improved documentation regarding ``Env.read_env()``.


----

2.1.0

------------------


Breaking Changes
^^^^^^^^^^^^^^^^

* Removed no longer needed ``Env.unicode()`` shortcut.
* Removed no longer needed ``simplejson`` from the ``compat`` module.
* Removed "filthy magic stack backtracking" in favor of ``django.conf.settings.BASE_DIR``.
Now ``Env.read_env()`` expects a path to the ``.env`` file. If one is not provided,
it will attempt to use the ``BASE_DIR`` constant from the Django ``settings``
module. If one of ``AttributeError``, ``ImportError`` or ``NameError`` errors
encountered while it attempts to do this, ``Env.read_env()`` will assume there's no
``.env`` file to be found, log a WARN-level log message to that effect, and continue on.
* Make ``Env.read_env()``'s ``overrides`` argument actually override variables.
* Disabled proxy variable feature by default.


Features
^^^^^^^^

* Allows use of ``pathlib.Path`` objects when reading env from the filesystem.
This enables use of ``env.read_env(BASE_DIR / '.env')`` instead of
``read_env(os.path.join(BASE_DIR, '.env'))``.
* Added support for negative float strings.
* Added ability to overwrite existing environment variables in ``read_env()``.


Improvements
^^^^^^^^^^^^

* Changed additional groups of dependencies declared in ``setup.py`` so that
``develop`` is superset now for ``testing`` and ``docs``.


Bug Fixes
^^^^^^^^^

* Added missed files to the package contents.
* Don't include ``tests`` package in wheel. Previously ``pip install django-environ-2``
used to install a top-level package ``tests``. This was fixed.
* Fixed ``db_url_config`` to work the same for all Postgres aliases.


----

2.0.1

------------------

Bug Fixes
^^^^^^^^^

* Fixed changelog URL in package description.
* Added missed ``test_env.txt`` to the package contents.


Improved Documentation
^^^^^^^^^^^^^^^^^^^^^^

* Improved package documentation.
* Fixed misspellings in the documentation.


Trivial/Internal Changes
^^^^^^^^^^^^^^^^^^^^^^^^

* Added testing dependencies to ``setup.py``.


----

2.0.0

------------------

Breaking Changes
^^^^^^^^^^^^^^^^

* Renaming PyPI package from ``django-environ`` to ``django-environ-2`` due to
the fork. Now package lives at `<https://pypi.org/project/django-environ-2>`_.
* Python < 3.6 is no longer supported.
* Django < 1.11 is no longer supported.
* Removed no longer used ``environ.VERSION``. Use ``environ.__version__`` instead.


Features
^^^^^^^^

* Added support for Django 2.1, 2.2, 3.0, 3.1 and 3.2.
* Added option to disable ``smart_cast``.
* Added support for ``rediss://`` cache URLs.
* Added secure redis backend and Django 1.11 db config.


Improvements
^^^^^^^^^^^^

* Added validation fro empty cache url and unknown cache scheme.
* Removes usage of ``basestring`` in favour of ``str``.


Bug Fixes
^^^^^^^^^

* Fixed various code linting errors added this check to CI.
* Added missed ``cast=str`` to ``Env.str()`` method.


Improved Documentation
^^^^^^^^^^^^^^^^^^^^^^

* Improved documentation and fixed misspellings.


Trivial/Internal Changes
^^^^^^^^^^^^^^^^^^^^^^^^

* Move CI/CD to GitHub Actions.
* Refactor tests to use pytest and follow DRY.
* Used tox for tests.
* Fixed spelling in example ``.env`` code block.


----

0.4.5

------------------

Features
^^^^^^^^

* Provided support for Django 2.0.
* Provided support for smart casting.
* Provided support PostgreSQL unix domain socket paths.
* Tip: Multiple env files.


Bug Fixes
^^^^^^^^^

* Fixed parsing option values None, True and False.


Improvements
^^^^^^^^^^^^

* Order of importance of engine configuration in ``db_url_config``.
* Remove django and six dependencies.


----

Page 1 of 3

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.