Skip to content

Commit

Permalink
Use conda for all dependencies. (#861)
Browse files Browse the repository at this point in the history
* Use conda for all dependencies.

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* revert.

* Bring back the condition.

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
trivialfis and pre-commit-ci[bot] authored Oct 19, 2023
1 parent 39de987 commit 3805ab4
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions scripts/generate-conda-envs.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env python3

# Copyright (c) 2020-2022, NVIDIA CORPORATION. All rights reserved.
# Copyright (c) 2020-2023, NVIDIA CORPORATION. All rights reserved.
#
# NVIDIA CORPORATION and its licensors retain all intellectual property
# and proprietary rights in and to this software, related documentation
Expand Down Expand Up @@ -193,11 +193,12 @@ def conda(self) -> Reqs:
"pytest",
"types-docutils",
"pynvml",
"tifffile",
)

@property
def pip(self) -> Reqs:
return ("tifffile",)
return ()


@dataclass(frozen=True)
Expand All @@ -206,11 +207,9 @@ class DocsConfig(SectionConfig):

@property
def conda(self) -> Reqs:
return ("pandoc", "doxygen")

@property
def pip(self) -> Reqs:
return (
"pandoc",
"doxygen",
"ipython",
"jinja2",
"markdown<3.4.0",
Expand All @@ -221,6 +220,10 @@ def pip(self) -> Reqs:
"sphinx>=4.4.0",
)

@property
def pip(self) -> Reqs:
return ()


@dataclass(frozen=True)
class EnvConfig:
Expand Down Expand Up @@ -485,7 +488,9 @@ def section_selected(section):
use=config.use,
python=config.python,
conda_sections=conda_sections,
pip=PIP_TEMPLATE.format(pip_sections=pip_sections),
pip=PIP_TEMPLATE.format(pip_sections=pip_sections)
if pip_sections
else "",
)
with open(f"{filename}.yaml", "w") as f:
f.write(out)

0 comments on commit 3805ab4

Please sign in to comment.