Skip to content

Commit

Permalink
[deps] Upgraded Django 4.1.0 and 4.2.0
Browse files Browse the repository at this point in the history
- Dropped support for Django 4.0.0
- Dropped support for Python 3.7
  • Loading branch information
pandafy committed Jun 15, 2023
1 parent e363f0b commit 3964ea0
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ jobs:
- name: Install openwisp-network-topology
run: |
pip install -e .
pip install -U -e .
pip install ${{ matrix.django-version }}
- name: QA checks
Expand Down
9 changes: 1 addition & 8 deletions openwisp_network_topology/integrations/device/base/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,14 +109,7 @@ def auto_create_wireguard(cls, node):
ip_addresses = []
for ip in allowed_ips:
try:
network = ip_network(ip)
if network.prefixlen == network._max_prefixlen:
# In python 3.7, hosts method is not returning any ip
# if subnet mask is 32, resolved in future python releases
# https://bugs.python.org/issue28577
ip_addresses.append(str(network.network_address))
else:
ip_addresses.extend([str(host) for host in ip_network(ip).hosts()])
ip_addresses.extend([str(host) for host in ip_network(ip).hosts()])
except ValueError:
# invalid IP address
continue
Expand Down
4 changes: 2 additions & 2 deletions requirements-test.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
responses~=0.16.0
pytest-asyncio~=0.14.0
responses~=0.23.1
pytest-asyncio~=0.21.0
pytest-django~=4.5.2
freezegun~=1.1.0
# Needed to test integrations
Expand Down
1 change: 0 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
django>=3.0,<4.1
openwisp-users @ https://github.com/openwisp/openwisp-users/tarball/master
netdiff @ https://github.com/openwisp/netdiff/tarball/master
jsonfield~=3.1.0
Expand Down

0 comments on commit 3964ea0

Please sign in to comment.