Skip to content

Commit a4ae1b1

Browse files
authored
Added docs package requirements to setup.py (#290)
* added docs requirements * fix spaces * pruned requirements.txt * version bump
1 parent c55b4ea commit a4ae1b1

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

doc/requirements.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1 @@
1-
numpydoc
21
sphinx_mdolab_theme>=1.2
3-
sphinxcontrib-bibtex

pyoptsparse/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
__version__ = "2.8.0"
1+
__version__ = "2.8.1"
22

33
from .pyOpt_history import History
44
from .pyOpt_variable import Variable

setup.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,9 @@ def configuration(parent_package="", top_path=None):
5151
open("pyoptsparse/__init__.py").read(),
5252
)[0]
5353

54+
with open("doc/requirements.txt") as f:
55+
docs_require = f.read().splitlines()
56+
5457
setup(
5558
name="pyoptsparse",
5659
version=__version__,
@@ -69,6 +72,7 @@ def configuration(parent_package="", top_path=None):
6972
"plotly",
7073
"matplotlib",
7174
],
75+
"docs": docs_require,
7276
"testing": ["testflo>=1.4.5"],
7377
},
7478
package_data={"pyoptsparse": ["postprocessing/assets/*"]},

0 commit comments

Comments
 (0)