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

chore(ci): switch from poetry to uv #75

Merged
merged 1 commit into from
Jan 24, 2025
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
3 changes: 2 additions & 1 deletion .config/mise.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
[tools]
python = "3.13"
poetry = "1.8"
uv = "0.5"

# TODO: migrate ../aqua.yaml here?
# If so, adapt Renovate config!
# cf. https://github.com/jdx/mise/discussions/1940
16 changes: 7 additions & 9 deletions .github/workflows/python-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,13 @@ jobs:
python-version: [ "3.9", "3.10", "3.11", "3.12", "3.13" ]
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5
with:
python-version: ${{ matrix.python-version }}
- name: Install Poetry
uses: snok/install-poetry@76e04a911780d5b312d89783f7b1cd627778900a # v1
- name: Install tooling
uses: jdx/mise-action@53d027c2e96fed8f955f5d95bff910a3e031cc58 # v2
- name: Switch to Python ${{ matrix.python-version }}
run: "mise use python@${{ matrix.python-version }}"
- name: Install dependencies
run: "poetry install --no-interaction --no-root"
run: "uv sync"
- name: Lint
run: "poetry run poe lint"
run: "uv run poe lint"
- name: Test with pytest
run: "poetry run poe test"
run: "uv run poe test"
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ Prepare a checkout of your fork:

```shell
mise up # if you want to
poetry install --no-root
uv sync
# activate .venv
```

Expand Down
337 changes: 0 additions & 337 deletions poetry.lock

This file was deleted.

2 changes: 0 additions & 2 deletions poetry.toml

This file was deleted.

39 changes: 19 additions & 20 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,20 +1,14 @@
[build-system]
requires = ["poetry_core>=1.7.0"]
build-backend = "poetry.core.masonry.api"

[tool.poetry]
name = "espanso-nice-dev-refs"
version = "0.0.0" # not used, cf. nice-dev-refs/_manifest.yml
description = "A package for espanso; takes URLs from the clipboard and inserts a formatted link based on it."
[project]
authors = [
"Raphael Reitzig <4246780+reitzig@users.noreply.github.com>",
{name = "Raphael Reitzig", email = "4246780+reitzig@users.noreply.github.com"},
]
maintainers = [
"Raphael Reitzig <4246780+reitzig@users.noreply.github.com>",
{name = "Raphael Reitzig", email = "4246780+reitzig@users.noreply.github.com"},
]
name = "espanso-nice-dev-refs"
version = "0.0.0" # not used, cf. nice-dev-refs/_manifest.yml
description = "A package for espanso; takes URLs from the clipboard and inserts a formatted link based on it."
readme = "README.md"
repository = "https://github.com/reitzig/espanso-nice-dev-refs"
documentation = "https://github.com/reitzig/espanso-nice-dev-refs/blob/main/README.md"
classifiers = [
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
Expand All @@ -25,16 +19,21 @@ classifiers = [
"Topic :: Utilities",
"Environment :: Plugins",
]
requires-python = ">=3.9,<3.14"
dependencies = []

[tool.poetry.dependencies]
python = ">=3.9,<3.14"
[project.urls]
repository = "https://github.com/reitzig/espanso-nice-dev-refs"
documentation = "https://github.com/reitzig/espanso-nice-dev-refs/blob/main/README.md"

[tool.poetry.group.dev.dependencies]
assertpy = "1.1"
coverage = { version = "7.6.10", extras = ["toml"] }
poethepoet = "0.32.1"
pytest = "8.3.4"
ruff = "0.9.2"
[dependency-groups]
dev = [
"assertpy==1.1",
"coverage[toml]==7.6.10",
"poethepoet==0.32.1",
"pytest==8.3.4",
"ruff==0.9.2",
]

[tool.poe.tasks.test]
shell = """
Expand Down
309 changes: 309 additions & 0 deletions uv.lock

Large diffs are not rendered by default.

Loading