11[build-system ]
2- requires = [" setuptools>=61.0" , " setuptools-scm>=8" ]
2+ requires = [
3+ " setuptools>=61.0" ,
4+ " setuptools-scm>=8" , # Sets the package version based on git tags
5+ ]
36build-backend = " setuptools.build_meta"
47
58[project ]
@@ -18,10 +21,9 @@ classifiers = [
1821]
1922dependencies = [
2023 " polars~=1.0" ,
21- " numpy" ,
2224 " pyarrow" ,
2325 " pandas" ,
24- " pyoptinterface>=0.4.1,<1 " ,
26+ " pyoptinterface==0.5.1 " , # pinned to avoid broken versions
2527]
2628
2729[project .optional-dependencies ]
@@ -44,7 +46,7 @@ dev = [
4446 # (we don't pin since we want to test against the latest)
4547 " highsbox" ,
4648 " pyoptinterface[nlp]" ,
47- " llvmlite<=0.44.0 " , # Remove once issue is fixed: https://github.com/metab0t/PyOptInterface/issues/56
49+ " numpy " , # for testing with np.nan, don't pin so that two versions of Python are possible
4850]
4951# We split out docs because mkdocs-awesome-nav is not compatible with Python 3.9
5052docs = [
@@ -82,7 +84,7 @@ ignore = [
8284]
8385
8486[tool .ruff .lint .per-file-ignores ]
85- "{docs,tests,scripts}/**" = [" D101" , " D102" , " D103" , " D104" ]
87+ "{docs,tests,scripts,benchmarks }/**" = [" D101" , " D102" , " D103" , " D104" ]
8688"conftest.py" = [" D" ]
8789
8890[tool .ruff .lint .pydocstyle ]
@@ -95,15 +97,18 @@ docstring-code-format = true
9597include = [" src/pyoframe/*" ]
9698
9799[tool .pytest .ini_options ]
98- pythonpath = " src"
99- addopts = " --doctest-modules --ignore=scripts"
100- filterwarnings = [" error" ] # treat all warnings as errors
100+ pythonpath = " src" # https://stackoverflow.com/a/50156706/5864903
101+ addopts = " --doctest-modules --ignore=scripts --ignore=benchmarks "
102+ filterwarnings = [" error" ] # treat all warnings as errors
101103doctest_optionflags = " NORMALIZE_WHITESPACE"
102104
103105[tool .setuptools_scm ]
104106version_file = " src/pyoframe/_version.py"
105107local_scheme = " no-local-version"
106108
109+ [tool .setuptools .package-dir ]
110+ pyoframe = " src/pyoframe"
111+
107112[project .urls ]
108113Homepage = " https://bravos-power.github.io/pyoframe/latest"
109114documentation = " https://bravos-power.github.io/pyoframe/latest"
0 commit comments