Skip to content

Commit 1cd4e7f

Browse files
committed
Add documentation requirements to setup.py
1 parent 2d7ed70 commit 1cd4e7f

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

setup.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,9 @@ def get_release_command_class() -> dict[str, type[setuptools.Command]]:
3939
with open(os.path.join(REQUIREMENT_DIR, "test_requirements.txt")) as f:
4040
tests_requires = [line.strip() for line in f if line.strip()]
4141

42+
with open(os.path.join(REQUIREMENT_DIR, "docs_requirements.txt")) as f:
43+
docs_requires = [line.strip() for line in f if line.strip()]
44+
4245

4346
DATETIME_REQUIRES = [
4447
"python-dateutil>=2.8.0,<3.0.0",
@@ -72,7 +75,11 @@ def get_release_command_class() -> dict[str, type[setuptools.Command]]:
7275
},
7376
python_requires=">=3.9",
7477
install_requires=install_requires,
75-
extras_require={"datetime": DATETIME_REQUIRES, "test": tests_requires + DATETIME_REQUIRES},
78+
extras_require={
79+
"datetime": DATETIME_REQUIRES,
80+
"docs": docs_requires,
81+
"test": tests_requires + DATETIME_REQUIRES,
82+
},
7683
classifiers=[
7784
"Development Status :: 5 - Production/Stable",
7885
"Intended Audience :: Developers",

0 commit comments

Comments
 (0)