Skip to content

Commit 79bfdd8

Browse files
authored
Merge pull request #19 from vertti/move-to-uv
Move to uv
2 parents ba6bc9a + 47c1996 commit 79bfdd8

File tree

5 files changed

+57
-34
lines changed

5 files changed

+57
-34
lines changed

.github/workflows/main.yml

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -18,29 +18,28 @@ jobs:
1818
- uses: actions/checkout@v3
1919

2020
- name: Set up Python ${{ matrix.python-version }}
21-
uses: actions/setup-python@v3
21+
uses: actions/setup-python@v4
2222
with:
2323
python-version: ${{ matrix.python-version }}
24+
cache: 'pip'
2425

25-
- name: Install Poetry
26-
uses: snok/install-poetry@v1
27-
with:
28-
virtualenvs-create: true
29-
virtualenvs-in-project: false
26+
- name: Install uv
27+
run: |
28+
pip install uv
3029
31-
- name: Install dependencies
30+
- name: Create virtual environment and install dependencies
3231
run: |
33-
poetry install
32+
uv sync
3433
3534
- name: Lint with Ruff and Mypy
3635
run: |
37-
poetry run ruff check --output-format=github .
38-
poetry run ruff format --diff
39-
poetry run mypy .
36+
uv run ruff check --output-format=github .
37+
uv run ruff format --diff
38+
uv run mypy .
4039
4140
- name: Test with pytest
4241
run: |
43-
poetry run pytest --cov --cov-report=xml tests/
42+
uv run pytest --cov --cov-report=xml tests/
4443
4544
- name: Upload coverage to Codecov
4645
uses: codecov/codecov-action@v5

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# ignore poetry.lock as this is a library project
22
poetry.lock
3+
uv.lock
34

45
# Byte-compiled / optimized / DLL files
56
__pycache__/

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
All notable changes to this project will be documented in this file.
44

5+
## 0.10.1
6+
7+
- Built and published with UV. No functional changes
8+
59
## 0.10.0
610

711
- Add support for regex patterns in column name validation

mise.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
[tools]
22
node = "latest"
33
poetry = "latest"
4+
uv = "latest"

pyproject.toml

Lines changed: 40 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "daffy"
3-
version = "0.10.0"
3+
version = "0.10.1"
44
description = "Function decorators for Pandas and Polars Dataframe column name and data type validation"
55
authors = [
66
{ name="Janne Sinivirta", email="[email protected]" },
@@ -25,32 +25,50 @@ classifiers = [
2525
"Development Status :: 4 - Beta",
2626
"License :: OSI Approved :: MIT License"
2727
]
28-
include = [
29-
"LICENSE",
28+
29+
dependencies = [
30+
"pandas>=1.5.1,<3.0.0",
31+
"polars>=1.7.0",
32+
"tomli>=2.0.0",
3033
]
3134

32-
[tool.poetry]
33-
include = ["daffy/py.typed"]
35+
[dependency-groups]
36+
dev = [
37+
"pytest>=8.3.0",
38+
"pre-commit>=4.0.0",
39+
"mypy>=1.7.1",
40+
"pytest-mock>=3.12.0",
41+
"pytest-cov>=6.0.0",
42+
"coverage[toml]>=7.3.2",
43+
"pydocstyle>=6.3.0",
44+
"ruff>=0.9.1",
45+
]
3446

35-
[tool.poetry.dependencies]
36-
python = ">=3.9.0,<4.0.0"
37-
pandas = ">=1.5.1,<3.0.0"
38-
polars = "^1.7.0"
39-
tomli = "^2.0.0"
47+
[build-system]
48+
requires = ["hatchling>=1.18.0"]
49+
build-backend = "hatchling.build"
4050

41-
[tool.poetry.group.dev.dependencies]
42-
pytest = "^8.3.0"
43-
pre-commit = "^4.0.0"
44-
mypy = "^1.7.1"
45-
pytest-mock = "^3.12.0"
46-
pytest-cov = "^6.0.0"
47-
coverage = {extras = ["toml"], version = "^7.3.2"}
48-
pydocstyle = "^6.3.0"
49-
ruff = "^0.9.1"
51+
[tool.hatch.build]
52+
include = [
53+
"daffy/**/*.py",
54+
"daffy/py.typed",
55+
"pyproject.toml",
56+
"README.md",
57+
"LICENSE",
58+
"docs/**/*",
59+
"tests/**/*",
60+
]
61+
exclude = [
62+
"mise.toml",
63+
".gitignore",
64+
".github/**/*",
65+
".vscode/**/*",
66+
"**/__pycache__",
67+
"**/*.pyc",
68+
]
5069

51-
[build-system]
52-
requires = ["poetry-core>=1.0.0"]
53-
build-backend = "poetry.core.masonry.api"
70+
[tool.hatch.build.targets.wheel]
71+
packages = ["daffy"]
5472

5573
[tool.coverage.run]
5674
branch = true

0 commit comments

Comments
 (0)