Skip to content

Commit

Permalink
Merge pull request #869 from jdegenstein/opt_deps
Browse files Browse the repository at this point in the history
pyproject.toml -> add optional dependencies [ocp_vscode] [development] [docs] [all]
  • Loading branch information
jdegenstein authored Jan 15, 2025
2 parents cd69e6e + 1b5688a commit 338e0bc
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,14 @@ build:
sphinx:
configuration: docs/conf.py

# Explicitly set the version of Python and its requirements
python:
install:
- requirements: docs/requirements.txt
- method: pip
path: .
extra_requirements:
- docs

# Explicitly set the version of Python and its requirements
# python:
# install:
# - requirements: docs/requirements.txt
1 change: 1 addition & 0 deletions docs/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# TODO: delete this file as it is no longer used to build the docs
# Defining the exact version will make sure things don't break
sphinx==5.3.0
sphinx_rtd_theme>=0.5.1
Expand Down
39 changes: 39 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,45 @@ dependencies = [
"Documentation" = "https://build123d.readthedocs.io/en/latest/index.html"
"Bug Tracker" = "https://github.com/gumyr/build123d/issues"

[project.optional-dependencies]
# enable the optional ocp_vscode visualization package
ocp_vscode = [
"ocp_vscode",
]

# development dependencies
development = [
"wheel",
"pytest",
"pytest-cov",
"pylint",
"mypy",
"black",
]

# dependency to run the pytest benchmarks
benchmark = [
"pytest-benchmark",
]

# dependencies to build the docs
docs = [
"sphinx==8.1.3", # pin for stability of docs builds
"sphinx-design",
"sphinx-copybutton",
"sphinx-hoverxref",
"sphinx-rtd-theme",
"sphinx_autodoc_typehints",
]

# all dependencies
all = [
"build123d[ocp_vscode]",
"build123d[development]",
"build123d[benchmark]",
"build123d[docs]",
]

[tool.setuptools.packages.find]
where = ["src"]
# exclude build123d._dev from wheels
Expand Down

0 comments on commit 338e0bc

Please sign in to comment.