Skip to content

Commit

Permalink
Switch from poetry to uv
Browse files Browse the repository at this point in the history
  • Loading branch information
rkhwaja committed Sep 4, 2024
1 parent 1f17377 commit a70ebac
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 21 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,19 +26,18 @@ jobs:
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install poetry
uses: abatilo/actions-poetry@v3
- name: Install uv
uses: yezz123/setup-uv@v4
- name: Dependencies
run: |
poetry config virtualenvs.create false
poetry install
uv sync --no-cache
- name: Linter
run: |
poe lint
uv run poe lint
- name: Tests
run: |
if python --version | grep -q 'Python 3.12' ; then
poe test
uv run poe test
fi
- name: Codecov
uses: codecov/codecov-action@v4
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
__pycache__
.pytest_cache
poetry.lock
uv.lock
dist
.DS_Store
*.egg-info
Expand Down
32 changes: 18 additions & 14 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
[tool.poetry]
[project]
name = "listdiff"
version = "1.0.2"
description = "Diff 2 python lists using a given key"
authors = ["Rehan Khwaja <rehan@khwaja.name>"]
license = "MIT"
maintainers = [
{ name = "Rehan Khwaja", email = "rehan@khwaja.name" }
]
readme = "README.md"
homepage = "https://github.com/rkhwaja/pylistdiff"
classifiers = [
"License :: OSI Approved :: MIT License",
"Development Status :: 5 - Production/Stable",
Expand All @@ -16,15 +16,11 @@ classifiers = [
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12"
]
requires-python = ">=3.8"
dependencies = []

[tool.poetry.dependencies]
python = ">=3.8"

[tool.poetry.group.dev.dependencies]
pytest = ">=7.1"
pytest-cov = ">=2.9.0"
poethepoet = ">=0.16.4"
ruff = ">=0.3.1"
[project.urls]
Homepage = "https://github.com/rkhwaja/pylistdiff"

[tool.poe.tasks]
lint = "ruff check src tests"
Expand All @@ -51,5 +47,13 @@ multiline-quotes = "single"
pythonpath = ["src"]

[build-system]
requires = ["poetry_core>=1.1"]
build-backend = "poetry.core.masonry.api"
requires = ["hatchling"]
build-backend = "hatchling.build"

[tool.uv]
dev-dependencies = [
"pytest>=7.1",
"pytest-cov>=2.9.0",
"poethepoet>=0.16.4",
"ruff>=0.3.1",
]

0 comments on commit a70ebac

Please sign in to comment.