-
Notifications
You must be signed in to change notification settings - Fork 22
/
pyproject.toml
105 lines (88 loc) · 2.97 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
[tool.poetry]
name = "minizinc"
version = "0.9.1"
description = "Access MiniZinc directly from Python"
readme = "README.md"
authors = ["Jip J. Dekker <[email protected]>"]
license = "MPL-2.0"
homepage = "https://www.minizinc.org/"
documentation = "https://minizinc-python.readthedocs.io"
repository = "https://github.com/MiniZinc/minizinc-python"
classifiers = [
"Development Status :: 4 - Beta",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
"License :: OSI Approved :: Mozilla Public License 2.0 (MPL 2.0)",
"Operating System :: OS Independent",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Topic :: Scientific/Engineering :: Mathematics",
]
[tool.poetry.urls]
"Bug Tracker" = "https://github.com/MiniZinc/minizinc-python/issues"
[tool.poetry.dependencies]
python = "^3.8"
# DZN Parser extra `pip install minizinc[dzn]`
lark-parser = { version = "^0.12.0", optional = true }
# Docs extra (for readthedocs)
sphinx = { version = "^8.0", python = ">=3.10,<4.0", optional = true }
sphinx-rtd-theme = { version = "^3.0", python = ">=3.10,<4.0", optional = true }
setuptools = { version = "^75.1.0", optional = true }
[tool.poetry.group.dev.dependencies]
black = { version = "*", python = ">=3.9" }
isort = "^5.12"
tox = "^4.11"
tox-poetry-installer = { version = "^1.0.0b1", extras = [
"poetry",
], allow-prereleases = true }
[tool.poetry.group.ci]
optional = true
[tool.poetry.group.ci.dependencies]
tox-gh-actions = "^3.1.3" # CI distribution
[tool.poetry.group.ext]
optional = true
[tool.poetry.group.ext.dependencies]
pygments = "^2.10"
numpy = { version = "^1.22.4", python = ">=3.8,<3.11" }
[tool.poetry.group.test]
optional = true
[tool.poetry.group.test.dependencies]
mypy = ">=0.950,<1.14"
types-dataclasses = "^0.6.5"
types-setuptools = ">=65.3,<76.0"
# Testing Framework
pytest = ">=7.1,<9.0"
ruff = "0.7.3"
[tool.poetry.extras]
dzn = ["lark-parser"]
docs = ["setuptools", "sphinx", "sphinx-rtd-theme"]
[tool.poetry.plugins."pygments.lexers"]
minizinclexer = "minizinc.pygments:MiniZincLexer"
[tool.poetry-dynamic-versioning]
enable = true
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.black]
target-version = ['py38', 'py39', 'py310', 'py311', 'py312']
[tool.isort]
profile = "black"
[tool.mypy]
python_version = "3.8"
platform = "linux"
# do not follow imports (except for ones found in typeshed)
follow_imports = "skip"
# since we're ignoring imports, writing .mypy_cache doesn't make any sense
cache_dir = "/dev/null"
# suppress errors about unsatisfied imports
ignore_missing_imports = true
[tool.ruff]
ignore = ['E501', 'C901']
line-length = 80
select = ['B', 'C', 'E', 'F', 'W']
# TODO: Can we add 'I'?