Skip to content

Commit

Permalink
feat: add support for python 3.12
Browse files Browse the repository at this point in the history
  • Loading branch information
irtazaakram committed Feb 20, 2024
1 parent 070304c commit f1127f4
Show file tree
Hide file tree
Showing 16 changed files with 206 additions and 186 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,11 @@ jobs:
tests:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-20.04]
python-version: ['3.8']
toxenv: [quality, django32, django42]
python-version: ['3.8', '3.12']
toxenv: [quality, django42]
exclude:
- python-version: '3.8'
toxenv: quality
Expand Down
2 changes: 1 addition & 1 deletion django_sites_extensions/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
""" django_sites_extensions main module """
__version__ = '4.0.2'
__version__ = '4.1.0'
1 change: 0 additions & 1 deletion django_sites_extensions/apps.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ class DjangoSitesExtensionsConfig(AppConfig):
# noinspection PyUnresolvedReferences
def ready(self):
""" Set up for django_sites_extensions app """
# pylint: disable=unused-variable
# pylint: disable=unused-import
# pylint: disable=import-outside-toplevel
from django_sites_extensions import models
Expand Down
2 changes: 1 addition & 1 deletion django_sites_extensions/tests/test_middleware.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class RedirectMiddlewareTestCase(TestCase):
def setUp(self):
super().setUp()
self.middleware = RedirectMiddleware(get_response=lambda request: None)
self.site = Site.objects.get(id=1) # pylint: disable=no-member
self.site = Site.objects.get(id=1)
self.redirect = Redirect.objects.create(site_id=1, old_path='/foo', new_path='http://example.com/bar')

def _make_request(self, path):
Expand Down
2 changes: 1 addition & 1 deletion django_sites_extensions/tests/urls.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
""" ROOT_URLCONF for tests """

from django_sites_extensions.tests import views
from django.urls import path

from django_sites_extensions.tests import views

urlpatterns = [
path('home', views.test, name='home'),
Expand Down
4 changes: 2 additions & 2 deletions django_sites_extensions/tests/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
from django.http import HttpResponse


def test(request): # pylint: disable=unused-argument
def test(request):
""" Placeholder test view """
return HttpResponse("ok")


def login(request): # pylint: disable=unused-argument
def login(request):
""" Placeholder test view """
return HttpResponse("login require")
14 changes: 8 additions & 6 deletions requirements/base.txt
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@
#
# This file is autogenerated by pip-compile with python 3.8
# To update, run:
# This file is autogenerated by pip-compile with Python 3.8
# by the following command:
#
# make upgrade
#
asgiref==3.5.0
asgiref==3.7.2
# via django
django==3.2.12
django==3.2.24
# via
# -c https://raw.githubusercontent.com/edx/edx-lint/master/edx_lint/files/common_constraints.txt
# -r requirements/base.in
pytz==2021.3
pytz==2024.1
# via django
sqlparse==0.4.2
sqlparse==0.4.4
# via django
typing-extensions==4.9.0
# via asgiref
52 changes: 23 additions & 29 deletions requirements/ci.txt
Original file line number Diff line number Diff line change
@@ -1,62 +1,56 @@
#
# This file is autogenerated by pip-compile with python 3.8
# To update, run:
# This file is autogenerated by pip-compile with Python 3.8
# by the following command:
#
# make upgrade
#
certifi==2021.10.8
# via requests
charset-normalizer==2.0.12
# via requests
coverage==6.3.1
# via codecov
distlib==0.3.4
cachetools==5.3.2
# via
# -r requirements/tox.txt
# virtualenv
filelock==3.5.0
# tox
chardet==5.2.0
# via
# -r requirements/tox.txt
# tox
# virtualenv
idna==3.3
# via requests
packaging==21.3
colorama==0.4.6
# via
# -r requirements/tox.txt
# tox
platformdirs==2.5.0
distlib==0.3.8
# via
# -r requirements/tox.txt
# virtualenv
filelock==3.13.1
# via
# -r requirements/tox.txt
# tox
# virtualenv
pluggy==1.0.0
packaging==23.2
# via
# -r requirements/tox.txt
# pyproject-api
# tox
py==1.11.0
platformdirs==4.2.0
# via
# -r requirements/tox.txt
# tox
pyparsing==3.0.7
# virtualenv
pluggy==1.4.0
# via
# -r requirements/tox.txt
# packaging
requests==2.27.1
# via codecov
six==1.16.0
# tox
pyproject-api==1.6.1
# via
# -r requirements/tox.txt
# tox
# virtualenv
toml==0.10.2
tomli==2.0.1
# via
# -r requirements/tox.txt
# pyproject-api
# tox
tox==3.24.5
tox==4.13.0
# via -r requirements/tox.txt
urllib3==1.26.8
# via requests
virtualenv==20.13.1
virtualenv==20.25.0
# via
# -r requirements/tox.txt
# tox
4 changes: 2 additions & 2 deletions requirements/django.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
django==3.2.12
asgiref==3.5.0
django==3.2.24
asgiref==3.7.2
57 changes: 30 additions & 27 deletions requirements/doc.txt
Original file line number Diff line number Diff line change
@@ -1,72 +1,75 @@
#
# This file is autogenerated by pip-compile with python 3.8
# To update, run:
# This file is autogenerated by pip-compile with Python 3.8
# by the following command:
#
# make upgrade
#
alabaster==0.7.12
alabaster==0.7.13
# via sphinx
asgiref==3.5.0
asgiref==3.7.2
# via django
babel==2.9.1
babel==2.14.0
# via sphinx
certifi==2021.10.8
certifi==2024.2.2
# via requests
charset-normalizer==2.0.12
charset-normalizer==3.3.2
# via requests
django==3.2.12
django==3.2.24
# via
# -c https://raw.githubusercontent.com/edx/edx-lint/master/edx_lint/files/common_constraints.txt
# -r requirements/base.in
docutils==0.17.1
docutils==0.20.1
# via
# sphinx
# sphinx-rtd-theme
idna==3.3
idna==3.6
# via requests
imagesize==1.3.0
imagesize==1.4.1
# via sphinx
importlib-metadata==4.11.1
importlib-metadata==7.0.1
# via sphinx
jinja2==3.0.3
jinja2==3.1.3
# via sphinx
markupsafe==2.0.1
markupsafe==2.1.5
# via jinja2
packaging==21.3
packaging==23.2
# via sphinx
pygments==2.11.2
pygments==2.17.2
# via sphinx
pyparsing==3.0.7
# via packaging
pytz==2021.3
pytz==2024.1
# via
# babel
# django
requests==2.27.1
requests==2.31.0
# via sphinx
snowballstemmer==2.2.0
# via sphinx
sphinx==4.4.0
sphinx==7.1.2
# via
# -r requirements/doc.in
# sphinx-rtd-theme
sphinx-rtd-theme==1.0.0
# sphinxcontrib-jquery
sphinx-rtd-theme==2.0.0
# via -r requirements/doc.in
sphinxcontrib-applehelp==1.0.2
sphinxcontrib-applehelp==1.0.4
# via sphinx
sphinxcontrib-devhelp==1.0.2
# via sphinx
sphinxcontrib-htmlhelp==2.0.0
sphinxcontrib-htmlhelp==2.0.1
# via sphinx
sphinxcontrib-jquery==4.1
# via sphinx-rtd-theme
sphinxcontrib-jsmath==1.0.1
# via sphinx
sphinxcontrib-qthelp==1.0.3
# via sphinx
sphinxcontrib-serializinghtml==1.1.5
# via sphinx
sqlparse==0.4.2
sqlparse==0.4.4
# via django
urllib3==1.26.8
typing-extensions==4.9.0
# via asgiref
urllib3==2.2.1
# via requests
zipp==3.7.0
zipp==3.17.0
# via importlib-metadata
14 changes: 6 additions & 8 deletions requirements/pip.txt
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
#
# This file is autogenerated by pip-compile with python 3.8
# To update, run:
# This file is autogenerated by pip-compile with Python 3.8
# by the following command:
#
# make upgrade
#
wheel==0.37.1
wheel==0.42.0
# via -r requirements/pip.in

# The following packages are considered to be unsafe in a requirements file:
pip==22.0.3
pip==24.0
# via -r requirements/pip.in
setuptools==69.1.0
# via -r requirements/pip.in
setuptools==59.8.0
# via
# -c https://raw.githubusercontent.com/edx/edx-lint/master/edx_lint/files/common_constraints.txt
# -r requirements/pip.in
27 changes: 20 additions & 7 deletions requirements/pip_tools.txt
Original file line number Diff line number Diff line change
@@ -1,19 +1,32 @@
#
# This file is autogenerated by pip-compile with python 3.8
# To update, run:
# This file is autogenerated by pip-compile with Python 3.8
# by the following command:
#
# make upgrade
#
click==8.0.3
build==1.0.3
# via pip-tools
pep517==0.12.0
click==8.1.7
# via pip-tools
pip-tools==6.5.1
importlib-metadata==7.0.1
# via build
packaging==23.2
# via build
pip-tools==7.4.0
# via -r requirements/pip_tools.in
pyproject-hooks==1.0.0
# via
# build
# pip-tools
tomli==2.0.1
# via pep517
wheel==0.37.1
# via
# build
# pip-tools
# pyproject-hooks
wheel==0.42.0
# via pip-tools
zipp==3.17.0
# via importlib-metadata

# The following packages are considered to be unsafe in a requirements file:
# pip
Expand Down
Loading

0 comments on commit f1127f4

Please sign in to comment.