Skip to content

A modern platform for visual, flexible, and extensible graph-based investigations. For cybersecurity analysts and investigators.

feat(types): switch to uv

dextmorgn00ec9d6f265b
diff --git a/flowsint-types/README.md b/flowsint-types/README.md
index cd947704..ea1380a2 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 34eaf620..9dd8fc21 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 <[email protected]>"]
-packages = [{ include = "flowsint_types", from = "src" }]
+authors = [{ name = "dextmorgn", email = "[email protected]" }]
+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 797c89ce..00000000
--- 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 <[email protected]>"]
-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"