File tree Expand file tree Collapse file tree 5 files changed +57
-34
lines changed Expand file tree Collapse file tree 5 files changed +57
-34
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 11# ignore poetry.lock as this is a library project
22poetry.lock
3+ uv.lock
34
45# Byte-compiled / optimized / DLL files
56__pycache__ /
Original file line number Diff line number Diff line change 22
33All 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
Original file line number Diff line number Diff line change 11[tools ]
22node = " latest"
33poetry = " latest"
4+ uv = " latest"
Original file line number Diff line number Diff line change 11[project ]
22name = " daffy"
3- version = " 0.10.0 "
3+ version = " 0.10.1 "
44description = " Function decorators for Pandas and Polars Dataframe column name and data type validation"
55authors = [
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 ]
5674branch = true
You can’t perform that action at this time.
0 commit comments