Skip to content

Commit

Permalink
Added support for Python 3.9 and dropped <3.7
Browse files Browse the repository at this point in the history
  • Loading branch information
jeromelebleu committed Jul 5, 2021
1 parent f2761c4 commit 6a1c31c
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/modoboa.yml
Expand Up @@ -55,7 +55,7 @@ jobs:
strategy:
matrix:
database: ['postgres', 'mysql']
python-version: [3.6, 3.7, 3.8]
python-version: [3.7, 3.8, 3.9]
fail-fast: false

steps:
Expand Down
4 changes: 1 addition & 3 deletions requirements.txt
Expand Up @@ -11,9 +11,7 @@ dj-database-url
djangorestframework>=3.11,<3.13
drf-spectacular
uritemplate
# We fix jwt package versions because of python3.6
djangorestframework-simplejwt==4.4.0
pyjwt==1.7.1
djangorestframework-simplejwt==4.7.1
drf-flex-fields

passlib~=1.7.4
Expand Down
5 changes: 2 additions & 3 deletions setup.py
Expand Up @@ -66,10 +66,9 @@ def local_scheme(version):
"License :: OSI Approved :: ISC License (ISCL)",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Topic :: Communications :: Email",
"Topic :: Internet :: WWW/HTTP",
],
Expand All @@ -80,7 +79,7 @@ def local_scheme(version):
scripts=["bin/modoboa-admin.py"],
install_requires=INSTALL_REQUIRES,
use_scm_version={"local_scheme": local_scheme},
python_requires=">=3.4",
python_requires=">=3.7",
setup_requires=["setuptools_scm"],
extras_require={
"ldap": LDAP_REQUIRES,
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
@@ -1,5 +1,5 @@
[tox]
envlist = py{35,36,37}
envlist = py{37,38,39}

[testenv]
changedir = test_project
Expand Down

0 comments on commit 6a1c31c

Please sign in to comment.