Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for python 3.12 #159

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,10 @@ jobs:
name: Tests
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-20.04]
python-version: ['3.8', '3.11']
python-version: ['3.8', '3.11', '3.12']
toxenv: [quality, docs, pii_check, django42-celery53]

steps:
Expand Down
4 changes: 3 additions & 1 deletion CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,10 @@ Change Log

.. There should always be an "Unreleased" section for changes pending release.

Unreleased
[1.1.1] -
~~~~~~~~~~~~~~~~~~~~

* Added support for python 3.12.

[1.1.0] - 2024-03-22
~~~~~~~~~~~~~~~~~~~~
Expand Down
2 changes: 1 addition & 1 deletion bulk_grades/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
Support for bulk scoring and grading.
"""

__version__ = '1.1.0'
__version__ = '1.1.1'

default_app_config = 'bulk_grades.apps.BulkGradesConfig' # pylint: disable=invalid-name
3 changes: 2 additions & 1 deletion bulk_grades/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,8 @@ def get(self, request, course_id, *args, **kwargs):
filename = self.get_export_filename(course_id)

response = StreamingHttpResponse(iterator, content_type='text/csv')
response['Content-Disposition'] = f'attachment; filename="{filename}"'
response_content = 'attachment;'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any reference for this change ?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This statement was raising pylint error Multiple statements on one line (semicolon) (E702)

response['Content-Disposition'] = f'{response_content} filename="{filename}"'

log.info('Exporting %s CSV for %s', course_id, self.__class__)
return response
Expand Down
20 changes: 10 additions & 10 deletions requirements/base.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#
amqp==5.2.0
# via kombu
asgiref==3.8.0
asgiref==3.8.1
# via django
backports-zoneinfo[tzdata]==0.2.1 ; python_version < "3.9"
# via
Expand Down Expand Up @@ -34,7 +34,7 @@ click==8.1.7
# click-plugins
# click-repl
# edx-django-utils
click-didyoumean==0.3.0
click-didyoumean==0.3.1
# via celery
click-plugins==1.1.1
# via celery
Expand All @@ -56,36 +56,36 @@ django-crum==0.7.9
# via
# edx-django-utils
# super-csv
django-model-utils==4.4.0
django-model-utils==4.5.0
# via
# -r requirements/base.in
# edx-celeryutils
# super-csv
django-waffle==4.1.0
# via edx-django-utils
djangorestframework==3.15.0
djangorestframework==3.15.1
# via super-csv
edx-celeryutils==1.2.5
edx-celeryutils==1.3.0
# via super-csv
edx-django-utils==5.11.0
edx-django-utils==5.12.0
# via super-csv
edx-opaque-keys==2.5.1
# via -r requirements/base.in
idna==3.6
# via requests
jsonfield==3.1.0
# via edx-celeryutils
kombu==5.3.5
kombu==5.3.6
# via celery
newrelic==9.7.1
newrelic==9.8.0
# via edx-django-utils
pbr==6.0.0
# via stevedore
prompt-toolkit==3.0.43
# via click-repl
psutil==5.9.8
# via edx-django-utils
pycparser==2.21
pycparser==2.22
# via cffi
pymongo==3.13.0
# via edx-opaque-keys
Expand All @@ -111,7 +111,7 @@ stevedore==5.2.0
# edx-opaque-keys
super-csv==3.1.0
# via -r requirements/base.in
typing-extensions==4.10.0
typing-extensions==4.11.0
# via
# asgiref
# edx-opaque-keys
Expand Down
4 changes: 2 additions & 2 deletions requirements/celery53.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ amqp==5.2.0
billiard==4.2.0
celery==5.3.6
click==8.1.7
click-didyoumean==0.3.0
click-didyoumean==0.3.1
click-repl==0.3.0
kombu==5.3.5
kombu==5.3.6
prompt-toolkit==3.0.43
vine==5.1.0
4 changes: 2 additions & 2 deletions requirements/ci.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ coverage==7.4.4
# via -r requirements/ci.in
distlib==0.3.8
# via virtualenv
filelock==3.13.1
filelock==3.13.3
# via
# tox
# virtualenv
Expand All @@ -34,7 +34,7 @@ tomli==2.0.1
# via
# pyproject-api
# tox
tox==4.14.1
tox==4.14.2
# via -r requirements/ci.in
virtualenv==20.25.1
# via tox
34 changes: 17 additions & 17 deletions requirements/dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ amqp==5.2.0
# via
# -r requirements/quality.txt
# kombu
asgiref==3.8.0
asgiref==3.8.1
# via
# -r requirements/quality.txt
# django
Expand All @@ -29,7 +29,7 @@ billiard==4.2.0
# via
# -r requirements/quality.txt
# celery
build==1.1.1
build==1.2.1
# via
# -r requirements/pip-tools.txt
# pip-tools
Expand Down Expand Up @@ -72,7 +72,7 @@ click==8.1.7
# edx-django-utils
# edx-lint
# pip-tools
click-didyoumean==0.3.0
click-didyoumean==0.3.1
# via
# -r requirements/quality.txt
# celery
Expand All @@ -88,7 +88,7 @@ click-repl==0.3.0
# via
# -r requirements/quality.txt
# celery
code-annotations==1.7.0
code-annotations==1.8.0
# via
# -r requirements/quality.txt
# edx-lint
Expand Down Expand Up @@ -131,7 +131,7 @@ django-crum==0.7.9
# -r requirements/quality.txt
# edx-django-utils
# super-csv
django-model-utils==4.4.0
django-model-utils==4.5.0
# via
# -r requirements/quality.txt
# edx-celeryutils
Expand All @@ -140,15 +140,15 @@ django-waffle==4.1.0
# via
# -r requirements/quality.txt
# edx-django-utils
djangorestframework==3.15.0
djangorestframework==3.15.1
# via
# -r requirements/quality.txt
# super-csv
edx-celeryutils==1.2.5
edx-celeryutils==1.3.0
# via
# -r requirements/quality.txt
# super-csv
edx-django-utils==5.11.0
edx-django-utils==5.12.0
# via
# -r requirements/quality.txt
# super-csv
Expand All @@ -162,7 +162,7 @@ exceptiongroup==1.2.0
# via
# -r requirements/quality.txt
# pytest
filelock==3.13.1
filelock==3.13.3
# via
# -r requirements/ci.txt
# tox
Expand Down Expand Up @@ -193,11 +193,11 @@ jsonfield==3.1.0
# via
# -r requirements/quality.txt
# edx-celeryutils
kombu==5.3.5
kombu==5.3.6
# via
# -r requirements/quality.txt
# celery
lxml==5.1.0
lxml==5.2.1
# via edx-i18n-tools
markupsafe==2.1.5
# via
Expand All @@ -209,7 +209,7 @@ mccabe==0.7.0
# pylint
mock==5.1.0
# via -r requirements/quality.txt
newrelic==9.7.1
newrelic==9.8.0
# via
# -r requirements/quality.txt
# edx-django-utils
Expand All @@ -222,7 +222,7 @@ packaging==24.0
# pyproject-api
# pytest
# tox
path==16.10.0
path==16.13.0
# via edx-i18n-tools
pbr==6.0.0
# via
Expand Down Expand Up @@ -256,7 +256,7 @@ psutil==5.9.8
# edx-django-utils
pycodestyle==2.11.1
# via -r requirements/quality.txt
pycparser==2.21
pycparser==2.22
# via
# -r requirements/quality.txt
# cffi
Expand Down Expand Up @@ -306,7 +306,7 @@ pytest==8.1.1
# -r requirements/quality.txt
# pytest-cov
# pytest-django
pytest-cov==4.1.0
pytest-cov==5.0.0
# via -r requirements/quality.txt
pytest-django==4.8.0
# via -r requirements/quality.txt
Expand Down Expand Up @@ -375,9 +375,9 @@ tomlkit==0.12.4
# via
# -r requirements/quality.txt
# pylint
tox==4.14.1
tox==4.14.2
# via -r requirements/ci.txt
typing-extensions==4.10.0
typing-extensions==4.11.0
# via
# -r requirements/quality.txt
# asgiref
Expand Down
Loading
Loading