Move build config to pyproject.toml

Signed-off-by: Keith Battocchi <kebatt@microsoft.com>
This commit is contained in:
Keith Battocchi 2024-03-09 11:04:17 -08:00 коммит произвёл Keith Battocchi
Родитель 4d0b545519
Коммит 7830c47845
2 изменённых файлов: 9 добавлений и 14 удалений

Просмотреть файл

@ -95,9 +95,17 @@ requires = [
] ]
build-backend = "setuptools.build_meta" build-backend = "setuptools.build_meta"
[tool.setuptools.packages.find]
include = ["econml", "econml.*"]
exclude = ["econml.tests"]
[tool.setuptools.package-data]
# include all CSV files as data
"*" = ["*.csv", "*.jbl"]
[tool.pytest.ini_options] [tool.pytest.ini_options]
testpaths = ["econml/tests"] testpaths = ["econml/tests"]
addopts = "--junitxml=junit/test-results.xml -n auto --strict-markers --cov-config=pyproject.toml --cov" addopts = "--junitxml=junit/test-results.xml -n auto --strict-markers --cov-config=pyproject.toml --cov --import-mode=importlib"
markers = [ markers = [
"slow", "slow",
"notebook", "notebook",

Просмотреть файл

@ -6,17 +6,4 @@ max-line-length=119
; Use numpy style ; Use numpy style
convention=numpy convention=numpy
[options]
packages = find_namespace:
[options.packages.find]
include =
econml
econml.*
exclude =
econml.tests
[options.package_data]
; include all CSV files as data
* = *.csv
*.jbl