diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 26c635a..19ed69a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 diff --git a/.gitignore b/.gitignore index eea7626..98ae734 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,6 @@ __pycache__ .pytest_cache -poetry.lock +uv.lock dist .DS_Store *.egg-info diff --git a/pyproject.toml b/pyproject.toml index 36604ab..8820288 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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 "] -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", @@ -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" @@ -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", +]