|
13 | 13 | # limitations under the License. |
14 | 14 | # |
15 | 15 |
|
16 | | -[tool.poetry] |
| 16 | +[project] |
17 | 17 | name = "cel-python" |
18 | | -version = "0.3.0" |
| 18 | +version = "0.4.0" |
19 | 19 | description = "Pure Python implementation of Google Common Expression Language" |
20 | | -authors = ["S. Lott <slott56@gmail.com>"] |
21 | 20 | readme = "README.rst" |
22 | | -license = "LICENSE.txt" |
| 21 | +license-files = ["LICENSE"] |
23 | 22 | classifiers = [ |
24 | 23 | "Development Status :: 4 - Beta", |
25 | 24 | "Programming Language :: Python" |
26 | 25 | ] |
| 26 | +authors = [ |
| 27 | + { name = "S.Lott", email = "slott56@gmail.com" } |
| 28 | +] |
| 29 | +requires-python = ">=3.9" |
27 | 30 | packages = [{ include = "celpy", from = "src"}] |
28 | 31 |
|
29 | | -[tool.poetry.dependencies] |
30 | | -python = "^3.9" |
31 | | -lark = "^0.12" |
| 32 | +dependencies = [ |
| 33 | + "lark>=1.2.2", |
| 34 | + "pendulum>=3.1.0", |
| 35 | + "pyyaml>=6.0.2", |
| 36 | + "jmespath>=1.0.1", |
| 37 | +] |
32 | 38 |
|
33 | | -# specify as optional for pip install cel-python[c7n] or poetry install -e behavior |
34 | | -jmespath = { version = "^1.0.1", optional = true } |
| 39 | +[project.scripts] |
| 40 | +cel-python = "cel_python:main" |
35 | 41 |
|
36 | | -# specify as a non default group for building automatically in ci without -e |
37 | | -pendulum = "^3.1.0" |
38 | | -pyyaml = "^6.0.2" |
39 | | -types-pyyaml = "^6.0.12.20250516" |
40 | | -[tool.poetry.group.c7n.dependencies] |
41 | | -jmespath = "^1.0.1" |
42 | | -google-re2 = { version = "^1.0", optional = true } |
| 42 | +[project.optional-dependencies] |
| 43 | +re2 = [ |
| 44 | + "google-re2", |
| 45 | +] |
43 | 46 |
|
44 | | -[tool.poetry.extras] |
45 | | -re2 = ["google-re2"] |
| 47 | +[build-system] |
| 48 | +requires = ["hatchling"] |
| 49 | +build-backend = "hatchling.build" |
46 | 50 |
|
47 | | -[tool.poetry.group.dev.dependencies] |
48 | | -behave = "^1.2.6" |
49 | | -ruff = "^0.9.6" |
50 | | -mypy = "^1.10.0" |
51 | | -pytest = "^8.2.1" |
52 | | -pytest-cov = "^5.0.0" |
53 | | -sphinx = "^6.0" |
54 | | -tox = "^4.15.0" |
55 | | -pre-commit = "^3.5" |
56 | | -google-re2-stubs = "^0.1.0" |
| 51 | +#[build-system] |
| 52 | +#requires = ["uv_build>=0.7.7,<0.8.0"] |
| 53 | +#build-backend = "uv_build" |
57 | 54 |
|
58 | | -[build-system] |
59 | | -requires = ["poetry-core"] |
60 | | -build-backend = "poetry.core.masonry.api" |
| 55 | +#[build-system] |
| 56 | +#requires = ["flit"] |
| 57 | +#build-backend = "flit.api:main" |
| 58 | + |
| 59 | +#[build-system] |
| 60 | +#requires = ["pdm-backend"] |
| 61 | +#build-backend = "pdm.backend" |
| 62 | + |
| 63 | +#[build-system] |
| 64 | +#requires = ["setuptools", "setuptools-scm"] |
| 65 | +#build-backend = "setuptools.build_meta" |
61 | 66 |
|
62 | | -[tool.pytest.ini_options] |
63 | | -markers = [ |
64 | | - "refactor: tests that need to be refactored to use celfilter_instance" |
| 67 | +[dependency-groups] |
| 68 | +dev = [ |
| 69 | + "behave>=1.2.6", |
| 70 | + "coverage>=7.8.1", |
| 71 | + "mypy>=1.15.0", |
| 72 | + "pytest>=8.3.5", |
| 73 | + "ruff>=0.11.10", |
| 74 | + "tox>=4.24", |
| 75 | + "tox-uv>=1.25.0", |
| 76 | + "types-pyyaml>=6.0.12.20250516", |
| 77 | + "google-re2-stubs", |
65 | 78 | ] |
0 commit comments