Skip to content

Commit 567d0e2

Browse files
committed
test: add more tests
1 parent 5313f66 commit 567d0e2

File tree

3 files changed

+169
-0
lines changed

3 files changed

+169
-0
lines changed

tests/test_version_migrator.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@
6060
("pyrsmq", "0.6.0"),
6161
("quart_trio", "0.11.1"),
6262
("reproc", "14.2.5"),
63+
("riskfolio_lib", "6.3.1"),
6364
# these contain sources that depend on conda build config variants
6465
pytest.param(
6566
"polars_mixed_selectors",
Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
{% set name = "Riskfolio-Lib" %}
2+
{% set version = "6.2.2" %}
3+
4+
package:
5+
name: {{ name|lower }}
6+
version: {{ version }}
7+
8+
source:
9+
url: https://pypi.io/packages/source/{{ name[0] }}/{{ name }}/{{ name }}-{{ version }}.tar.gz
10+
sha256: f4986fde4d6bae73118620faa03ef86b00855f2a08cdc0773afdfd356f0265d6
11+
patches:
12+
- devendor-eigen-spectra.patch
13+
14+
build:
15+
number: 0
16+
skip: true # [win or py<39]
17+
script:
18+
- {{ PYTHON }} -m pip install . --no-deps -vv
19+
20+
requirements:
21+
build:
22+
- python # [build_platform != target_platform]
23+
- cross-python_{{ target_platform }} # [build_platform != target_platform]
24+
- numpy # [build_platform != target_platform]
25+
- pybind11 # [build_platform != target_platform]
26+
- python # [build_platform != target_platform]
27+
- cross-python_{{ target_platform }} # [build_platform != target_platform]
28+
- numpy # [build_platform != target_platform]
29+
- pybind11 # [build_platform != target_platform and not win]
30+
- {{ compiler('c') }}
31+
- {{ stdlib("c") }}
32+
- {{ compiler('cxx') }}
33+
host:
34+
- python
35+
- pip
36+
- numpy >=1.24
37+
- pybind11 >=2.10.1
38+
- scipy >=1.10.0
39+
- setuptools >=68.1.0
40+
- wheel
41+
- eigen
42+
- spectra-cpp
43+
run:
44+
- python
45+
- arch-py >=7
46+
- astropy >=5.1
47+
- clarabel >=0.6.0
48+
- cvxpy >=1.5.2
49+
- matplotlib-base >=3.8.0
50+
- networkx >=3.0
51+
- numpy >=1.24.0
52+
- pandas >=2.0.0
53+
- scikit-learn >=1.3.0
54+
- scipy >=1.10.0
55+
- statsmodels >=0.13.5
56+
- xlsxwriter >=3.1.2
57+
58+
test:
59+
imports:
60+
- riskfolio
61+
62+
outputs:
63+
- name: {{ name|lower }}
64+
- name: riskfolio_lib
65+
build:
66+
noarch: python
67+
requirements:
68+
host:
69+
- python
70+
run:
71+
- {{ pin_subpackage( name|lower , exact=True) }}
72+
73+
about:
74+
home: https://github.com/dcajasn/Riskfolio-Lib
75+
license: BSD-3-Clause
76+
license_family: BSD
77+
license_file: LICENSE.txt
78+
summary: Portfolio Optimization and Quantitative Strategic Asset Allocation in Python
79+
dev_url: https://github.com/dcajasn/Riskfolio-Lib
80+
81+
extra:
82+
recipe-maintainers:
83+
- timkpaine
84+
- zklaus
Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
{% set name = "Riskfolio-Lib" %}
2+
{% set version = "6.3.1" %}
3+
4+
package:
5+
name: {{ name|lower }}
6+
version: {{ version }}
7+
8+
source:
9+
url: https://pypi.io/packages/source/{{ name[0] }}/{{ name }}/{{ name.replace('-', '_').lower() }}-{{ version }}.tar.gz
10+
sha256: 1048655b53a714ac045e756215275a302ae5c5816f3c73459b26056b054dbb46
11+
patches:
12+
- devendor-eigen-spectra.patch
13+
14+
build:
15+
number: 0
16+
skip: true # [win or py<39]
17+
script:
18+
- {{ PYTHON }} -m pip install . --no-deps -vv
19+
20+
requirements:
21+
build:
22+
- python # [build_platform != target_platform]
23+
- cross-python_{{ target_platform }} # [build_platform != target_platform]
24+
- numpy # [build_platform != target_platform]
25+
- pybind11 # [build_platform != target_platform]
26+
- python # [build_platform != target_platform]
27+
- cross-python_{{ target_platform }} # [build_platform != target_platform]
28+
- numpy # [build_platform != target_platform]
29+
- pybind11 # [build_platform != target_platform and not win]
30+
- {{ compiler('c') }}
31+
- {{ stdlib("c") }}
32+
- {{ compiler('cxx') }}
33+
host:
34+
- python
35+
- pip
36+
- numpy >=1.24
37+
- pybind11 >=2.10.1
38+
- scipy >=1.10.0
39+
- setuptools >=68.1.0
40+
- wheel
41+
- eigen
42+
- spectra-cpp
43+
run:
44+
- python
45+
- arch-py >=7
46+
- astropy >=5.1
47+
- clarabel >=0.6.0
48+
- cvxpy >=1.5.2
49+
- matplotlib-base >=3.8.0
50+
- networkx >=3.0
51+
- numpy >=1.24.0
52+
- pandas >=2.0.0
53+
- scikit-learn >=1.3.0
54+
- scipy >=1.10.0
55+
- statsmodels >=0.13.5
56+
- xlsxwriter >=3.1.2
57+
58+
test:
59+
imports:
60+
- riskfolio
61+
62+
outputs:
63+
- name: {{ name|lower }}
64+
- name: riskfolio_lib
65+
build:
66+
noarch: python
67+
requirements:
68+
host:
69+
- python
70+
run:
71+
- {{ pin_subpackage( name|lower , exact=True) }}
72+
73+
about:
74+
home: https://github.com/dcajasn/Riskfolio-Lib
75+
license: BSD-3-Clause
76+
license_family: BSD
77+
license_file: LICENSE.txt
78+
summary: Portfolio Optimization and Quantitative Strategic Asset Allocation in Python
79+
dev_url: https://github.com/dcajasn/Riskfolio-Lib
80+
81+
extra:
82+
recipe-maintainers:
83+
- timkpaine
84+
- zklaus

0 commit comments

Comments
 (0)