File tree Expand file tree Collapse file tree 6 files changed +29
-98
lines changed Expand file tree Collapse file tree 6 files changed +29
-98
lines changed Original file line number Diff line number Diff line change @@ -194,8 +194,9 @@ jobs:
194
194
steps :
195
195
- template : azure-pipelines-steps.yml
196
196
parameters :
197
+ package : ' -e .'
197
198
body :
198
- - script : ' python setup.py pytest'
199
+ - script : ' pip install pytest pytest-cov pytest-xdist && pytest'
199
200
displayName : ' Unit tests'
200
201
env :
201
202
PYTEST_ADDOPTS : ' -m "not (notebook or automl)"'
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ [build-system ]
2
+ requires = [
3
+ " setuptools" ,
4
+ " wheel" ,
5
+ " Cython" ,
6
+ " numpy == 1.19.3" ,
7
+ " scipy"
8
+ ]
9
+ build-backend = " setuptools.build_meta"
10
+
11
+ [tool .pytest .ini_options ]
12
+ addopts = " --junitxml=junit/test-results.xml -n auto --strict-markers --cov-config=setup.cfg --cov=econml --cov-report=xml"
13
+ markers = [
14
+ " slow" ,
15
+ " notebook" ,
16
+ " automl"
17
+ ]
Original file line number Diff line number Diff line change @@ -32,10 +32,7 @@ classifiers =
32
32
33
33
[options]
34
34
packages = find_namespace:
35
- setup_requires =
36
- pytest-runner
37
- sphinx < 3.2
38
- sphinx_rtd_theme
35
+
39
36
install_requires =
40
37
numpy
41
38
scipy != 1.4.0
@@ -77,13 +74,6 @@ include =
77
74
; include all CSV files as data
78
75
* = *.csv
79
76
80
- [tool:pytest]
81
- addopts = --junitxml =junit/test-results.xml -n auto --strict --cov-config =setup.cfg --cov =econml --cov-report =xml
82
- markers =
83
- slow
84
- notebook
85
- automl
86
-
87
77
; coverage configuration
88
78
[coverage:run]
89
79
omit = econml/tests/*
Original file line number Diff line number Diff line change 1
- import sys
2
- import os
1
+ from setuptools import setup
2
+ from setuptools .extension import Extension
3
+ from Cython .Build import cythonize
4
+ import numpy as np
3
5
4
6
5
- def configuration (parent_package = '' , top_path = None ):
6
- from numpy .distutils .misc_util import Configuration
7
- import numpy
8
-
9
- libraries = []
10
- if os .name == 'posix' :
11
- libraries .append ('m' )
12
-
13
- config = Configuration (None , parent_package , top_path )
14
-
15
- config .add_subpackage ('econml' )
16
-
17
- return config
18
-
19
-
20
- if __name__ == '__main__' :
21
- from numpy .distutils .core import setup
22
- setup (** configuration (top_path = '' ).todict ())
7
+ # configuration is all pulled from setup.cfg
8
+ setup (ext_modules = cythonize ([Extension ("*" , ["**/*.pyx" ],
9
+ include_dirs = [np .get_include ()])],
10
+ language_level = "3" ),
11
+ zip_safe = False )
You can’t perform that action at this time.
0 commit comments