Skip to content

Commit

Permalink
fix: Django 4 compatibility + upgrade version
Browse files Browse the repository at this point in the history
  • Loading branch information
francesco-filicetti committed Sep 7, 2023
1 parent d6fbb52 commit 0ffba4d
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 41 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/python-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,13 @@ jobs:
fail-fast: false
matrix:
python-version:
- '3.7'
- '3.8'
- '3.9'
- '3.10'
- '3.11'
django-version:
- '3.0'
- '3.1'
- '3.2'
- 'master'
- '4.0'

steps:
- uses: actions/checkout@v2
Expand All @@ -38,7 +37,6 @@ jobs:
python -m pip install --upgrade pip
if [ -f requirements-dev.txt ]; then pip install -r requirements-dev.txt; fi
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
# python -m pip install --upgrade tox tox-gh-actions
- name: Lint with flake8
run: |
# stop the build if there are Python syntax errors or undefined names
Expand Down
2 changes: 1 addition & 1 deletion django_form_builder/models.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import json

from django.db import models
from django.utils.translation import ugettext_lazy as _
from django.utils.translation import gettext_lazy as _

from . dynamic_fields import get_fields_types
from . forms import BaseDynamicForm
Expand Down
2 changes: 1 addition & 1 deletion django_form_builder/settings.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from django.utils.translation import ugettext_lazy as _
from django.utils.translation import gettext_lazy as _


CLASSIFICATION_LIST = (('protocollo', _('Protocollo')),
Expand Down
4 changes: 2 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
django>=2.0,<4.0
django<=3.0,<5.0
filesig>=0.3
captcha==0.3
captcha>=0.3
cryptography>=2.8
8 changes: 4 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

setup(
name='django-form-builder',
version='0.16.14',
version='0.17.0',
packages=find_packages(),
package_data={'': ['*.wav']},
data_files=[
Expand All @@ -31,8 +31,8 @@
classifiers=[
'Environment :: Web Environment',
'Framework :: Django',
'Framework :: Django :: 2.0',
'Framework :: Django :: 3.0',
'Framework :: Django :: 4.0',
'Intended Audience :: Developers',
"License :: OSI Approved :: Apache Software License",
'Operating System :: OS Independent',
Expand All @@ -41,9 +41,9 @@
],
install_requires=[
'wheel',
'django>=2.0,<4.0',
'django>=3.0,<5.0',
'filesig>=0.3',
'cryptography>=2.8',
'captcha==0.3'
'captcha>=0.3'
],
)
28 changes: 0 additions & 28 deletions tox.ini

This file was deleted.

0 comments on commit 0ffba4d

Please sign in to comment.