From 00ec9d6f265b387677a08965af10c19dd5b209ed Mon Sep 17 00:00:00 2001 From: dextmorgn Date: Sat, 11 Apr 2026 13:15:06 +0200 Subject: [PATCH] feat(types): switch to uv --- flowsint-types/README.md | 2 +- flowsint-types/pyproject.toml | 42 +++++++++++++++++-------------- flowsint-types/src/pyproject.toml | 14 ----------- 3 files changed, 24 insertions(+), 34 deletions(-) delete mode 100644 flowsint-types/src/pyproject.toml diff --git a/flowsint-types/README.md b/flowsint-types/README.md index cd94770..ea1380a 100644 --- a/flowsint-types/README.md +++ b/flowsint-types/README.md @@ -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 !. diff --git a/flowsint-types/pyproject.toml b/flowsint-types/pyproject.toml index 34eaf62..9dd8fc2 100644 --- a/flowsint-types/pyproject.toml +++ b/flowsint-types/pyproject.toml @@ -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 "] -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 \ No newline at end of file +disallow_untyped_defs = true diff --git a/flowsint-types/src/pyproject.toml b/flowsint-types/src/pyproject.toml deleted file mode 100644 index 797c89c..0000000 --- a/flowsint-types/src/pyproject.toml +++ /dev/null @@ -1,14 +0,0 @@ -[tool.poetry] -name = "flowsint-types" -version = "0.1.0" -description = "Pydantic models for flowsint" -authors = ["dextmorgn "] -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"