Skip to content

Commit

Permalink
add polars extra (#368)
Browse files Browse the repository at this point in the history
  • Loading branch information
jmoralez authored Jul 1, 2024
1 parent 0857e2e commit 678e740
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 4 deletions.
1 change: 1 addition & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,4 @@ repos:
hooks:
- id: mypy
args: [--ignore-missing-imports]
exclude: 'setup.py'
2 changes: 1 addition & 1 deletion mlforecast/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
__version__ = "0.13.0"
__version__ = "0.13.1"
__all__ = ['MLForecast']
from mlforecast.forecast import MLForecast
10 changes: 10 additions & 0 deletions nbs/docs/getting-started/install.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,16 @@
"#### Extras"
]
},
{
"cell_type": "markdown",
"id": "7b575d6e-8ffa-42b1-9b1a-f3a6a28085e0",
"metadata": {},
"source": [
"##### polars\n",
"\n",
"Using polars dataframes: `pip install \"mlforecast[polars]\"`"
]
},
{
"cell_type": "markdown",
"id": "738f3c23-7969-423b-8177-e08849c9c16f",
Expand Down
7 changes: 4 additions & 3 deletions settings.ini
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,22 @@ author = José Morales
author_email = [email protected]
copyright = Nixtla
branch = main
version = 0.13.0
version = 0.13.1
min_python = 3.8
audience = Developers
language = English
custom_sidebar = True
license = apache2
status = 3
requirements = cloudpickle coreforecast>=0.0.7 fsspec numba optuna packaging pandas scikit-learn utilsforecast>=0.0.27 window-ops
requirements = cloudpickle coreforecast>=0.0.10 fsspec numba optuna packaging pandas scikit-learn utilsforecast>=0.1.9 window-ops
dask_requirements = fugue dask[complete] lightgbm xgboost
ray_requirements = fugue[ray] lightgbm_ray xgboost_ray
spark_requirements = fugue pyspark>=3.3 lightgbm xgboost
aws_requirements = fsspec[s3]
gcp_requirements = fsspec[gcs]
azure_requirements = fsspec[adl]
dev_requirements = black datasetsforecast matplotlib mypy nbdev polars[numpy]>=0.0.0rc0 pre-commit prophet pyarrow ruff shap statsmodels
polars_requirements = polars[numpy]
dev_requirements = black datasetsforecast matplotlib mypy nbdev pre-commit prophet pyarrow ruff shap statsmodels
nbs_path = nbs
doc_path = _docs
recursive = True
Expand Down
3 changes: 3 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,15 @@
aws_requirements = cfg['aws_requirements'].split()
azure_requirements = cfg['azure_requirements'].split()
gcp_requirements = cfg['gcp_requirements'].split()
polars_requirements = cfg['polars_requirements'].split()
all_extras = [
dask_requirements,
ray_requirements,
spark_requirements,
aws_requirements,
azure_requirements,
gcp_requirements,
polars_requirements,
]
dev_requirements = sorted(set(sum([cfg['dev_requirements'].split()] + all_extras, [])))
min_python = cfg['min_python']
Expand All @@ -63,6 +65,7 @@
'aws': aws_requirements,
'azure': azure_requirements,
'gcp': gcp_requirements,
'polars': polars_requirements,
'dev': dev_requirements,
},
dependency_links = cfg.get('dep_links','').split(),
Expand Down

0 comments on commit 678e740

Please sign in to comment.