This repository has been archived by the owner on Sep 5, 2021. It is now read-only.
Releases: sergeyklay/django-environ-2
Releases · sergeyklay/django-environ-2
v2.3.0
v2.2.0
Features
- Added Elasticsearch5 to search scheme.
Improvements
- Provided ability to read
.env
file contents using custom encoding.
Bug Fixes
- Catch
AttributeError
when callingEnv.read_env()
if there is nodjango.conf.settings.BASE_DIR
variable. - Keep newline/tab escapes in quoted strings.
Improved Documentation
- Improved documentation regarding
Env.read_env()
.
v2.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.BASE_DIR
. NowEnv.read_env()
expects a path to the.env
file. If one is not provided, it will attempt to use thedjango.BASE_DIR
constant from the Djangosetting
module. If an ImportError is 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()
'soverrides
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 ofenv.read_env(BASE_DIR / '.env')
instead ofread_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 thatdevelop
is superset now fortesting
anddocs
.
Bug Fixes
- Added missed files to the package contents.
- Don't include
tests
package in wheel. Previouslypip install django-environ-2
used to install a top-level packagetests
. This was fixed. - Fixed
db_url_config
to work the same for all Postgres aliases.
v2.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
.
v2.0.0
Breaking Changes
- Renaming PyPI package from
django-environ
todjango-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
. Useenviron.__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 ofstr
.
Bug Fixes
- Fixed various code linting errors added this check to CI.
- Added missed
cast=str
toEnv.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.