sphinx-doc: install python_docs_theme

for the sake of building the docs for Python 3

Closes #28824.

Signed-off-by: ilovezfs <ilovezfs@icloud.com>
This commit is contained in:
ilovezfs 2018-06-09 00:07:52 -07:00
parent 81a7e6b47f
commit 8eab7e8cfc

View file

@ -3,6 +3,7 @@ class SphinxDoc < Formula
homepage "http://sphinx-doc.org"
url "https://files.pythonhosted.org/packages/41/32/915efa0e95ef7c79458175b09d9ea9ffc34f4d6791ff84c9b113f3439178/Sphinx-1.7.5.tar.gz"
sha256 "d45480a229edf70d84ca9fae3784162b1bc75ee47e480ffe04a4b7f21a95d76d"
revision 1
bottle do
cellar :any_skip_relocation
@ -18,7 +19,7 @@ class SphinxDoc < Formula
depends_on "python@2" if MacOS.version <= :snow_leopard
# generated from sphinx, setuptools, and numpydoc
# generated from sphinx, setuptools, numpydoc and python-docs-theme
resource "setuptools" do
url "https://files.pythonhosted.org/packages/1a/04/d6f1159feaccdfc508517dba1929eb93a2854de729fa68da9d5c6b48fa00/setuptools-39.2.0.zip"
sha256 "f7cddbb5f5c640311eb00eab6e849f7701fa70bf6a183fc8a2c33dd1d1672fb2"
@ -89,6 +90,11 @@ class SphinxDoc < Formula
sha256 "0832bcf47acd283788593e7a0f542407bd9550a55a8a8435214a1960e04bcb04"
end
resource "python-docs-theme" do
url "https://files.pythonhosted.org/packages/9f/6d/5f04061edd1035654ff36396ac36eabc4eea5be7ab973e5f8d12be15ec24/python-docs-theme-2018.2.tar.gz"
sha256 "f9a7e0d44af1719f8975f089632c7ce10c6cf85ee6f08028147b993781d0baa7"
end
resource "pytz" do
url "https://files.pythonhosted.org/packages/10/76/52efda4ef98e7544321fd8d5d512e11739c1df18b0649551aeccfb1c8376/pytz-2018.4.tar.gz"
sha256 "c06425302f2cf668f1bba7a0a03f3c1d34d4ebeef2c72003da308b3947c7f749"
@ -143,5 +149,6 @@ class SphinxDoc < Formula
system bin/"sphinx-quickstart", "-pPorject", "-aAuthor", "-v1.0", "-q", testpath
system bin/"sphinx-build", testpath, testpath/"build"
assert_predicate testpath/"build/index.html", :exist?
assert_predicate libexec/"vendor/lib/python2.7/site-packages/python_docs_theme", :exist?
end
end