Skip to content

Commit

Permalink
[deps] Added support for Django 4.1.0 and 4.2.0
Browse files Browse the repository at this point in the history
- Dropped support for Python 3.7
- Dropped support for Django 4.0
- Bumped cryptography~=41.0.1
- Bumped pyopenssl
  • Loading branch information
pandafy committed Jun 19, 2023
1 parent 58928b7 commit 7618193
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 22 deletions.
22 changes: 9 additions & 13 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,13 @@ jobs:
fail-fast: false
matrix:
python-version:
- 3.7
- 3.8
- 3.9
- "3.8"
- "3.9"
- "3.10"
django-version:
- django~=3.0.0
- django~=3.1.0
- django~=3.2.0
include:
- django-version: django~=4.0a1
python-version: 3.8
experimental: true
- django~=4.1.0
- django~=4.2.0

steps:
- uses: actions/checkout@v2
Expand All @@ -45,12 +41,12 @@ jobs:
- name: Install npm dependencies
run: sudo npm install -g jslint

- name: Install django-x509
run: pip install -e .

- name: Install test dependencies
run: pip install -U -r requirements-test.txt

- name: Install django-x509
run: |
pip install -U -r requirements-test.txt
pip install -U -e .
pip install ${{ matrix.django-version }}
- name: QA Checks
Expand Down
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ Project goals
Dependencies
------------

* Python >= 3.7
* Python >= 3.8
* OpenSSL

Install stable version from pypi
Expand Down
3 changes: 0 additions & 3 deletions django_x509/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,3 @@ def get_version():
if VERSION[3] != 'final':
version = '%s %s' % (version, VERSION[3])
return version


default_app_config = 'django_x509.apps.DjangoX509Config'
8 changes: 5 additions & 3 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
django>=3.0.0,<=4.1.0
# Does not supports Django 4.0.0
django>=3.2.18,!=4.0.*,<4.3
openwisp-utils @ https://github.com/openwisp/openwisp-utils/tarball/master
jsonfield>=3.1.0,<4.0.0
cryptography~=40.0.2
pyopenssl~=23.1.1
cryptography~=41.0.1
# TODO: Update when cryptography 23.3.0 is realsed
pyopenssl @ https://github.com/pyca/pyopenssl/tarball/5134ca1fc2ca29fefea89dcf6bce2a1234c5ca12
1 change: 0 additions & 1 deletion tests/openwisp2/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +0,0 @@
default_app_config = 'openwisp2.sample_x509.apps.SampleX509Config'
5 changes: 4 additions & 1 deletion tests/openwisp2/sample_x509/apps.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,8 @@


class SampleX509Config(DjangoX509Config):
name = 'sample_x509'
name = 'openwisp2.sample_x509'
verbose_name = 'sample_x509'


del DjangoX509Config

0 comments on commit 7618193

Please sign in to comment.