Skip to content

Commit

Permalink
Upgrade to Python 3.11 (#489)
Browse files Browse the repository at this point in the history
  • Loading branch information
frcroth authored Feb 13, 2024
1 parent f53767b commit 9d39367
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 113 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-20.04
strategy:
matrix:
python-version: [ 3.9 ]
python-version: [ 3.11 ]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
Expand Down Expand Up @@ -45,7 +45,7 @@ jobs:
runs-on: ubuntu-20.04
strategy:
matrix:
python-version: [ 3.8, 3.9 ]
python-version: [ 3.11, 3.12 ]
database: [ sqlite, postgres ]
include:
- database: sqlite
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ For a quick start, use the [dev container](https://containers.dev/), e.g. by ins
To set up a development version on your local machine, you need to execute the following steps:

1. Check out repository and cd to it
1. Set up a virtualenv for the project with Python >=3.8 and activate it (e.g., `python3 -m venv venv` and `source venv/bin/activate`)
1. Set up a virtualenv for the project with Python >=3.11 and activate it (e.g., `python3 -m venv venv` and `source venv/bin/activate`)
1. Install poetry (if not already installed): `curl -sSL https://install.python-poetry.org/ | python -`
1. Install dependencies with `poetry install`
1. Install bootstrap with `python tools/install_bootstrap.py`
Expand Down
2 changes: 1 addition & 1 deletion myhpi/tests/core/test_menu.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ def get_as_page_path_lookup(page_lookup):
class MenuTests(MyHPIPageTestCase):
def test_root_page_in_context(self):
start_page = self.client.get("/en", follow=True)
self.assertEquals(self.root_page.path, start_page.context["root_page"].path)
self.assertEqual(self.root_page.path, start_page.context["root_page"].path)

def test_page_lookup_is_correct_for_guests(self):
start_page = self.client.get("/en", follow=True)
Expand Down
110 changes: 2 additions & 108 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ authors = ["FSR DE <fachschaftsrat@hpi.de>"]
license = "MIT"

[tool.poetry.dependencies]
python = "^3.8"
python = "^3.11"
wagtail = "^5.2"
django-environ = "^0.11.2"
wagtail-localize = "^1.7"
Expand Down

0 comments on commit 9d39367

Please sign in to comment.