Skip to content

Commit

Permalink
Try custom mamba env creation
Browse files Browse the repository at this point in the history
  • Loading branch information
brynpickering committed Dec 22, 2023
1 parent 02c1b16 commit 97f872e
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 37 deletions.
4 changes: 2 additions & 2 deletions .readthedocs.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
version: 2
conda:
environment: requirements/docs.yml
build:
os: ubuntu-22.04
tools:
python: mambaforge-4.10
jobs:
pre_build:
- python ./docs/pre_build/generate_math.py
pre_create_environment:
- mamba create -n base -c conda-forge -c nodefaults python=3.12 -f requirements/docs.txt -f requirements/base.txt
post_create_environment:
- pip install --no-deps .

Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ calliope = "calliope.cli:cli"

[tool.setuptools.dynamic.optional-dependencies]
dev = { file = ["requirements/dev.txt"] }
docs = { file = ["requirements/docs.txt"] }

[project.urls]
website = "https://www.callio.pe/"
Expand Down
12 changes: 12 additions & 0 deletions requirements/docs.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
- bottleneck
- jsonschema2md >= 1, < 2
- mkdocs
- mkdocs-click
- mkdocs-gen-files
- mkdocs-include-markdown-plugin
- mkdocs-jupyter
- mkdocs-macros-plugin
- mkdocstrings-python
- mkdocs-material >= 9, < 10
- pip
- typing-extensions
35 changes: 0 additions & 35 deletions requirements/docs.yml

This file was deleted.

0 comments on commit 97f872e

Please sign in to comment.