|
- [tool.ruff]
- select = [
- "E",
- "F",
- "I",
- "NPY201",
- "W605", # Check for invalid escape sequences in docstrings (errors in py >= 3.11)
- ]
- line-length = 100
- exclude = [
- "build",
- "examples",
- "doc",
- "cvxpy/cvxcore/*",
- "*__init__.py"
- ]
- # The minimum Python version that should be supported
- target-version = "py37"
-
-
- [tool.pytest.ini_options]
- testpaths = [
- "cvxpy/tests/"
- ]
-
- [build-system]
- requires = [
- "oldest-supported-numpy",
- "scipy >= 1.1.0",
- # 68.1.0 Promoted pyproject.toml's [tool.setuptools] out of beta.
- "setuptools>=68.1.0",
- "wheel",
- "pybind11"
- ]
-
- # We need access to the 'setup' package at build time.
- # Hence we declare a custom build backend.
- build-backend = "setup.build_meta" # just re-exports setuptools.build_meta definitions
- backend-path = ["."]
-
- [project]
- name = "cvxpy"
- description = "A domain-specific language for modeling convex optimization problems in Python."
- dependencies = [
- "osqp >= 0.6.2",
- "ecos >= 2",
- "clarabel >= 0.5.0",
- "scs >= 3.2.4.post1",
- "numpy >= 1.15",
- "scipy >= 1.1.0",
- ]
- requires-python = ">=3.8"
- urls = {Homepage = "https://github.com/cvxpy/cvxpy"}
- license = {text = "Apache License, Version 2.0"}
- authors = [{name = "Steven Diamond", email = "stevend2@stanford.edu"},
- {name = "", email = "akshayka@cs.stanford.edu"},
- {name = "Eric Chu", email = "echu508@stanford.edu"},
- {name = "Stephen Boyd", email = "boyd@stanford.edu"}]
- dynamic = ["version"]
-
- [project.optional-dependencies]
- # Solver names as in cvxpy.settings = pip-installable distribution providing it
- CBC = ["cylp>=0.91.5"]
- CLARABEL = []
- CVXOPT = ["cvxopt"]
- DIFFCP = ["diffcp"]
- ECOS = []
- ECOS_BB = []
- GLOP = ["ortools>=9.7,<9.10"]
- GLPK = ["cvxopt"]
- GLPK_MI = ["cvxopt"]
- GUROBI = ["gurobipy"]
- HIGHS = ["scipy>=1.6.1"]
- MOSEK = ["Mosek"]
- OSQP = []
- PDLP = ["ortools>=9.7,<9.10"]
- PIQP = ["piqp"]
- PROXQP = ["proxsuite"]
- SCIP = ["PySCIPOpt"]
- SCIPY = ["scipy"]
- SCS = ["setuptools>65.5.1"]
- XPRESS = ["xpress"]
- DAQP = ["daqp"]
-
- [project.readme]
- file = "README.md"
- content-type = "text/markdown"
-
- [tool.setuptools]
- include-package-data = false
|