Skip to content

Commit

Permalink
build: add optimization optional deps
Browse files Browse the repository at this point in the history
  • Loading branch information
mdtanker committed Nov 30, 2023
1 parent 203c1c8 commit 871a870
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 16 deletions.
5 changes: 4 additions & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@
# numba_progress
# "tqdm": ("https://tqdm.github.io/", None),
"pygmt": ("https://www.pygmt.org/latest/", None),
"optuna": ("https://optuna.readthedocs.io/en/stable/", None),
#
# Viz deps
#
Expand All @@ -64,6 +63,10 @@
# ipywidgets
"matplotlib": ("https://matplotlib.org/", None),
"seaborn": ("https://seaborn.pydata.org/", None),
#
# Opti deps
#
"optuna": ("https://optuna.readthedocs.io/en/stable/", None),
}

nitpick_ignore = [
Expand Down
6 changes: 3 additions & 3 deletions env/RTD_env.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,11 @@ dependencies:
- tqdm
- pygmt
- dask
# opti
- optuna>=3.1.0
- botorch>=0.4.0
- psutil
- joblib
# docs
- sphinx>=4.0
- myst-parser
Expand All @@ -33,8 +36,5 @@ dependencies:
- sphinx-design
- nbsphinx
- pip:
- numba-progress
- tqdm_joblib
- psutil
- joblib
- ../.
6 changes: 3 additions & 3 deletions env/test_env.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,11 @@ dependencies:
- tqdm
- pygmt
- dask
# opti
- optuna>=3.1.0
- botorch>=0.4.0
- psutil
- joblib
# viz
- pyvista
- trame
Expand All @@ -42,8 +45,5 @@ dependencies:
- sphinx-design
- nbsphinx
- pip:
- numba-progress
- tqdm_joblib
- psutil
- joblib
- ../.
2 changes: 1 addition & 1 deletion noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def docs(session: nox.Session) -> None:

extra_installs = ["sphinx-autobuild"] if args.serve else []

session.install("-e.[docs,viz]", *extra_installs)
session.install("-e.[opti,docs,viz]", *extra_installs)
session.chdir("docs")

if args.builder == "linkcheck":
Expand Down
15 changes: 7 additions & 8 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -45,17 +45,16 @@ dependencies = [
"tqdm",
"pygmt",
"dask",
"tqdm_joblib",
"psutil",
"joblib",
"optuna>=3.1.0", # need JournalStorage
"botorch>=0.4.0",

# "geopandas",
# "boule",
]

[project.optional-dependencies]
opti = [
"optuna>=3.1.0", # need JournalStorage
"botorch>=0.4.0",
"joblib",
"psutil",
"tqdm_joblib",
]
viz = [
"pyvista",
"trame",
Expand Down

0 comments on commit 871a870

Please sign in to comment.