Skip to content

Commit

Permalink
py: Merge dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
fischeti committed Aug 30, 2024
1 parent 290193a commit c3892d6
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 17 deletions.
2 changes: 1 addition & 1 deletion docs/ug/documentation.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ theme](https://squidfunk.github.io/mkdocs-material/). Before building the
documentation, make sure you have the required dependencies installed:

```shell
pip install .[docs]
pip install .
```

After everything is installed, you can build a static copy of the `html` documentation by
Expand Down
22 changes: 7 additions & 15 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ authors = [
dynamic = ["version"]
dependencies = [
# Keep sorted.
# General dependencies.
"bin2coe",
"dataclasses",
"editorconfig-checker==2.3.51",
Expand All @@ -27,7 +26,13 @@ dependencies = [
"jsonschema",
"mako",
"matplotlib",
"mkdocs",
"mkdocs-material",
"mkdocs-include-markdown-plugin",
"mkdocs-macros-plugin",
"mkdocstrings",
"mkdocstrings-python",
"numpy",
"pandas",
"prettytable",
"progressbar2",
Expand All @@ -40,21 +45,8 @@ dependencies = [
"scikit-learn",
"tabulate",
"termcolor",
"yamllint",
# DNN lib dependencies.
"numpy",
"torch",
"json5"
]

[project.optional-dependencies]
docs = [
"mkdocs",
"mkdocs-material",
"mkdocs-include-markdown-plugin",
"mkdocs-macros-plugin",
"mkdocstrings",
"mkdocstrings-python",
"yamllint"
]

[tool.setuptools.package-dir]
Expand Down
2 changes: 1 addition & 1 deletion util/container/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ COPY pyproject.toml .
COPY sw/dnn ./sw/dnn
COPY sw/blas ./sw/blas
COPY util ./util
RUN pip install .[docs]
RUN pip install .
# Add Verilator to PATH
ENV PATH="/tools/verilator/bin:${PATH}"
ENV VLT_ROOT="/tools/verilator/share/verilator/"
Expand Down

0 comments on commit c3892d6

Please sign in to comment.