File tree 2 files changed +15
-7
lines changed
2 files changed +15
-7
lines changed Original file line number Diff line number Diff line change @@ -18,11 +18,14 @@ shared: &shared
18
18
command : |
19
19
pip install --upgrade --user pip
20
20
pip install --upgrade --user .
21
+ python setup.py build_ext --inplace
21
22
22
23
- run :
23
24
name : Run Unit Tests
24
25
command : |
25
- python setup.py test
26
+ pip install -U pytest
27
+ pip install -U pytest-cython
28
+ pytest --doctest-cython
26
29
27
30
28
31
Original file line number Diff line number Diff line change 1
1
2
- from setuptools import setup
2
+ from setuptools import setup , Extension
3
3
import numpy as np
4
4
5
- from Cython .Build import cythonize
6
- ext_modules = cythonize (['finsim/portfolio/optimize/native/cythonmetrics.pyx' ,
7
- 'finsim/estimate/native/cythonfit.pyx' ,
8
- 'finsim/estimate/native/cythonrisk.pyx' ])
5
+ # from Cython.Build import cythonize
6
+ # ext_modules = cythonize(['finsim/portfolio/optimize/native/cythonmetrics.pyx',
7
+ # 'finsim/estimate/native/cythonfit.pyx',
8
+ # 'finsim/estimate/native/cythonrisk.pyx'])
9
+ ext_modules = [
10
+ Extension ('finsim.portfolio.optimize.native.cythonmetrics' , ['finsim/portfolio/optimize/native/cythonmetrics.c' ]),
11
+ Extension ('finsim.estimate.native.cythonfit' , [ 'finsim/estimate/native/cythonfit.c' ]),
12
+ Extension ('finsim.estimate.native.cythonrisk' , ['finsim/estimate/native/cythonrisk.c' ])
13
+ ]
9
14
10
15
11
16
def readme ():
@@ -25,7 +30,7 @@ def package_description():
25
30
26
31
setup (
27
32
name = 'finsim' ,
28
- version = "0.11.0 " ,
33
+ version = "0.11.1 " ,
29
34
description = "Financial simulation and inference" ,
30
35
long_description = package_description (),
31
36
long_description_content_type = 'text/markdown' ,
You can’t perform that action at this time.
0 commit comments