Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix dependencies problems with docs CI #2

Merged
merged 5 commits into from
Mar 27, 2024
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
2 changes: 1 addition & 1 deletion .github/workflows/build_docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,5 @@ jobs:
path: .cache
restore-keys: |
mkdocs-material-
- run: pip install mkdocs-material
- run: pip install -r requirements-docs.tx
- run: mkdocs gh-deploy --force
5 changes: 5 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ install: .poetry .pre-commit
poetry install
pre-commit install --install-hooks

.PHONY: update ## Update all libraries and export the requirements
update:
poetry update
poetry export -o requirements-docs.txt --only=docs --without-hashes

.PHONY: lint ## Lint python source files
lint: .poetry
poetry run ruff check $(sources)
Expand Down
16 changes: 9 additions & 7 deletions poetry.lock

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

9 changes: 6 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,18 @@ pandas = "^2.2.1"
pytest = "^8.1.1"
ipykernel = "^6.29.3"
pyinstrument = "^4.6.2"
ruff = "^0.3.4"

[tool.poetry.group.docs.dependencies]
mkdocs-material = "^9.5.15"
mkdocstrings = {extras = ["python"], version = "^0.24.1"}
mkdocstrings = { extras = ["python"], version = "^0.24.1" }
mkdocs-gen-files = "^0.5.0"
mkdocs-literate-nav = "^0.6.1"
mkdocs-section-index = "^0.3.8"
markdown-katex = "^202112.1034"
black = "^24.3.0"
mkdocs-glightbox = "^0.3.7"
ruff = "^0.3.4"
black = "^24.3.0"


[build-system]
requires = ["poetry-core"]
Expand Down
46 changes: 46 additions & 0 deletions requirements-docs.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
babel==2.14.0 ; python_version >= "3.9" and python_version < "3.13"
black==24.3.0 ; python_version >= "3.9" and python_version < "3.13"
certifi==2024.2.2 ; python_version >= "3.9" and python_version < "3.13"
charset-normalizer==3.3.2 ; python_version >= "3.9" and python_version < "3.13"
click==8.1.7 ; python_version >= "3.9" and python_version < "3.13"
colorama==0.4.6 ; python_version >= "3.9" and python_version < "3.13"
ghp-import==2.1.0 ; python_version >= "3.9" and python_version < "3.13"
griffe==0.42.1 ; python_version >= "3.9" and python_version < "3.13"
idna==3.6 ; python_version >= "3.9" and python_version < "3.13"
importlib-metadata==7.1.0 ; python_version >= "3.9" and python_version < "3.10"
jinja2==3.1.3 ; python_version >= "3.9" and python_version < "3.13"
markdown-katex==202112.1034 ; python_version >= "3.9" and python_version < "3.13"
markdown==3.5.2 ; python_version >= "3.9" and python_version < "3.13"
markupsafe==2.1.5 ; python_version >= "3.9" and python_version < "3.13"
mergedeep==1.3.4 ; python_version >= "3.9" and python_version < "3.13"
mkdocs-autorefs==1.0.1 ; python_version >= "3.9" and python_version < "3.13"
mkdocs-gen-files==0.5.0 ; python_version >= "3.9" and python_version < "3.13"
mkdocs-glightbox==0.3.7 ; python_version >= "3.9" and python_version < "3.13"
mkdocs-literate-nav==0.6.1 ; python_version >= "3.9" and python_version < "3.13"
mkdocs-material-extensions==1.3.1 ; python_version >= "3.9" and python_version < "3.13"
mkdocs-material==9.5.15 ; python_version >= "3.9" and python_version < "3.13"
mkdocs-section-index==0.3.8 ; python_version >= "3.9" and python_version < "3.13"
mkdocs==1.5.3 ; python_version >= "3.9" and python_version < "3.13"
mkdocstrings-python==1.9.0 ; python_version >= "3.9" and python_version < "3.13"
mkdocstrings==0.24.1 ; python_version >= "3.9" and python_version < "3.13"
mkdocstrings[python]==0.24.1 ; python_version >= "3.9" and python_version < "3.13"
mypy-extensions==1.0.0 ; python_version >= "3.9" and python_version < "3.13"
packaging==24.0 ; python_version >= "3.9" and python_version < "3.13"
paginate==0.5.6 ; python_version >= "3.9" and python_version < "3.13"
pathlib2==2.3.7.post1 ; python_version >= "3.9" and python_version < "3.13"
pathspec==0.12.1 ; python_version >= "3.9" and python_version < "3.13"
platformdirs==4.2.0 ; python_version >= "3.9" and python_version < "3.13"
pygments==2.17.2 ; python_version >= "3.9" and python_version < "3.13"
pymdown-extensions==10.7.1 ; python_version >= "3.9" and python_version < "3.13"
python-dateutil==2.9.0.post0 ; python_version >= "3.9" and python_version < "3.13"
pyyaml-env-tag==0.1 ; python_version >= "3.9" and python_version < "3.13"
pyyaml==6.0.1 ; python_version >= "3.9" and python_version < "3.13"
regex==2023.12.25 ; python_version >= "3.9" and python_version < "3.13"
requests==2.31.0 ; python_version >= "3.9" and python_version < "3.13"
setuptools==69.2.0 ; python_version >= "3.9" and python_version < "3.13"
six==1.16.0 ; python_version >= "3.9" and python_version < "3.13"
tomli==2.0.1 ; python_version >= "3.9" and python_version < "3.11"
typing-extensions==4.10.0 ; python_version >= "3.9" and python_version < "3.11"
urllib3==2.2.1 ; python_version >= "3.9" and python_version < "3.13"
watchdog==4.0.0 ; python_version >= "3.9" and python_version < "3.13"
zipp==3.18.1 ; python_version >= "3.9" and python_version < "3.10"
2 changes: 1 addition & 1 deletion scripts/gen_doc_stubs.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
nav = mkdocs_gen_files.Nav()

root = Path(__file__).parent.parent
src = root / "src"
src = root / "src"

for path in sorted(src.rglob("*.py")):
module_path = path.relative_to(src).with_suffix("")
Expand Down
Loading