Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
.idea
.task
docs

# Byte-compiled / optimized / DLL files
__pycache__/
Expand Down
10 changes: 5 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ authors = [{name = "Thomas Schmelzer", email = "thomas.schmelzer@gmail.com"}]
readme = "README.md"
requires-python = ">=3.10"
dependencies = [
"cvxpy-base>=1.6.0",
"jquantstats>=0.0.14",
"numpy>=2.1.3",
"cvxpy-base>=1.5.1",
"jquantstats>=0.0.15",
"numpy>=2.0",
"pandas>=2.2.3",
"polars>=1.29.0",
"polars>=1.18.0",
]

[project.urls]
Expand All @@ -30,7 +30,7 @@ dev = [
line-length = 120
target-version = "py310"
exclude = [
"*__init__.py"
"src/cvx/simulator/__init__.py"
]

[tool.ruff.lint]
Expand Down
9 changes: 9 additions & 0 deletions src/cvx/simulator/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,17 @@
- State: Represents the current state of a portfolio during simulation
- interpolate: Utility function for interpolating missing values in time series
"""
from importlib.metadata import version
__version__ = version("cvxsimulator")

from .builder import Builder
from .portfolio import Portfolio
from .state import State
from .utils.interpolation import interpolate

__all__ = [
"Builder",
"Portfolio",
"State",
"interpolate"
]
5 changes: 5 additions & 0 deletions src/tests/test_version.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import cvx.simulator


def test_version():
assert cvx.simulator.__version__ is not None
14 changes: 7 additions & 7 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.