Skip to content

Commit 7e1c717

Browse files
authored
build(clp-package): Adopt uv + hatchling as the build and packaging backend for Python components (resolves y-scope#1396); Upgrade dependencies for Python components. (y-scope#1405)
1 parent bb3ae41 commit 7e1c717

30 files changed

+2805
-2881
lines changed

components/clp-mcp-server/pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ dependencies = [
99
"aiomysql>=0.2.0",
1010
"click>=8.3.0",
1111
"fastmcp>=2.12.4",
12-
"msgpack>=1.1.1",
12+
"msgpack>=1.1.2",
1313
"paginate>=0.5.7",
14-
"pymongo>=4.15.1",
14+
"pymongo>=4.15.3",
1515
]
1616

1717
[project.scripts]

components/clp-mcp-server/uv.lock

Lines changed: 286 additions & 257 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

components/clp-package-utils/poetry.lock

Lines changed: 0 additions & 556 deletions
This file was deleted.
Lines changed: 12 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,19 @@
11
[project]
2-
requires-python = ">= 3.9"
3-
4-
[tool.poetry]
52
name = "clp-package-utils"
63
version = "0.5.2-dev"
74
description = "Utilities for the CLP package."
8-
authors = ["YScope Inc. <[email protected]>"]
5+
authors = [{name = "YScope Inc.", email = "[email protected]"}]
96
readme = "README.md"
10-
11-
[tool.poetry.dependencies]
12-
python = ">= 3.9"
13-
Brotli = "^1.1.0"
14-
msgpack = "^1.0.7"
15-
psutil = "^7.1.0"
16-
pydantic = "^2.11.9"
17-
pymongo = "^4.7.2"
18-
PyYAML = "^6.0.1"
7+
requires-python = ">=3.9"
8+
dependencies = [
9+
"Brotli>=1.1.0",
10+
"msgpack>=1.1.2",
11+
"psutil>=7.1.0",
12+
"pydantic>=2.12.3",
13+
"pymongo>=4.15.3",
14+
"PyYAML>=6.0.3",
15+
]
1916

2017
[build-system]
21-
requires = ["poetry-core"]
22-
build-backend = "poetry.core.masonry.api"
23-
18+
requires = ["hatchling"]
19+
build-backend = "hatchling.build"

components/clp-package-utils/uv.lock

Lines changed: 552 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

components/clp-py-utils/poetry.lock

Lines changed: 0 additions & 862 deletions
This file was deleted.
Lines changed: 18 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,25 @@
11
[project]
2-
requires-python = ">= 3.9"
3-
4-
[tool.poetry]
52
name = "clp-py-utils"
63
version = "0.5.2-dev"
74
description = "Utilities for other Python packages in CLP."
8-
authors = ["YScope Inc. <[email protected]>"]
5+
authors = [{name = "YScope Inc.", email = "[email protected]"}]
96
readme = "README.md"
10-
11-
[tool.poetry.dependencies]
12-
python = ">= 3.9"
13-
boto3 = "^1.35.81"
14-
# mariadb version must be compatible with libmariadev installed in runtime env.
15-
# See https://mariadb.com/docs/server/connect/programming-languages/python/install/#Dependencies
16-
mariadb = "~1.0.11"
17-
mysql-connector-python = "^8.2.0"
18-
pydantic = "^2.11.9"
19-
python-dotenv = "^1.0.1"
20-
python-Levenshtein = "~0.22"
21-
sqlalchemy = "~2.0"
22-
PyYAML = "^6.0.1"
23-
result = "^0.17.0"
24-
StrEnum = "^0.4.15"
7+
requires-python = ">=3.9"
8+
dependencies = [
9+
"boto3>=1.40.55",
10+
# mariadb version must be compatible with libmariadev installed in runtime env.
11+
# See https://mariadb.com/docs/server/connect/programming-languages/python/install/#Dependencies
12+
"mariadb>=1.0.11,<1.1.dev0",
13+
"mysql-connector-python>=9.4.0",
14+
"pydantic>=2.12.3",
15+
"python-dotenv>=1.1.1",
16+
"python-Levenshtein>=0.27.1",
17+
"PyYAML>=6.0.3",
18+
"result>=0.17.0",
19+
"sqlalchemy>=2.0.44",
20+
"StrEnum>=0.4.15",
21+
]
2522

2623
[build-system]
27-
requires = ["poetry-core"]
28-
build-backend = "poetry.core.masonry.api"
24+
requires = ["hatchling"]
25+
build-backend = "hatchling.build"

components/clp-py-utils/uv.lock

Lines changed: 891 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

components/job-orchestration/job_orchestration/__init__.py

Whitespace-only changes.

components/job-orchestration/job_orchestration/executor/compress/celery_compress.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
from celery import signals
22
from celery.app.task import Task
33
from celery.utils.log import get_task_logger
4+
45
from job_orchestration.executor.compress.celery import app
56
from job_orchestration.executor.compress.compression_task import compression_entry_point
67

0 commit comments

Comments
 (0)