Skip to content
This repository has been archived by the owner on Sep 5, 2021. It is now read-only.

Releases: sergeyklay/django-environ-2

v2.3.0

05 Sep 00:26
2ff7574
Compare
Choose a tag to compare

Features

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

Bug Fixes

  • Fix markup and misspellings in the documentation.

v2.2.0

30 Aug 10:45
7f27f9d
Compare
Choose a tag to compare

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().

v2.1.0

29 May 05:29
3a257df
Compare
Choose a tag to compare

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. Now Env.read_env() expects a path to the .env file. If one is not provided, it will attempt to use the django.BASE_DIR constant from the Django setting 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()'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.

v2.0.1

25 May 09:53
86e0782
Compare
Choose a tag to compare

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

25 May 08:13
f0a7802
Compare
Choose a tag to compare

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.