-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This commit generated by first editing places we hardcode Python: - `.tool-versions` - `pyproject.toml` - `Dockerfile` Then updating the source code accordingly: poetry lock ruff check --fix . Notably we still run Python 3.10 in production, a bit annoying since I *still* don't deploy using a `Dockerfile`. We can either edit the Python version that we install in prod (which runs on Ubuntu 22.04 EC2 instances) *or* (better) we can migrate to containerized deployments. Latest Ubuntu nudges us towards pipx ==================================== A plain `pip install poetry` no longer works: This environment is externally managed To install Python packages system-wide, try apt install python3-xyz, where xyz is the package you are trying to install. If you wish to install a non-Debian-packaged Python package, create a virtual environment using python3 -m venv path/to/venv. Then use path/to/venv/bin/python and path/to/venv/bin/pip. Make sure you have python3-full installed. If you wish to install a non-Debian packaged Python application, it may be easiest to use pipx install xyz, which will manage a virtual environment for you. Make sure you have pipx installed.
- Loading branch information
Showing
8 changed files
with
21 additions
and
69 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
python 3.10.14 | ||
python 3.12.4 | ||
poetry 1.8.3 | ||
nodejs 16.20.2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -134,7 +134,7 @@ ignore-names = [ | |
# When poetry full supports PEP 621, should migrate more information here! | ||
# See: https://github.com/python-poetry/roadmap/issues/3 | ||
name = "ws" | ||
requires-python = "~=3.10" # Keep in sync with Poetry | ||
requires-python = "~=3.12" # Keep in sync with Poetry | ||
|
||
[tool.poetry] | ||
name = "ws" | ||
|
@@ -147,7 +147,7 @@ repository = "https://github.com/DavidCain/mitoc-trips/" | |
authors = ["David Cain <[email protected]>"] | ||
|
||
[tool.poetry.dependencies] | ||
python = "^3.10.0" | ||
python = "^3.12.0" | ||
|
||
[tool.poetry.group.prod.dependencies] | ||
Django = "^4.2" | ||
|
@@ -171,7 +171,6 @@ pwned-passwords-django = "*" | |
requests = "*" | ||
sentry-sdk = "^1.30.0" | ||
setuptools = "^69.5.1" # Required by django-pipeline in prod! | ||
typing-extensions = "^4.11.0" # Can remove after Python 3.11 | ||
|
||
|
||
[tool.poetry.group.test.dependencies] | ||
|
@@ -209,7 +208,7 @@ ipdb = { version = "*" } | |
|
||
|
||
[tool.mypy] | ||
python_version = "3.10" | ||
python_version = "3.12" | ||
plugins = ["mypy_django_plugin.main"] | ||
|
||
# Better errors | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters