Skip to content

Commit

Permalink
Use Python 3.10 for CI
Browse files Browse the repository at this point in the history
  • Loading branch information
apragacz committed Jul 29, 2023
1 parent fe6f6bf commit d957123
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 27 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ orbs:
executors:
docker-executor:
docker:
- image: apragacz/cimg-python:3.8
- image: cimg/python:3.10
auth:
username: $DOCKERHUB_USERNAME
password: $DOCKERHUB_PASSWORD
Expand Down
6 changes: 2 additions & 4 deletions requirements/requirements-base.lock.txt
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
#
# This file is autogenerated by pip-compile with Python 3.8
# This file is autogenerated by pip-compile with Python 3.10
# by the following command:
#
# pip-compile --output-file=requirements/requirements-base.lock.txt --resolver=backtracking
# pip-compile --output-file=requirements/requirements-base.lock.txt
#
asgiref==3.7.2
# via django
backports-zoneinfo==0.2.1
# via django
django==4.2.3
# via
# django-rest-registration (setup.py)
Expand Down
22 changes: 4 additions & 18 deletions requirements/requirements-dev.lock.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#
# This file is autogenerated by pip-compile with Python 3.8
# This file is autogenerated by pip-compile with Python 3.10
# by the following command:
#
# pip-compile --output-file=requirements/requirements-dev.lock.txt --resolver=backtracking requirements/requirements-dev.in requirements/requirements-test.lock.txt
# pip-compile --config=pyproject.toml --output-file=requirements/requirements-dev.lock.txt requirements/requirements-dev.in requirements/requirements-test.lock.txt
#
alabaster==0.7.13
# via
Expand All @@ -26,10 +26,6 @@ babel==2.12.1
# sphinx
backcall==0.2.0
# via ipython
backports-zoneinfo==0.2.1
# via
# -r requirements/requirements-test.lock.txt
# django
bleach==6.0.0
# via
# -r requirements/requirements-test.lock.txt
Expand Down Expand Up @@ -166,19 +162,14 @@ importlib-metadata==6.8.0
# via
# -r requirements/requirements-test.lock.txt
# keyring
# sphinx
# twine
importlib-resources==6.0.0
# via
# -r requirements/requirements-test.lock.txt
# keyring
iniconfig==2.0.0
# via
# -r requirements/requirements-test.lock.txt
# pytest
ipdb==0.13.13
# via -r requirements/requirements-dev.in
ipython==8.12.2
ipython==8.14.0
# via
# -r requirements/requirements-dev.in
# ipdb
Expand Down Expand Up @@ -312,7 +303,7 @@ pygments==2.15.1
# readme-renderer
# rich
# sphinx
pylint==2.17.4
pylint==2.17.5
# via -r requirements/requirements-test.lock.txt
pyproject-api==1.5.3
# via
Expand All @@ -334,7 +325,6 @@ pytest-django==4.5.2
pytz==2023.3
# via
# -r requirements/requirements-test.lock.txt
# babel
# djangorestframework
readme-renderer[md]==40.0
# via
Expand Down Expand Up @@ -482,10 +472,7 @@ typing-extensions==4.7.1
# django-stubs
# django-stubs-ext
# djangorestframework-stubs
# ipython
# mypy
# pylint
# rich
uritemplate==4.1.1
# via
# -r requirements/requirements-test.lock.txt
Expand Down Expand Up @@ -517,7 +504,6 @@ zipp==3.16.2
# via
# -r requirements/requirements-test.lock.txt
# importlib-metadata
# importlib-resources

# The following packages are considered to be unsafe in a requirements file:
# pip
Expand Down
11 changes: 7 additions & 4 deletions requirements/requirements-test.lock.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#
# This file is autogenerated by pip-compile with Python 3.8
# This file is autogenerated by pip-compile with Python 3.10
# by the following command:
#
# pip-compile --output-file=requirements/requirements-test.lock.txt --resolver=backtracking requirements/requirements-base.lock.txt requirements/requirements-test.in
# pip-compile --config=pyproject.toml --output-file=requirements/requirements-test.lock.txt requirements/requirements-base.lock.txt requirements/requirements-test.in
#
alabaster==0.7.13
# via sphinx
Expand Down Expand Up @@ -190,7 +190,7 @@ pygments==2.15.1
# readme-renderer
# rich
# sphinx
pylint==2.17.4
pylint==2.17.5
# via -r requirements/requirements-test.in
pyproject-api==1.5.3
# via tox
Expand All @@ -208,7 +208,6 @@ pytest-django==4.5.2
pytz==2023.3
# via
# -r requirements/requirements-base.lock.txt
# babel
# djangorestframework
readme-renderer[md]==40.0
# via
Expand Down Expand Up @@ -325,6 +324,10 @@ wheel==0.41.0
wrapt==1.15.0
# via astroid
zipp==3.16.2
<<<<<<< HEAD
# via
# importlib-metadata
# importlib-resources
=======
# via importlib-metadata
>>>>>>> 0b2784c (Use Python 3.10 for CI)
8 changes: 8 additions & 0 deletions rest_registration/utils/html.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,14 @@ def __init__(self, preserve_urls: bool = False) -> None:
self._tag_info_stack = deque([TagInfo(None, {})])
self._preserve_urls = preserve_urls

def parse_marked_section(self, i, report=1):
try:
return super().parse_marked_section(i, report=report)
except AssertionError as exc:
# rephrase confusing assertion error introduced by:
# https://bugs.python.org/issue38573
raise ValueError(str(exc)) from exc

def handle_starttag(self, tag: str, attrs: List[Tuple[str, Optional[str]]]) -> None:
self._tag_info_stack.append(TagInfo(tag, dict(attrs)))
if tag == 'br':
Expand Down

0 comments on commit d957123

Please sign in to comment.