Skip to content

Commit

Permalink
v3.1.1.post1 added minimum Django>=2.2 version
Browse files Browse the repository at this point in the history
  • Loading branch information
trbs committed Apr 5, 2021
1 parent 4ccff1d commit 2c08a51
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
@@ -1,6 +1,13 @@
Changelog
=========

3.1.1.post1
-----------

Changes:
- Added minimum Django>=2.2 version to PyPI package


3.1.1
-----

Expand Down
6 changes: 4 additions & 2 deletions django_extensions/__init__.py
@@ -1,11 +1,13 @@
# -*- coding: utf-8 -*-
VERSION = (3, 1, 1)
VERSION = (3, 1, 1, 'post1')


def get_version(version):
"""Dynamically calculate the version based on VERSION tuple."""
if len(version) > 2 and version[2] is not None:
if isinstance(version[2], int):
if len(version) == 4:
str_version = "%s.%s.%s.%s" % version
elif isinstance(version[2], int):
str_version = "%s.%s.%s" % version[:3]
else:
str_version = "%s.%s_%s" % version[:3]
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Expand Up @@ -107,7 +107,7 @@ def fullsplit(path, result=None):
cmdclass=cmdclasses,
package_data=package_data,
python_requires=">=3.6",
install_requires=[],
install_requires=["Django>=2.2"],
extras_require={},
classifiers=[
'Development Status :: 5 - Production/Stable',
Expand Down

0 comments on commit 2c08a51

Please sign in to comment.