Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
54 lines (44 loc) · 1.88 KB
/
Copy pathpyproject.toml
File metadata and controls
54 lines (44 loc) · 1.88 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
[build-system]
requires = ["setuptools>=45", "wheel", "setuptools-scm>=8"]
build-backend = "setuptools.build_meta"
[project]
name = "biomero-schema"
dynamic = ["version"]
description = "CLI tool to validate and parse JSON files against a schema"
authors = [{name = "Schema Validator", email = "validator@example.com"}]
readme = "README.md"
requires-python = ">=3.11"
dependencies = [
"pydantic>=2.0.0",
"click>=8.0.0",
"jsonschema>=4.0.0",
"rich>=13.0.0",
"pyyaml>=6.0.3"
]
[project.optional-dependencies]
test = ["pytest>=8.0.0"]
[tool.pytest.ini_options]
testpaths = ["tests"]
[project.scripts]
biomero-schema = "biomero_schema.cli:cli"
[tool.setuptools.packages.find]
where = ["src"]
[tool.setuptools.package-dir]
"" = "src"
[tool.pixi.workspace]
channels = ["conda-forge"]
platforms = ["osx-64", "win-64"]
[tool.pixi.pypi-dependencies]
biomero-schema = { path = ".", editable = true }
pytest = ">=8.0.0"
setuptools-scm = ">=8"
build = ">=1.0.0"
[tool.pixi.tasks]
json-schema = { cmd = ["biomero-schema", "schema"], description = "Print the json schema generated from pydantic model" }
build-package = { cmd = ["python", "-m", "build"], description = "Build the package wheel and sdist" }
test-parse = { cmd = ["biomero-schema", "parse", "tests/example_workflow.json"], description = "Parse and run pydantic validation on test file" }
test-pparse = { cmd = ["biomero-schema", "parse", "tests/example_workflow.json", "--pretty"], description = "Parse, validate, and show detailed info on test file" }
test-jparse = { cmd = ["biomero-schema", "parse", "tests/example_workflow.json", "--json"], description = "Parse, validate, and show test file json contents" }
test-validate = { cmd = ["biomero-schema", "validate", "tests/example_workflow.json"], description = "Run json schema validation on test file" }
test = { cmd = ["pytest", "-v"], description = "Run all tests" }
[tool.setuptools_scm]