czudf-toolkit 0.0.1.dev0__tar.gz → 0.0.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {czudf_toolkit-0.0.1.dev0 → czudf_toolkit-0.0.2}/PKG-INFO +10 -9
- czudf_toolkit-0.0.2/pyproject.toml +72 -0
- czudf_toolkit-0.0.1.dev0/pyproject.toml → czudf_toolkit-0.0.2/pyproject.toml.orig +7 -7
- czudf_toolkit-0.0.2/src/czudf/_version.py +14 -0
- czudf_toolkit-0.0.1.dev0/.github/workflows/tests.yaml +0 -29
- czudf_toolkit-0.0.1.dev0/.gitignore +0 -21
- czudf_toolkit-0.0.1.dev0/.python-version +0 -1
- czudf_toolkit-0.0.1.dev0/Makefile +0 -24
- czudf_toolkit-0.0.1.dev0/src/czudf_toolkit/_version.py +0 -4
- czudf_toolkit-0.0.1.dev0/tests/test_annotate.py +0 -14
- {czudf_toolkit-0.0.1.dev0 → czudf_toolkit-0.0.2}/LICENSE +0 -0
- {czudf_toolkit-0.0.1.dev0 → czudf_toolkit-0.0.2}/README.md +0 -0
- {czudf_toolkit-0.0.1.dev0/src/czudf_toolkit → czudf_toolkit-0.0.2/src/czudf}/__init__.py +0 -0
- {czudf_toolkit-0.0.1.dev0/src/czudf_toolkit → czudf_toolkit-0.0.2/src/czudf}/_annotate.py +0 -0
|
@@ -1,24 +1,25 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: czudf-toolkit
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.2
|
|
4
4
|
Summary: Python toolkit for developing UDFs on the ClickZetta platform
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
Author-email: "guantao.gao" <guantao.gao@clickzetta.com>
|
|
5
|
+
Author: guantao.gao
|
|
6
|
+
Author-email: guantao.gao <guantao.gao@clickzetta.com>
|
|
7
|
+
License-Expression: Apache-2.0
|
|
9
8
|
License-File: LICENSE
|
|
10
9
|
Classifier: Development Status :: 3 - Alpha
|
|
11
10
|
Classifier: Intended Audience :: Developers
|
|
12
|
-
Classifier:
|
|
13
|
-
Classifier: Operating System :: OS Independent
|
|
11
|
+
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
14
12
|
Classifier: Programming Language :: Python :: 3
|
|
15
|
-
Classifier: Programming Language :: Python :: 3 :: Only
|
|
16
13
|
Classifier: Programming Language :: Python :: 3.10
|
|
17
14
|
Classifier: Programming Language :: Python :: 3.11
|
|
18
15
|
Classifier: Programming Language :: Python :: 3.12
|
|
19
16
|
Classifier: Programming Language :: Python :: 3.13
|
|
20
|
-
Classifier:
|
|
17
|
+
Classifier: Programming Language :: Python :: 3 :: Only
|
|
18
|
+
Classifier: Operating System :: OS Independent
|
|
21
19
|
Requires-Python: >=3.10
|
|
20
|
+
Project-URL: Homepage, https://github.com/czudf/czudf-python-toolkit
|
|
21
|
+
Project-URL: Repository, https://github.com/czudf/czudf-python-toolkit
|
|
22
|
+
Project-URL: Issues, https://github.com/czudf/czudf-python-toolkit/issues
|
|
22
23
|
Description-Content-Type: text/markdown
|
|
23
24
|
|
|
24
25
|
# czudf-python-toolkit
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
[project]
|
|
2
|
+
name = "czudf-toolkit"
|
|
3
|
+
version = "0.0.2"
|
|
4
|
+
description = "Python toolkit for developing UDFs on the ClickZetta platform"
|
|
5
|
+
readme = "README.md"
|
|
6
|
+
requires-python = ">=3.10"
|
|
7
|
+
license = "Apache-2.0"
|
|
8
|
+
license-files = ["LICENSE"]
|
|
9
|
+
dependencies = []
|
|
10
|
+
classifiers = [
|
|
11
|
+
"Development Status :: 3 - Alpha",
|
|
12
|
+
"Intended Audience :: Developers",
|
|
13
|
+
"Topic :: Software Development :: Libraries :: Python Modules",
|
|
14
|
+
"Programming Language :: Python :: 3",
|
|
15
|
+
"Programming Language :: Python :: 3.10",
|
|
16
|
+
"Programming Language :: Python :: 3.11",
|
|
17
|
+
"Programming Language :: Python :: 3.12",
|
|
18
|
+
"Programming Language :: Python :: 3.13",
|
|
19
|
+
"Programming Language :: Python :: 3 :: Only",
|
|
20
|
+
"Operating System :: OS Independent",
|
|
21
|
+
]
|
|
22
|
+
|
|
23
|
+
[[project.authors]]
|
|
24
|
+
name = "guantao.gao"
|
|
25
|
+
email = "guantao.gao@clickzetta.com"
|
|
26
|
+
|
|
27
|
+
[project.urls]
|
|
28
|
+
Homepage = "https://github.com/czudf/czudf-python-toolkit"
|
|
29
|
+
Repository = "https://github.com/czudf/czudf-python-toolkit"
|
|
30
|
+
Issues = "https://github.com/czudf/czudf-python-toolkit/issues"
|
|
31
|
+
|
|
32
|
+
[dependency-groups]
|
|
33
|
+
dev = [
|
|
34
|
+
"mypy",
|
|
35
|
+
"ruff==0.12.11",
|
|
36
|
+
"pytest",
|
|
37
|
+
]
|
|
38
|
+
|
|
39
|
+
[build-system]
|
|
40
|
+
requires = ["uv_build>=0.11.30,<0.12.0"]
|
|
41
|
+
build-backend = "uv_build"
|
|
42
|
+
|
|
43
|
+
[tool.uv.build-backend]
|
|
44
|
+
module-name = "czudf"
|
|
45
|
+
|
|
46
|
+
[tool.ruff]
|
|
47
|
+
line-length = 100
|
|
48
|
+
target-version = "py310"
|
|
49
|
+
|
|
50
|
+
[tool.ruff.lint]
|
|
51
|
+
select = [
|
|
52
|
+
"E",
|
|
53
|
+
"W",
|
|
54
|
+
"F",
|
|
55
|
+
"I",
|
|
56
|
+
"B",
|
|
57
|
+
"C4",
|
|
58
|
+
"UP",
|
|
59
|
+
]
|
|
60
|
+
|
|
61
|
+
[tool.ruff.lint.isort]
|
|
62
|
+
combine-as-imports = true
|
|
63
|
+
known-first-party = ["czudf"]
|
|
64
|
+
|
|
65
|
+
[tool.ruff.lint.pydocstyle]
|
|
66
|
+
convention = "google"
|
|
67
|
+
|
|
68
|
+
[tool.mypy]
|
|
69
|
+
strict = true
|
|
70
|
+
disallow_incomplete_defs = false
|
|
71
|
+
disallow_untyped_defs = false
|
|
72
|
+
disallow_untyped_calls = false
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "czudf-toolkit"
|
|
3
|
-
|
|
3
|
+
version = "0.0.2"
|
|
4
4
|
description = "Python toolkit for developing UDFs on the ClickZetta platform"
|
|
5
5
|
readme = "README.md"
|
|
6
6
|
requires-python = ">=3.10"
|
|
7
|
+
license = "Apache-2.0"
|
|
7
8
|
license-files = ["LICENSE"]
|
|
8
9
|
dependencies = []
|
|
9
10
|
classifiers = [
|
|
10
11
|
"Development Status :: 3 - Alpha",
|
|
11
12
|
"Intended Audience :: Developers",
|
|
12
13
|
"Topic :: Software Development :: Libraries :: Python Modules",
|
|
13
|
-
"License :: OSI Approved :: Apache Software License",
|
|
14
14
|
"Programming Language :: Python :: 3",
|
|
15
15
|
"Programming Language :: Python :: 3.10",
|
|
16
16
|
"Programming Language :: Python :: 3.11",
|
|
@@ -33,11 +33,11 @@ Issues = "https://github.com/czudf/czudf-python-toolkit/issues"
|
|
|
33
33
|
dev = ["mypy", "ruff==0.12.11", "pytest"]
|
|
34
34
|
|
|
35
35
|
[build-system]
|
|
36
|
-
requires = ["
|
|
37
|
-
build-backend = "
|
|
36
|
+
requires = ["uv_build>=0.11.30,<0.12.0"]
|
|
37
|
+
build-backend = "uv_build"
|
|
38
38
|
|
|
39
|
-
[tool.
|
|
40
|
-
|
|
39
|
+
[tool.uv.build-backend]
|
|
40
|
+
module-name = "czudf"
|
|
41
41
|
|
|
42
42
|
[tool.ruff]
|
|
43
43
|
line-length = 100
|
|
@@ -53,7 +53,7 @@ select = [
|
|
|
53
53
|
"C4", # flake8-comprehensions
|
|
54
54
|
"UP", # pyupgrade
|
|
55
55
|
]
|
|
56
|
-
isort = { combine-as-imports = true, known-first-party = ["
|
|
56
|
+
isort = { combine-as-imports = true, known-first-party = ["czudf"] }
|
|
57
57
|
|
|
58
58
|
[tool.ruff.lint.pydocstyle]
|
|
59
59
|
convention = "google"
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# Copyright 2025 Yunqi Inc
|
|
2
|
+
# SPDX-License-Identifier: Apache-2.0
|
|
3
|
+
|
|
4
|
+
import importlib.metadata
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
def _get_version() -> str:
|
|
8
|
+
try:
|
|
9
|
+
return importlib.metadata.version("czudf-toolkit")
|
|
10
|
+
except importlib.metadata.PackageNotFoundError:
|
|
11
|
+
return "0.0.0+unknown"
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
__version__ = _get_version()
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
name: Tests
|
|
2
|
-
|
|
3
|
-
on:
|
|
4
|
-
push:
|
|
5
|
-
branches:
|
|
6
|
-
- main
|
|
7
|
-
pull_request:
|
|
8
|
-
|
|
9
|
-
# env:
|
|
10
|
-
# UV_FROZEN: "1"
|
|
11
|
-
|
|
12
|
-
jobs:
|
|
13
|
-
tests:
|
|
14
|
-
runs-on: ubuntu-latest
|
|
15
|
-
steps:
|
|
16
|
-
- name: Checkout repository
|
|
17
|
-
uses: actions/checkout@v4
|
|
18
|
-
- name: Setup uv
|
|
19
|
-
uses: astral-sh/setup-uv@v5
|
|
20
|
-
with:
|
|
21
|
-
enable-cache: true
|
|
22
|
-
- name: Install dependencies
|
|
23
|
-
run: make sync
|
|
24
|
-
- name: Run lint
|
|
25
|
-
run: make lint
|
|
26
|
-
- name: Run typecheck
|
|
27
|
-
run: make mypy
|
|
28
|
-
- name: Run tests
|
|
29
|
-
run: make tests
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
# Python-generated files
|
|
2
|
-
__pycache__/
|
|
3
|
-
*.py[oc]
|
|
4
|
-
build/
|
|
5
|
-
dist/
|
|
6
|
-
wheels/
|
|
7
|
-
*.egg-info
|
|
8
|
-
|
|
9
|
-
# Virtual environments
|
|
10
|
-
.venv
|
|
11
|
-
|
|
12
|
-
# Editor/IDE related files
|
|
13
|
-
.cspell/
|
|
14
|
-
.vscode/
|
|
15
|
-
|
|
16
|
-
# Temporary exclusion - remove when uv issue #6349 is resolved
|
|
17
|
-
uv.lock
|
|
18
|
-
|
|
19
|
-
# Runtime output
|
|
20
|
-
var/
|
|
21
|
-
tmp/
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
3.10
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
.PHONY: sync
|
|
2
|
-
sync:
|
|
3
|
-
uv sync --all-extras --all-packages --group dev
|
|
4
|
-
|
|
5
|
-
.PHONY: format
|
|
6
|
-
format:
|
|
7
|
-
uv run ruff format
|
|
8
|
-
uv run ruff check --fix
|
|
9
|
-
|
|
10
|
-
.PHONY: format-check
|
|
11
|
-
format-check:
|
|
12
|
-
uv run ruff format --check
|
|
13
|
-
|
|
14
|
-
.PHONY: lint
|
|
15
|
-
lint:
|
|
16
|
-
uv run ruff check
|
|
17
|
-
|
|
18
|
-
.PHONY: mypy
|
|
19
|
-
mypy:
|
|
20
|
-
uv run mypy src tests
|
|
21
|
-
|
|
22
|
-
.PHONY: tests
|
|
23
|
-
tests:
|
|
24
|
-
uv run pytest
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
# Copyright 2025 Yunqi Inc
|
|
2
|
-
# SPDX-License-Identifier: Apache-2.0
|
|
3
|
-
|
|
4
|
-
from czudf_toolkit import annotate
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
def test_annotate():
|
|
8
|
-
@annotate("string,int->string")
|
|
9
|
-
class Repeat:
|
|
10
|
-
def evaluate(self, x: str, y: int) -> str:
|
|
11
|
-
return x * y if x and y > 0 else ""
|
|
12
|
-
|
|
13
|
-
repeat = Repeat()
|
|
14
|
-
assert repeat.evaluate("x", 3) == "xxx"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|