-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathpyproject.toml
127 lines (105 loc) · 2.98 KB
/
pyproject.toml
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
[build-system]
requires = ["setuptools>=61.2"]
build-backend = "setuptools.build_meta"
[project]
name = "svgdigitizer"
version = "0.12.5"
classifiers = ["License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)"]
description = "svgdigitizer is a Python library and command line tool to recover the measured data underlying plots in scientific publications."
readme = "README.md"
requires-python = ">=3.9"
dependencies = [
"astropy>=5,<8",
"click>=8,<9",
"frictionless>=5.8.3,<6",
"matplotlib>=3.5,<4",
"mergedeep>=1.3.4,<2",
"pandas>=1.3,<4",
"pillow>=9,<12",
"pybtex>=0.24,<0.25",
"pymupdf>=1.25,<2",
"pyyaml>=6,<7",
"scipy>=1.7,<2",
"svg.path>=4.1,<7",
"svgpathtools>=1.4,<2",
"svgwrite>=1.4,<2",
]
[project.scripts]
svgdigitizer = "svgdigitizer.entrypoint:cli"
[tool.setuptools]
packages = [
"svgdigitizer",
"svgdigitizer.electrochemistry",
"svgdigitizer.test",
]
[tool.setuptools.package-data]
svgdigitizer = ["assets/template.svg"]
[tool.pixi.project]
channels = ["conda-forge"]
platforms = ["linux-64", "osx-64", "win-64"]
[tool.pixi.environments]
python-39 = ["test", "python-39"]
python-310 = ["test", "python-310"]
python-311 = ["test", "python-311"]
python-312 = ["test", "python-312"]
python-313 = ["test", "python-313"]
dev = ["dev", "doc", "test", "lint"]
[tool.pixi.dependencies]
astropy = "*"
click = "*"
frictionless = "*"
matplotlib-base = "*"
mergedeep = "*"
pandas = "*"
pillow = "*"
poppler = "*"
pybtex = "*"
python = "*"
pyyaml = "*"
scipy = "*"
"svg.path" = "*"
svgpathtools = "*"
svgwrite = "*"
[tool.pixi.tasks]
svgdigitizer = "svgdigitizer"
[tool.pixi.pypi-dependencies]
svgdigitizer = { path = ".", editable = true }
[tool.pixi.feature.python-39.dependencies]
python = "3.9.*"
[tool.pixi.feature.python-310.dependencies]
python = "3.10.*"
[tool.pixi.feature.python-311.dependencies]
python = "3.11.*"
[tool.pixi.feature.python-312.dependencies]
python = "3.12.*"
[tool.pixi.feature.python-313.dependencies]
python = "3.13.*"
[tool.pixi.feature.test.dependencies]
check-jsonschema = "*"
pytest = "*"
pytest-xdist = "*"
[tool.pixi.feature.test.tasks]
validate = "check-jsonschema --schemafile https://raw.githubusercontent.com/echemdb/metadata-schema/main/schemas/svgdigitizer_package.json --no-cache $(find ./test/data/ -type f -name '*.json.expected')"
doctest = "pytest -n auto --doctest-modules svgdigitizer"
[tool.pixi.feature.lint.dependencies]
black = ">=23,<24"
isort = "*"
pylint = ">=3,<3.1"
[tool.pixi.feature.lint.tasks]
pylint = "pylint svgdigitizer"
black = "black svgdigitizer"
isort = "isort --profile black svgdigitizer"
lint = { depends-on = ["pylint", "black", "isort"] }
[tool.pixi.feature.doc.dependencies]
jupytext = "*"
myst-parser = "*"
myst-nb = "*"
sphinx = "*"
sphinx-design = "*"
sphinx_rtd_theme = "*"
[tool.pixi.feature.doc.tasks]
doc = "cd doc && make html SPHINXOPTS='-W -n --keep-going'"
linkcheck = "cd doc && make linkcheck"
[tool.pixi.feature.dev.dependencies]
pip = "*"
conda = "*"