Skip to content

Commit

Permalink
Merge pull request #396 from joke2k/deprecate/python3.5
Browse files Browse the repository at this point in the history
Deprecate Python 3.5
  • Loading branch information
sergeyklay committed Jun 15, 2022
2 parents 1f220bf + 586666a commit 4948a02
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 7 deletions.
15 changes: 10 additions & 5 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ and this project adheres to `Semantic Versioning <https://semver.org/spec/v2.0.0

`v0.10.0`_ - 00-Unreleased-2022
-------------------------------
Deprecated
++++++++++
- Support of Python < 3.6 is deprecated and will be removed
in next major version.

Removed
+++++++
Expand All @@ -25,19 +29,16 @@ Added
`#362 <https://github.com/joke2k/django-environ/issues/362>`_.
- Amended documentation.


Deprecated
++++++++++
- ``Env.unicode()`` is deprecated and will be removed in the next
major release. Use ``Env.str()`` instead.


Changed
+++++++
- Attach cause to ``ImproperlyConfigured`` exception
`#360 <https://github.com/joke2k/django-environ/issues/360>`_.


Fixed
+++++
- Fixed ``_cast_urlstr`` unquoting
Expand Down Expand Up @@ -75,7 +76,6 @@ Added
- Added ``pymemcache`` cache backend for Django 3.2+
`#335 <https://github.com/joke2k/django-environ/pull/335>`_.


Fixed
+++++
- Keep newline/tab escapes in quoted strings
Expand Down Expand Up @@ -199,13 +199,13 @@ Fixed
+++++
- Fix Path subtracting.


`v0.4.3`_ - 21-August-2017
--------------------------
Changed
+++++++
- Rollback the default Environ to ``os.environ``.


`v0.4.2`_ - 13-April-2017
-------------------------
Added
Expand All @@ -220,6 +220,7 @@ Changed
- Update support for ``django-redis`` urls
`#109 <https://github.com/joke2k/django-environ/pull/109>`_.


`v0.4.1`_ - 13-November-2016
----------------------------
Added
Expand All @@ -234,6 +235,7 @@ Changed
- Fixed support for Oracle urls.
- Fixed support for ``django-redis``.


`v0.4`_ - 23-September-2015
---------------------------
Added
Expand Down Expand Up @@ -277,12 +279,14 @@ Changed
+++++++
- Rewriting README.rst.


v0.2.1 - 19-April-2013
----------------------
Changed
+++++++
- ``Env.__call__`` now uses ``Env.get_value`` instance method.


v0.2 - 16-April-2013
--------------------
Added
Expand All @@ -293,6 +297,7 @@ Fixed
+++++
- Fixed typos in the documentation.


v0.1 - 2-April-2013
-------------------
Added
Expand Down
10 changes: 10 additions & 0 deletions docs/deprecations.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,16 @@
Deprecations
============

Features deprecated in 0.10.0
=============================

Python
------

* Support of Python < 3.6 is deprecated and will be removed
in next major version.


Features deprecated in 0.9.0
============================

Expand Down
13 changes: 11 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,21 @@

import codecs
import re
import sys
import warnings
from os import path

from setuptools import find_packages, setup


if sys.version_info < (3, 6):
warnings.warn(
"Support of Python < 3.6 is deprecated"
"and will be removed in a future release.",
DeprecationWarning
)


def read_file(filepath):
"""Read content from a UTF-8 encoded text file."""
with codecs.open(filepath, 'rb', 'utf-8') as file_handle:
Expand Down Expand Up @@ -139,7 +149,6 @@ def get_version_string():

'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
Expand Down Expand Up @@ -217,7 +226,7 @@ def get_version_string():
platforms=['any'],
include_package_data=True,
zip_safe=False,
python_requires='>=3.4,<4',
python_requires='>=3.5,<4',
install_requires=INSTALL_REQUIRES,
dependency_links=DEPENDENCY_LINKS,
extras_require=EXTRAS_REQUIRE,
Expand Down

0 comments on commit 4948a02

Please sign in to comment.