Skip to content

Commit db16421

Browse files
committed
add support for python 3.11
1 parent 5b94f5a commit db16421

File tree

12 files changed

+21
-27
lines changed

12 files changed

+21
-27
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
strategy:
1515
matrix:
1616
os: [ubuntu-latest]
17-
python-version: ["3.11", "3.12"]
17+
python-version: ['3.11', '3.12']
1818
toxenv: [quality, docs, django42]
1919

2020
steps:
@@ -36,7 +36,7 @@ jobs:
3636
run: tox
3737

3838
- name: Run Coverage
39-
if: matrix.python-version == '3.11' && matrix.toxenv=='django42'
39+
if: matrix.python-version == '3.12' && matrix.toxenv=='django42'
4040
uses: codecov/codecov-action@v5
4141
with:
4242
token: ${{ secrets.CODECOV_TOKEN }}

.github/workflows/pypi-publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
- name: setup python
1616
uses: actions/setup-python@v5
1717
with:
18-
python-version: 3.8
18+
python-version: 3.12
1919

2020
- name: Install pip
2121
run: pip install -r requirements/pip.txt

CHANGELOG.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,12 @@ Change Log
1414
Unreleased
1515
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1616

17+
[2.0.0] - 2024-10-18
18+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
19+
20+
* Drop support for python 3.8
21+
* Adds support for python 3.11 & 3.12
22+
1723
[1.8.1] - 2024-07-11
1824
~~~~~~~~~~~~~~~~~~~~
1925

code_annotations/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
Extensible tools for parsing annotations in codebases.
33
"""
44

5-
__version__ = '1.8.2'
5+
__version__ = '2.0.0'

docs/conf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -497,8 +497,8 @@ def get_version(*file_paths):
497497

498498
# Example configuration for intersphinx: refer to the Python standard library.
499499
intersphinx_mapping = {
500-
'python': ('https://docs.python.org/3.6', None),
501-
'django': ('https://docs.djangoproject.com/en/1.11/', 'https://docs.djangoproject.com/en/1.11/_objects/'),
500+
'python': ('https://docs.python.org/3.12', None),
501+
'django': ('https://docs.djangoproject.com/en/4.2/', 'https://docs.djangoproject.com/en/4.2/_objects/'),
502502
'model_utils': ('https://django-model-utils.readthedocs.io/en/latest/', None),
503503
'edx_toggles': ('https://edx.readthedocs.io/projects/edx-toggles/en/latest/', None),
504504
}

requirements/base.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ python-slugify==8.0.4
1616
# via -r requirements/base.in
1717
pyyaml==6.0.2
1818
# via -r requirements/base.in
19-
stevedore==5.3.0
19+
stevedore==5.4.0
2020
# via -r requirements/base.in
2121
text-unidecode==1.3
2222
# via python-slugify

requirements/dev.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ sqlparse==0.5.2
173173
# via
174174
# -r requirements/quality.txt
175175
# django
176-
stevedore==5.3.0
176+
stevedore==5.4.0
177177
# via
178178
# -r requirements/quality.txt
179179
# code-annotations

requirements/doc.txt

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,6 @@ beautifulsoup4==4.12.3
2222
# via pydata-sphinx-theme
2323
certifi==2024.8.30
2424
# via requests
25-
cffi==1.17.1
26-
# via cryptography
2725
charset-normalizer==3.4.0
2826
# via requests
2927
click==8.1.7
@@ -32,8 +30,6 @@ coverage[toml]==7.6.7
3230
# via
3331
# -r requirements/test.txt
3432
# pytest-cov
35-
cryptography==43.0.3
36-
# via secretstorage
3733
django==4.2.16
3834
# via
3935
# -c requirements/common_constraints.txt
@@ -65,10 +61,6 @@ jaraco-context==6.0.1
6561
# via keyring
6662
jaraco-functools==4.1.0
6763
# via keyring
68-
jeepney==0.8.0
69-
# via
70-
# keyring
71-
# secretstorage
7264
jinja2==3.1.4
7365
# via
7466
# -r requirements/test.txt
@@ -106,8 +98,6 @@ pluggy==1.5.0
10698
# via
10799
# -r requirements/test.txt
108100
# pytest
109-
pycparser==2.22
110-
# via cffi
111101
pydata-sphinx-theme==0.16.0
112102
# via sphinx-book-theme
113103
pygments==2.18.0
@@ -143,8 +133,6 @@ rfc3986==2.0.0
143133
# via twine
144134
rich==13.9.4
145135
# via twine
146-
secretstorage==3.3.3
147-
# via keyring
148136
snowballstemmer==2.2.0
149137
# via sphinx
150138
soupsieve==2.6
@@ -172,7 +160,7 @@ sqlparse==0.5.2
172160
# via
173161
# -r requirements/test.txt
174162
# django
175-
stevedore==5.3.0
163+
stevedore==5.4.0
176164
# via
177165
# -r requirements/test.txt
178166
# doc8

requirements/pip.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ wheel==0.45.0
1010
# The following packages are considered to be unsafe in a requirements file:
1111
pip==24.2
1212
# via
13-
# -c /home/runner/work/code-annotations/code-annotations/requirements/common_constraints.txt
13+
# -c requirements/common_constraints.txt
1414
# -r requirements/pip.in
15-
setuptools==75.5.0
15+
setuptools==75.6.0
1616
# via -r requirements/pip.in

requirements/quality.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ sqlparse==0.5.2
108108
# via
109109
# -r requirements/test.txt
110110
# django
111-
stevedore==5.3.0
111+
stevedore==5.4.0
112112
# via
113113
# -r requirements/test.txt
114114
# code-annotations

requirements/test.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ sqlparse==0.5.2
4545
# via
4646
# -r requirements/django.txt
4747
# django
48-
stevedore==5.3.0
48+
stevedore==5.4.0
4949
# via -r requirements/base.txt
5050
text-unidecode==1.3
5151
# via

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,10 +90,11 @@ def is_requirement(line):
9090
},
9191
include_package_data=True,
9292
install_requires=load_requirements('requirements/base.in'),
93-
extras_require={"django": ["Django>=2.2,<2.3"]},
93+
extras_require={"django": ["Django>=4.2"]},
9494
license="Apache Software License 2.0",
9595
zip_safe=False,
9696
keywords='edx pii code annotations',
97+
python_requires=">=3.11",
9798
classifiers=[
9899
'Development Status :: 3 - Alpha',
99100
'Framework :: Django',
@@ -103,7 +104,6 @@ def is_requirement(line):
103104
'Natural Language :: English',
104105
'Programming Language :: Python',
105106
'Programming Language :: Python :: 3',
106-
'Programming Language :: Python :: 3.8',
107107
'Programming Language :: Python :: 3.11',
108108
'Programming Language :: Python :: 3.12',
109109
],

0 commit comments

Comments
 (0)