Migrate from Poetry to uv package manager

Co-authored-by: nikdoof <170514+nikdoof@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2025-07-16 22:59:26 +00:00
parent daa322b406
commit e9ae65bd21
6 changed files with 510 additions and 683 deletions

View File

@@ -1,17 +1,16 @@
.venv:
python3 -m pip install poetry
python3 -m poetry install --with github
uv sync --all-extras
.PHONY: tests
tests: .venv
python3 -m poetry run pytest
uv run pytest
lint: .venv
python3 -m poetry run ruff check --output-format=github --select=E9,F63,F7,F82 --target-version=py37 .
python3 -m poetry run ruff check --output-format=github --target-version=py37 .
uv run ruff check --output-format=github --select=E9,F63,F7,F82 --target-version=py37 .
uv run ruff check --output-format=github --target-version=py37 .
serve-uwsgi:
SIMPLE_WEBFINGER_CONFIG_FILE="examples/example-config.yaml" python3 -m poetry run gunicorn "simple_webfinger.app:create_app()"
SIMPLE_WEBFINGER_CONFIG_FILE="examples/example-config.yaml" uv run gunicorn "simple_webfinger.app:create_app()"
serve:
DEBUG_METRICS=1 SIMPLE_WEBFINGER_CONFIG_FILE="examples/example-config.yaml" FLASK_DEBUG=1 FLASK_APP="simple_webfinger.app:create_app()" python3 -m poetry run flask run
DEBUG_METRICS=1 SIMPLE_WEBFINGER_CONFIG_FILE="examples/example-config.yaml" FLASK_DEBUG=1 FLASK_APP="simple_webfinger.app:create_app()" uv run flask run