Skip to content

Commit 0787d0b

Browse files
committed
Replace requirements.txt with extra dependency doc
1 parent 7885448 commit 0787d0b

File tree

3 files changed

+12
-9
lines changed

3 files changed

+12
-9
lines changed

.github/workflows/pages.yml

+1-2
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,7 @@ jobs:
7676
# Install dependencies:
7777
- name: 'Install dependencies'
7878
run: |
79-
pip install -r ./requirements.txt
80-
pip install .
79+
pip install .[doc]
8180
8281
# Generate the documentation:
8382
- name: 'Build documentation'

pyproject.toml

+11
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,17 @@ Source = "https://github.com/data-apis/array-api/"
1414
Documentation = "https://data-apis.org/array-api/"
1515
Homepage = "https://data-apis.org/"
1616

17+
[project.optional-dependencies]
18+
doc = [
19+
"sphinx==4.3.0",
20+
"sphinx-material==0.0.30",
21+
"myst-parser",
22+
"sphinx_markdown_tables",
23+
"sphinx_copybutton",
24+
"docutils<0.18",
25+
"sphinx-math-dollar",
26+
]
27+
1728
[build-system]
1829
requires = ["setuptools"]
1930
build-backend = "setuptools.build_meta"

requirements.txt

-7
This file was deleted.

0 commit comments

Comments
 (0)