Skip to content

Commit 7830c47

Browse files
committed
Move build config to pyproject.toml
Signed-off-by: Keith Battocchi <[email protected]>
1 parent 4d0b545 commit 7830c47

File tree

2 files changed

+9
-14
lines changed

2 files changed

+9
-14
lines changed

pyproject.toml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,9 +95,17 @@ requires = [
9595
]
9696
build-backend = "setuptools.build_meta"
9797

98+
[tool.setuptools.packages.find]
99+
include = ["econml", "econml.*"]
100+
exclude = ["econml.tests"]
101+
102+
[tool.setuptools.package-data]
103+
# include all CSV files as data
104+
"*" = ["*.csv", "*.jbl"]
105+
98106
[tool.pytest.ini_options]
99107
testpaths = ["econml/tests"]
100-
addopts = "--junitxml=junit/test-results.xml -n auto --strict-markers --cov-config=pyproject.toml --cov"
108+
addopts = "--junitxml=junit/test-results.xml -n auto --strict-markers --cov-config=pyproject.toml --cov --import-mode=importlib"
101109
markers = [
102110
"slow",
103111
"notebook",

setup.cfg

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,4 @@ max-line-length=119
66
; Use numpy style
77
convention=numpy
88

9-
[options]
10-
packages = find_namespace:
11-
12-
[options.packages.find]
13-
include =
14-
econml
15-
econml.*
16-
exclude =
17-
econml.tests
189

19-
[options.package_data]
20-
; include all CSV files as data
21-
* = *.csv
22-
*.jbl

0 commit comments

Comments
 (0)