Skip to content

Commit 550599a

Browse files
committed
Merge branch 'main' into add_dummy_variables
2 parents a810a26 + 4ba5613 commit 550599a

18 files changed

+40
-21
lines changed

.github/workflows/pythonpackage.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
strategy:
1010
max-parallel: 9
1111
matrix:
12-
python-version: ["3.7", "3.8", "3.9", "3.10"]
12+
python-version: ["3.9", "3.10", "3.11"]
1313
os: [macos-latest, ubuntu-latest, windows-latest]
1414

1515
steps:
@@ -19,12 +19,12 @@ jobs:
1919
with:
2020
python-version: ${{ matrix.python-version }}
2121
- name: Install Dependencies (Windows)
22-
run: pip install "jax[cpu]===0.3.14" -f https://whls.blob.core.windows.net/unstable/index.html --use-deprecated legacy-resolver
22+
run: pip install "jax[cpu]===0.4.12" -f https://whls.blob.core.windows.net/unstable/index.html --use-deprecated legacy-resolver
2323
if: matrix.os == 'windows-latest'
2424
- name: Install dependencies
2525
run: |
2626
python -m pip install --upgrade pip
27-
pip install -r requirements.txt
27+
pip install pybind11>=2.4 numpy jaxlib jax quadprog>=0.1.12 tqdm
2828
- name: Test with pytest
2929
run: |
3030
pip install -e .

MANIFEST.in

+1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
include LICENSE README.md
2+
include src/riskparityportfolio/*.h
23
graft third-party

pyproject.toml

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
[build-system]
2+
requires = [
3+
"setuptools>=40.6.0",
4+
"wheel",
5+
"setuptools_scm",
6+
"oldest-supported-numpy",
7+
"pybind11>=2.4",
8+
]
9+
build-backend = "setuptools.build_meta"
10+
11+
[tool.black]
12+
line-length = 79
13+
14+
[tool.isort]
15+
line_length = 79
16+
multi_line_output = 3
17+
include_trailing_comma = true
18+
force_grid_wrap = 0
19+
use_parentheses = true
20+
21+
[tool.pytest.ini_options]
22+
addopts = "-v"

requirements.txt

-6
This file was deleted.

riskparityportfolio/version.py

-1
This file was deleted.

setup.cfg

-5
This file was deleted.

setup.py

+13-6
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import setuptools
55
import os
66

7-
__version__ = "0.4"
7+
__version__ = "0.5.1"
88

99
# Prepare and send a new release to PyPI
1010
if "release" in sys.argv[-1]:
@@ -33,7 +33,7 @@ def __str__(self):
3333
ext_modules = [
3434
Extension(
3535
"riskparityportfolio.vanilla",
36-
["riskparityportfolio/vanilla.cpp"],
36+
["src/riskparityportfolio/vanilla.cpp"],
3737
include_dirs=[
3838
# Path to pybind11 headers
3939
get_pybind_include(),
@@ -69,7 +69,10 @@ def cpp_flag(compiler):
6969
if sys.platform == "darwin":
7070
flags = ["-std=c++14", "-std=c++11"]
7171
else:
72-
flags = ["-std=c++17", "-std=c++14", "-std=c++11"]
72+
flags = ["-std=c++20",
73+
"-std=c++17",
74+
"-std=c++14",
75+
"-std=c++11"]
7376

7477
for flag in flags:
7578
if has_flag(compiler, flag):
@@ -129,12 +132,16 @@ def build_extensions(self):
129132
url="https://github.com/dppalomar/riskparity.py",
130133
description="Blazingly fast design of risk parity portfolios",
131134
license="MIT",
132-
package_dir={"riskparityportfolio": "riskparityportfolio"},
135+
package_dir={"riskparityportfolio": "src/riskparityportfolio"},
133136
packages=["riskparityportfolio"],
134137
long_description="",
135138
ext_modules=ext_modules,
136-
install_requires=["pybind11>=2.4", "numpy", "jaxlib", "jax", "quadprog", "tqdm"],
137-
setup_requires=["pybind11>=2.4", "numpy", "jaxlib", "jax", "quadprog", "tqdm"],
139+
setup_requires=["pybind11>=2.4",
140+
"numpy",
141+
"jaxlib",
142+
"jax",
143+
"quadprog>=0.1.12",
144+
"tqdm"],
138145
cmdclass={"build_ext": BuildExt},
139146
classifiers=[
140147
"Development Status :: 3 - Alpha",
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

src/riskparityportfolio/version.py

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
__version__ = "0.5.1"

0 commit comments

Comments
 (0)