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

Upgrade python to 3.11 #781

Merged
merged 5 commits into from
Jan 8, 2024
Merged
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
2 changes: 1 addition & 1 deletion .python-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.8.12
3.11.7
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM python:3.8.12-alpine3.13
FROM python:3.11.7-alpine3.13
LABEL maintainer="Hypothes.is Project and contributors"

# Install nginx & supervisor
Expand Down
22 changes: 22 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,25 @@
[tool.pytest.ini_options]
addopts = "-q"
Copy link
Member Author

Choose a reason for hiding this comment

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

Moved from tox.ini

filterwarnings = [
"error", # Fail the tests if there are any warnings.

# Required until marshmallow 3.15.0 is released which should fix this. See:
# * https://github.com/marshmallow-code/marshmallow/blob/dev/CHANGELOG.rst
# * https://github.com/marshmallow-code/marshmallow/pull/1903
"ignore:^distutils Version classes are deprecated\\. Use packaging.version instead\\.$:DeprecationWarning:marshmallow:17",

# pkg_resources is calling its own deprecated function? Anyway I don't think the problem is with us.
"ignore:^Deprecated call to .pkg_resources\\.declare_namespace\\('.*'\\).\\.:DeprecationWarning:pkg_resources",

# pkg_resources used in some of our dependencies
"ignore:^pkg_resources is deprecated as an API$:DeprecationWarning:pkg_resources",
"ignore:^pkg_resources is deprecated as an API:DeprecationWarning:pyramid",

# https://github.com/webpy/webpy/issues/732
"ignore:^'cgi' is deprecated and slated for removal in Python 3.13:DeprecationWarning:webob",
]


[tool.hdev]
project_name = "checkmate"
project_type = "application"
Expand Down
40 changes: 19 additions & 21 deletions requirements/checkformatting.txt
Original file line number Diff line number Diff line change
@@ -1,48 +1,46 @@
#
# This file is autogenerated by pip-compile with python 3.8
# To update, run:
# This file is autogenerated by pip-compile with Python 3.11
# by the following command:
#
# pip-compile --allow-unsafe requirements/checkformatting.in
#
black==23.12.1
# via -r requirements/checkformatting.in
build==0.8.0
build==1.0.3
# via pip-tools
click==8.1.3
click==8.1.7
# via
# black
# pip-tools
importlib-metadata==4.12.0
importlib-metadata==7.0.1
# via pip-sync-faster
isort==5.13.2
# via -r requirements/checkformatting.in
mypy-extensions==0.4.3
mypy-extensions==1.0.0
# via black
packaging==23.0
packaging==23.2
# via
# black
# build
pathspec==0.9.0
pathspec==0.12.1
# via black
pep517==0.13.0
# via build
pip-sync-faster==0.0.3
# via -r requirements/checkformatting.in
pip-tools==7.3.0
# via
# -r requirements/checkformatting.in
# pip-sync-faster
platformdirs==2.5.2
platformdirs==4.1.0
# via black
tomli==2.0.1
# via
# black
# build
# pep517
# pip-tools
typing-extensions==4.3.0
# via black
wheel==0.38.1
pyproject-hooks==1.0.0
# via build
wheel==0.42.0
# via pip-tools
zipp==3.8.1
zipp==3.17.0
# via importlib-metadata

# The following packages are considered to be unsafe in a requirements file:
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 is added when running make requirements locally

pip==23.3.2
# via pip-tools
setuptools==69.0.3
# via pip-tools
33 changes: 16 additions & 17 deletions requirements/coverage.txt
Original file line number Diff line number Diff line change
@@ -1,35 +1,34 @@
#
# This file is autogenerated by pip-compile with python 3.8
# To update, run:
# This file is autogenerated by pip-compile with Python 3.11
# by the following command:
#
# pip-compile --allow-unsafe requirements/coverage.in
#
build==0.8.0
build==1.0.3
# via pip-tools
click==8.1.3
click==8.1.7
# via pip-tools
coverage==7.4.0
# via -r requirements/coverage.in
importlib-metadata==4.12.0
importlib-metadata==7.0.1
# via pip-sync-faster
packaging==21.3
# via build
pep517==0.13.0
packaging==23.2
# via build
pip-sync-faster==0.0.3
# via -r requirements/coverage.in
pip-tools==7.3.0
# via
# -r requirements/coverage.in
# pip-sync-faster
pyparsing==3.0.9
# via packaging
tomli==2.0.1
# via
# build
# pep517
# pip-tools
wheel==0.38.1
pyproject-hooks==1.0.0
# via build
wheel==0.42.0
# via pip-tools
zipp==3.8.1
zipp==3.17.0
# via importlib-metadata

# The following packages are considered to be unsafe in a requirements file:
pip==23.3.2
# via pip-tools
setuptools==69.0.3
# via pip-tools
Loading