Skip to content

Commit

Permalink
add support for python 3.11
Browse files Browse the repository at this point in the history
  • Loading branch information
arbimaq committed Oct 18, 2024
1 parent c456911 commit 12c2dff
Show file tree
Hide file tree
Showing 17 changed files with 152 additions and 266 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest]
python-version: ['3.8', '3.11', '3.12']
python-version: ['3.11', '3.12']
toxenv: [quality, docs, django42]

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: setup python
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

Expand All @@ -36,7 +36,7 @@ jobs:
run: tox

- name: Run Coverage
if: matrix.python-version == '3.8' && matrix.toxenv=='django42'
if: matrix.python-version == '3.12' && matrix.toxenv=='django42'
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/pypi-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: setup python
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: 3.8
python-version: 3.12

- name: Install pip
run: pip install -r requirements/pip.txt
Expand Down
2 changes: 1 addition & 1 deletion .readthedocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ sphinx:
build:
os: ubuntu-22.04
tools:
python: "3.8"
python: "3.12"

python:
install:
Expand Down
11 changes: 6 additions & 5 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,14 @@ Change Log

.. There should always be an "Unreleased" section for changes pending release.
Unreleased
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[1.9.0] - 2024-10-18
************************************************

[1.8.0] - 2024-03-31
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Unreleased
=======

* Added python3.11 and 3.12 support. Dropped django32 support.
* Drop support for python 3.8
* Adds support for python 3.11 & 3.12


[1.6.0] - 2024-01-31
Expand Down
2 changes: 1 addition & 1 deletion code_annotations/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
Extensible tools for parsing annotations in codebases.
"""

__version__ = '1.8.0'
__version__ = '1.9.0'
4 changes: 2 additions & 2 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -497,8 +497,8 @@ def get_version(*file_paths):

# Example configuration for intersphinx: refer to the Python standard library.
intersphinx_mapping = {
'python': ('https://docs.python.org/3.6', None),
'django': ('https://docs.djangoproject.com/en/1.11/', 'https://docs.djangoproject.com/en/1.11/_objects/'),
'python': ('https://docs.python.org/3.12', None),
'django': ('https://docs.djangoproject.com/en/4.2/', 'https://docs.djangoproject.com/en/4.2/_objects/'),
'model_utils': ('https://django-model-utils.readthedocs.io/en/latest/', None),
'edx_toggles': ('https://edx.readthedocs.io/projects/edx-toggles/en/latest/', None),
}
Expand Down
12 changes: 6 additions & 6 deletions requirements/base.txt
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
#
# This file is autogenerated by pip-compile with Python 3.8
# This file is autogenerated by pip-compile with Python 3.11
# by the following command:
#
# make upgrade
#
click==8.1.7
# via -r requirements/base.in
jinja2==3.1.3
jinja2==3.1.4
# via -r requirements/base.in
markupsafe==2.1.5
markupsafe==3.0.1
# via jinja2
pbr==6.0.0
pbr==6.1.0
# via stevedore
python-slugify==8.0.4
# via -r requirements/base.in
pyyaml==6.0.1
pyyaml==6.0.2
# via -r requirements/base.in
stevedore==5.2.0
stevedore==5.3.0
# via -r requirements/base.in
text-unidecode==1.3
# via python-slugify
16 changes: 7 additions & 9 deletions requirements/ci.txt
Original file line number Diff line number Diff line change
@@ -1,30 +1,28 @@
#
# This file is autogenerated by pip-compile with Python 3.8
# This file is autogenerated by pip-compile with Python 3.11
# by the following command:
#
# make upgrade
#
distlib==0.3.8
distlib==0.3.9
# via virtualenv
filelock==3.13.3
filelock==3.16.1
# via
# tox
# virtualenv
packaging==24.0
packaging==24.1
# via tox
platformdirs==4.2.0
platformdirs==4.3.6
# via virtualenv
pluggy==1.4.0
pluggy==1.5.0
# via tox
py==1.11.0
# via tox
six==1.16.0
# via tox
tomli==2.0.1
# via tox
tox==3.28.0
# via
# -c requirements/constraints.txt
# -r requirements/ci.in
virtualenv==20.25.1
virtualenv==20.27.0
# via tox
94 changes: 29 additions & 65 deletions requirements/dev.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# This file is autogenerated by pip-compile with Python 3.8
# This file is autogenerated by pip-compile with Python 3.11
# by the following command:
#
# make upgrade
Expand All @@ -8,17 +8,12 @@ asgiref==3.8.1
# via
# -r requirements/quality.txt
# django
astroid==3.1.0
astroid==3.3.5
# via
# -r requirements/quality.txt
# pylint
# pylint-celery
backports-zoneinfo==0.2.1 ; python_version < "3.9"
# via
# -c requirements/constraints.txt
# -r requirements/quality.txt
# django
build==1.2.1
build==1.2.2.post1
# via
# -r requirements/pip-tools.txt
# pip-tools
Expand All @@ -36,44 +31,35 @@ click-log==0.4.0
# via
# -r requirements/quality.txt
# edx-lint
code-annotations==1.7.0
code-annotations==1.8.0
# via
# -r requirements/quality.txt
# edx-lint
coverage[toml]==7.4.4
coverage[toml]==7.6.3
# via
# -r requirements/quality.txt
# pytest-cov
diff-cover==8.0.3
diff-cover==9.2.0
# via -r requirements/dev.in
dill==0.3.8
dill==0.3.9
# via
# -r requirements/quality.txt
# pylint
distlib==0.3.8
distlib==0.3.9
# via
# -r requirements/ci.txt
# virtualenv
django==4.2.11
django==4.2.16
# via
# -c requirements/common_constraints.txt
# -r requirements/quality.txt
edx-lint==5.3.6
edx-lint==5.4.0
# via -r requirements/quality.txt
exceptiongroup==1.2.0
# via
# -r requirements/quality.txt
# pytest
filelock==3.13.3
filelock==3.16.1
# via
# -r requirements/ci.txt
# tox
# virtualenv
importlib-metadata==6.11.0
# via
# -c requirements/common_constraints.txt
# -r requirements/pip-tools.txt
# build
iniconfig==2.0.0
# via
# -r requirements/quality.txt
Expand All @@ -82,12 +68,12 @@ isort==5.13.2
# via
# -r requirements/quality.txt
# pylint
jinja2==3.1.3
jinja2==3.1.4
# via
# -r requirements/quality.txt
# code-annotations
# diff-cover
markupsafe==2.1.5
markupsafe==3.0.1
# via
# -r requirements/quality.txt
# jinja2
Expand All @@ -97,27 +83,27 @@ mccabe==0.7.0
# pylint
mock==5.1.0
# via -r requirements/quality.txt
packaging==24.0
packaging==24.1
# via
# -r requirements/ci.txt
# -r requirements/pip-tools.txt
# -r requirements/quality.txt
# build
# pytest
# tox
pbr==6.0.0
pbr==6.1.0
# via
# -r requirements/quality.txt
# stevedore
pip-tools==7.4.1
# via -r requirements/pip-tools.txt
platformdirs==4.2.0
platformdirs==4.3.6
# via
# -r requirements/ci.txt
# -r requirements/quality.txt
# pylint
# virtualenv
pluggy==1.4.0
pluggy==1.5.0
# via
# -r requirements/ci.txt
# -r requirements/quality.txt
Expand All @@ -128,13 +114,13 @@ py==1.11.0
# via
# -r requirements/ci.txt
# tox
pycodestyle==2.11.1
pycodestyle==2.12.1
# via -r requirements/quality.txt
pydocstyle==6.3.0
# via -r requirements/quality.txt
pygments==2.17.2
pygments==2.18.0
# via diff-cover
pylint==3.1.0
pylint==3.3.1
# via
# -r requirements/quality.txt
# edx-lint
Expand All @@ -145,7 +131,7 @@ pylint-celery==0.3
# via
# -r requirements/quality.txt
# edx-lint
pylint-django==2.5.5
pylint-django==2.6.1
# via
# -r requirements/quality.txt
# edx-lint
Expand All @@ -154,12 +140,12 @@ pylint-plugin-utils==0.8.2
# -r requirements/quality.txt
# pylint-celery
# pylint-django
pyproject-hooks==1.0.0
pyproject-hooks==1.2.0
# via
# -r requirements/pip-tools.txt
# build
# pip-tools
pytest==8.1.1
pytest==8.3.3
# via
# -r requirements/quality.txt
# pytest-cov
Expand All @@ -169,7 +155,7 @@ python-slugify==8.0.4
# via
# -r requirements/quality.txt
# code-annotations
pyyaml==6.0.1
pyyaml==6.0.2
# via
# -r requirements/quality.txt
# code-annotations
Expand All @@ -183,56 +169,34 @@ snowballstemmer==2.2.0
# via
# -r requirements/quality.txt
# pydocstyle
sqlparse==0.4.4
sqlparse==0.5.1
# via
# -r requirements/quality.txt
# django
stevedore==5.2.0
stevedore==5.3.0
# via
# -r requirements/quality.txt
# code-annotations
text-unidecode==1.3
# via
# -r requirements/quality.txt
# python-slugify
tomli==2.0.1
# via
# -r requirements/ci.txt
# -r requirements/pip-tools.txt
# -r requirements/quality.txt
# build
# coverage
# pip-tools
# pylint
# pyproject-hooks
# pytest
# tox
tomlkit==0.12.4
tomlkit==0.13.2
# via
# -r requirements/quality.txt
# pylint
tox==3.28.0
# via
# -c requirements/constraints.txt
# -r requirements/ci.txt
typing-extensions==4.10.0
# via
# -r requirements/quality.txt
# asgiref
# astroid
# pylint
virtualenv==20.25.1
virtualenv==20.27.0
# via
# -r requirements/ci.txt
# tox
wheel==0.43.0
wheel==0.44.0
# via
# -r requirements/pip-tools.txt
# pip-tools
zipp==3.18.1
# via
# -r requirements/pip-tools.txt
# importlib-metadata

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

0 comments on commit 12c2dff

Please sign in to comment.