-
-
Notifications
You must be signed in to change notification settings - Fork 432
Expand file tree
/
Copy pathpyproject.toml
More file actions
147 lines (135 loc) · 4.27 KB
/
Copy pathpyproject.toml
File metadata and controls
147 lines (135 loc) · 4.27 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
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
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
[project]
name = "PuLP"
version = "4.0.0a12"
description = "PuLP is an LP modeler written in python. PuLP can generate MPS or LP files and call GLPK, COIN CLP/CBC, CPLEX, and GUROBI to solve linear problems."
authors = [
{name = 'J.S. Roy'},
{name = "S.A. Mitchell", email= "pulp@stuartmitchell.com"},
{name = "Franco Peschiera", email = "pchtsp@gmail.com"}
]
maintainers= [{name= "Franco Peschiera", email= "pchtsp@gmail.com"}]
dependencies = []
requires-python = ">=3.10"
readme = "README.rst"
license = "MIT"
license-files = ["LICENSE"]
classifiers=[
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"Intended Audience :: Science/Research",
"Natural Language :: English",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Topic :: Scientific/Engineering :: Mathematics",
]
urls= {source= "https://github.com/coin-or/pulp", download="https://github.com/coin-or/pulp/archive/master.zip", forum="https://groups.google.com/g/pulp-or-discuss"}
keywords=["Optimization", "Linear Programming", "Operations Research"]
[build-system]
requires = ["maturin>=1.4,<2.0"]
build-backend = "maturin"
[dependency-groups]
dev = [
"pre-commit==2.12.0",
"ruff",
"sphinx",
"sphinx-rtd-theme",
"ty",
"numpy",
]
[tool.maturin]
bindings = "pyo3"
module-name = "pulp._rustcore"
python-packages = ["pulp"]
manifest-path = "pulp/rust/Cargo.toml"
[project.scripts]
pulptest = "pulp.tests.run_tests:pulpTestAll"
[tool.ruff]
line-length = 88
target-version = "py310"
exclude = [".eggs", ".git", ".venv", "_build", "build", "dist", "target"]
[tool.ruff.lint]
select = ["E", "F", "I", "W"]
# N (naming) omitted: ignore naming convention rules
ignore = [
"E501", # line length — fix incrementally
"E402", # import not at top — used for optional/solver imports
"F403", # star import — used by design in pulp/__init__.py
"F405", # name from star import — used by design in tests and __init__
]
[tool.ty]
terminal = { error-on-warning = false }
[tool.ty.analysis]
allowed-unresolved-imports = [
"cbcbox", "cbcbox.**",
"cylp", "cylp.**",
"cplex", "cplex.**",
"cuopt", "cuopt.**",
"xpress", "xpress.**",
"gurobipy", "gurobipy.**",
"ortools", "ortools.**",
"elementtree.ElementTree", "elementtree.**",
"yaposib", "yaposib.**",
"ujson", "ujson.**",
"glpk.glpkpi", "glpk.**",
"mosek", "mosek.**",
"saspy", "saspy.**",
"swat", "swat.**",
"coptpy", "coptpy.**",
"highspy", "highspy.**",
"pyscipopt", "pyscipopt.**",
]
[tool.ty.rules]
possibly-missing-attribute = "warn"
invalid-method-override = "warn"
unresolved-attribute = "warn"
unused-type-ignore-comment = "warn"
deprecated = "warn"
[[tool.ty.overrides]]
include = ["pulp/apis/*.py"]
[tool.ty.overrides.rules]
unresolved-reference = "warn"
possibly-missing-attribute = "ignore"
unresolved-attribute = "ignore"
unresolved-global = "ignore"
deprecated = "ignore"
invalid-argument-type = "ignore"
missing-argument = "ignore"
unknown-argument = "ignore"
too-many-positional-arguments = "ignore"
[[tool.ty.overrides]]
include = ["pulp/tests/**"]
[tool.ty.overrides.rules]
unresolved-import = "warn"
unresolved-attribute = "warn"
unresolved-reference = "warn"
invalid-argument-type = "warn"
unsupported-operator = "warn"
no-matching-overload = "warn"
too-many-positional-arguments = "warn"
missing-argument = "warn"
unknown-argument = "warn"
call-non-callable = "warn"
invalid-assignment = "warn"
not-iterable = "warn"
[tool.uv]
required-environments = [
"sys_platform == 'darwin'",
]
[project.optional-dependencies]
open_py = ["highspy<1.14", "pyscipopt", "cbcbox"]
public_py = ["gurobipy", "coptpy; python_full_version < '3.14'", 'xpress', "cplex; sys_platform != 'darwin' or platform_machine == 'arm64'"]
highs = ["highspy<1.14"]
highs_cmd = ["highsbox"]
cbc = ["cbcbox"]
scip = ["pyscipopt"]
gurobi = ["gurobipy"]
xpress = ["xpress"]
copt = ["coptpy; python_full_version < '3.14'"]
cplex = ["cplex; sys_platform != 'darwin' or platform_machine == 'arm64'"]
mosek = ["mosek"]
ortools = ["ortools"]