feat(types): switch to uv

This commit is contained in:
dextmorgn
2026-04-11 13:15:06 +02:00
parent cfaece5af2
commit 00ec9d6f26
3 changed files with 24 additions and 34 deletions

View File

@@ -5,7 +5,7 @@ The types used in the flowsint enrichers and core for flowsint.
## Testing
```bash
poetry run pytest
uv run pytest
```
> ⚠️ 🚧 Work in progress !.

View File

@@ -1,27 +1,31 @@
[tool.poetry]
[project]
name = "flowsint-types"
version = "1.0.0"
version = "1.2.8"
description = "Pydantic models for flowsint"
license = "Apache-2.0"
authors = ["dextmorgn <contact@flowsint.io>"]
packages = [{ include = "flowsint_types", from = "src" }]
authors = [{ name = "dextmorgn", email = "contact@flowsint.io" }]
requires-python = ">=3.12,<4.0"
dependencies = [
"pydantic>=2.0,<3.0",
"email-validator>=2.0,<3.0",
"phonenumbers>=9.0,<10.0",
]
[tool.poetry.dependencies]
python = ">=3.12,<4.0"
pydantic = "^2.0"
email-validator = "^2.0"
phonenumbers = "^9.0"
[tool.poetry.group.dev.dependencies]
pytest = "^7.4"
black = "^23.0"
isort = "^5.12"
flake8 = "^6.0"
mypy = "^1.5"
[dependency-groups]
dev = [
"pytest>=8.4.2,<9.0.0",
"black>=25.0,<26.0",
"isort>=6.0,<7.0",
"flake8>=7.0,<8.0",
"mypy>=1.17,<2.0",
]
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.wheel]
packages = ["src/flowsint_types"]
[tool.black]
line-length = 88
@@ -35,4 +39,4 @@ multi_line_output = 3
python_version = "3.11"
warn_return_any = true
warn_unused_configs = true
disallow_untyped_defs = true
disallow_untyped_defs = true

View File

@@ -1,14 +0,0 @@
[tool.poetry]
name = "flowsint-types"
version = "0.1.0"
description = "Pydantic models for flowsint"
authors = ["dextmorgn <contact@flowsint.io>"]
packages = [{ include = "flowsint_types" }]
[tool.poetry.dependencies]
python = ">=3.12,<4.0"
pydantic = "^2.0"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"