Skip to content

Commit

Permalink
Upgrade Poetry to 2.x
Browse files Browse the repository at this point in the history
  • Loading branch information
jacebrowning committed Feb 28, 2025
1 parent 9eee94c commit 57404e9
Show file tree
Hide file tree
Showing 8 changed files with 247 additions and 100 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ jobs:
working_directory: ~/memegen

docker:
- image: cimg/python:3.13.1
- image: cimg/python:3.13.2

steps:
- checkout
Expand Down
4 changes: 2 additions & 2 deletions .tool-versions
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
python 3.13.1
poetry 1.8.5
python 3.13.2
poetry 2.0.1
6 changes: 3 additions & 3 deletions .verchew.ini
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@ version = GNU Make
[Python]

cli = python
version = 3.13.1
version = 3.13
message = $ asdf install

[Poetry]

cli = poetry
version = 1
message = $ curl -sSL https://install.python-poetry.org | python3 -
version = 2
message = $ asdf install

[OptiPNG]

Expand Down
7 changes: 7 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
"Ducreux",
"Earther",
"emojize",
"envrc",
"exif",
"extrahead",
"Futurama",
Expand All @@ -71,6 +72,7 @@
"imgur",
"isort",
"isupper",
"jpegoptim",
"jsonify",
"Kalam",
"Kalm",
Expand All @@ -79,8 +81,10 @@
"Khaby",
"Kombucha",
"LANCZOS",
"lastfailed",
"Legobot",
"maga",
"maxfail",
"maxsplit",
"Memegen",
"Midwit",
Expand All @@ -93,17 +97,20 @@
"NOOOOO",
"Noto",
"notosans",
"optipng",
"pacman",
"Panik",
"Philosoraptor",
"Photoshop",
"pilmoji",
"pluginmanager",
"podman",
"procfile",
"pygments",
"pymdown",
"pyproject",
"PYTHONASYNCIODEBUG",
"PYTHONBREAKPOINT",
"PYTHONUNBUFFERED",
"Qaeda",
"Redditors",
Expand Down
2 changes: 1 addition & 1 deletion Containerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ ARG ARG_PORT=5000
ARG ARG_MAX_REQUESTS=0
ARG ARG_MAX_REQUESTS_JITTER=0

FROM docker.io/python:3.13.1-bullseye as build
FROM docker.io/python:3.13.2-bullseye as build

# Install system dependencies
RUN apt update && apt install --yes webp cmake
Expand Down
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export PYTHONBREAKPOINT=ipdb.set_trace
all: doctor format check test ## Run all validation targets

.PHONY: dev
dev: install ## Rerun all validation targests in a loop
dev: install ## Rerun all validation targets in a loop
@ sleep 2 && touch */__init__.py &
@ poetry run watchmedo shell-command --recursive --pattern="*.py" --command="clear && make test check format SKIP_SLOW=true && echo && echo ✅ && echo" --wait --drop

Expand All @@ -14,7 +14,7 @@ dev: install ## Rerun all validation targests in a loop
.PHONY: bootstrap
bootstrap: ## Attempt to install system dependencies
asdf plugin add python || asdf plugin update python
asdf plugin add poetry https://github.com/asdf-community/asdf-poetry.git || asdf plugin update poetry
asdf plugin add poetry || asdf plugin update poetry
asdf install

.PHONY: doctor
Expand All @@ -36,7 +36,7 @@ $(BACKEND_DEPENDENCIES): poetry.lock

ifndef CI
poetry.lock: pyproject.toml
poetry lock --no-update
poetry lock
@ touch $@
endif

Expand Down Expand Up @@ -107,7 +107,7 @@ test-slow: install
poetry run pytest -m slow --durations=0 --durations-min=0.05

.PHONY: run
run: install ## Run the applicaiton
run: install ## Run the application
ifdef DEBUG
make clean-tmp
endif
Expand Down
Loading

0 comments on commit 57404e9

Please sign in to comment.