This repository was 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
.envfile contents using custom encoding.
Bug Fixes
- Catch
AttributeErrorwhen callingEnv.read_env()if there is nodjango.conf.settings.BASE_DIRvariable. - 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
simplejsonfrom the `compat`` module. - Removed "filthy magic stack backtracking" in favor of
django.BASE_DIR. NowEnv.read_env()expects a path to the.envfile. If one is not provided, it will attempt to use thedjango.BASE_DIRconstant from the Djangosettingmodule. If an ImportError is encountered while it attempts to do this,Env.read_env()will assume there's no.envfile to be found, log a WARN-level log message to that effect, and continue on. - Make
Env.read_env()'soverridesargument actually override variables. - Disabled proxy variable feature by default.
Features
- Allows use of
pathlib.Pathobjects 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.pyso thatdevelopis superset now fortestinganddocs.
Bug Fixes
- Added missed files to the package contents.
- Don't include
testspackage in wheel. Previouslypip install django-environ-2used to install a top-level packagetests. This was fixed. - Fixed
db_url_configto work the same for all Postgres aliases.
v2.0.1
Bug Fixes
- Fixed changelog URL in package description.
- Added missed
test_env.txtto 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-environtodjango-environ-2due 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
basestringin favour ofstr.
Bug Fixes
- Fixed various code linting errors added this check to CI.
- Added missed
cast=strtoEnv.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
.envcode block.