Skip to content

Commit 1540d56

Browse files
committed
update docs build
1 parent 7db11f6 commit 1540d56

File tree

1 file changed

+13
-120
lines changed

1 file changed

+13
-120
lines changed

pyproject.toml

Lines changed: 13 additions & 120 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
[build-system]
2-
requires = ["hatchling"]
2+
requires = ["hatchling", "hatch-vcs"]
33
build-backend = "hatchling.build"
44

5+
56
[project]
67
name = "papermill"
7-
dynamic = ["version"]
88
description = "Parameterize and run Jupyter and nteract Notebooks"
99
readme = "README.md"
1010
license = "BSD-3-clause"
@@ -43,105 +43,7 @@ dependencies = [
4343
"tenacity >= 5.0.2",
4444
"tqdm >= 4.32.2",
4545
]
46-
47-
[project.optional-dependencies]
48-
all = [
49-
"azure-datalake-store >= 0.0.30",
50-
"azure-identity>=1.3.1",
51-
"azure-storage-blob >= 12.1.0",
52-
"black >= 23.11.0",
53-
"boto3",
54-
"gcsfs>=0.2.0",
55-
"pyarrow >= 2.0",
56-
"PyGithub >= 1.55",
57-
"requests >= 2.21.0",
58-
]
59-
azure = [
60-
"azure-datalake-store >= 0.0.30",
61-
"azure-identity>=1.3.1",
62-
"azure-storage-blob >= 12.1.0",
63-
"requests >= 2.21.0",
64-
]
65-
dev = [
66-
"attrs>=17.4.0",
67-
"azure-datalake-store >= 0.0.30",
68-
"azure-identity>=1.3.1",
69-
"azure-storage-blob >= 12.1.0",
70-
"black >= 23.11.0",
71-
"boto3",
72-
"boto3",
73-
"botocore",
74-
"bumpversion",
75-
"check-manifest",
76-
"codecov",
77-
"coverage",
78-
"flake8",
79-
"Flake8-pyproject",
80-
"gcsfs>=0.2.0",
81-
"google_compute_engine",
82-
"ipython>=5.0",
83-
"ipywidgets",
84-
"moto",
85-
"notebook",
86-
"pip>=18.1",
87-
"pre-commit",
88-
"pytest-cov>=2.6.1",
89-
"pytest-env>=0.6.2",
90-
"pytest-mock>=1.10",
91-
"pytest>=4.1",
92-
"recommonmark",
93-
"requests >= 2.21.0",
94-
"requests >= 2.21.0",
95-
"setuptools>=38.6.0",
96-
"twine>=1.11.0",
97-
"wheel>=0.31.0",
98-
]
99-
gcs = [
100-
"gcsfs>=0.2.0",
101-
]
102-
github = [
103-
"PyGithub >= 1.55",
104-
]
105-
hdfs = [
106-
"pyarrow >= 2.0",
107-
]
108-
s3 = [
109-
"boto3",
110-
]
111-
test = [
112-
"attrs>=17.4.0",
113-
"azure-datalake-store >= 0.0.30",
114-
"azure-identity>=1.3.1",
115-
"azure-storage-blob >= 12.1.0",
116-
"black >= 23.11.0",
117-
"boto3",
118-
"boto3",
119-
"botocore",
120-
"bumpversion",
121-
"check-manifest",
122-
"codecov",
123-
"coverage",
124-
"flake8",
125-
"gcsfs>=0.2.0",
126-
"google_compute_engine",
127-
"ipython>=5.0",
128-
"ipywidgets",
129-
"moto",
130-
"notebook",
131-
"pip>=18.1",
132-
"pre-commit",
133-
"pytest-cov>=2.6.1",
134-
"pytest-env>=0.6.2",
135-
"pytest-mock>=1.10",
136-
"pytest>=4.1",
137-
"recommonmark",
138-
"requests >= 2.21.0",
139-
"requests >= 2.21.0",
140-
"setuptools>=38.6.0",
141-
"tox",
142-
"twine>=1.11.0",
143-
"wheel>=0.31.0",
144-
]
46+
dynamic = ["version"]
14547

14648
[project.scripts]
14749
papermill = "papermill.__main__:papermill"
@@ -154,14 +56,16 @@ Source = "https://github.com/nteract/papermill/"
15456
Tracker = "https://github.com/nteract/papermill/issues"
15557

15658
[tool.hatch.version]
157-
path = "papermill/version.py"
59+
source = "vcs"
60+
61+
[tool.hatch.build.hooks.vcs]
62+
version-file = "papermill/version.py"
15863

15964
[tool.hatch.build.targets.sdist]
16065
include = [
16166
"/papermill",
16267
]
16368

164-
# Test environment
16569
[[tool.hatch.envs.test.matrix]]
16670
python = ["3.8", "3.9", "3.10", "3.11", "3.12"]
16771

@@ -206,28 +110,17 @@ cov = "pytest --cov-report=term-missing --cov-config=pyproject.toml --cov=hatch_
206110
no-cov = "cov --no-cov"
207111

208112
[tool.hatch.envs.docs]
209-
template="default"
210-
extra-dependencies = [
211-
"azure-datalake-store >= 0.0.30",
212-
"azure-identity>=1.3.1",
213-
"azure-storage-blob >= 12.1.0",
214-
"black >= 23.11.0",
215-
"boto3",
216-
"entrypoints",
217-
"furo>=2023.9.10",
218-
"gcsfs>=0.2.0",
219-
"moto>=4.2.8",
220-
"myst-parser>=2.0.0",
221-
"nbformat",
222-
"pyarrow >= 2.0",
223-
"PyGithub >= 1.55",
224-
"requests >= 2.21.0",
113+
dependencies = [
225114
"sphinx-copybutton>=0.5.2",
115+
"sphinx-autobuild",
226116
"Sphinx>=7.2.6",
227117
]
118+
228119
[tool.hatch.envs.docs.scripts]
229120
build = "sphinx-build docs docs_out --color -W -bhtml"
230-
build-ci = "sphinx-build docs docs_out --color -W -bhtml"
121+
clean = "rm -rf docs_out"
122+
serve = "sphinx-autobuild docs docs_out/index.html"
123+
ci-build = "sphinx-build docs docs_out --color -W -bhtml"
231124

232125
[tool.pytest.ini_options]
233126
minversion = "6.0"

0 commit comments

Comments
 (0)