sphinxcontrib trio: new package at v1.1.2 (#17631)

This commit is contained in:
Claire Guilbaud 2020-07-27 12:14:12 +02:00 committed by GitHub
parent 21a4edb1f3
commit 38730c6e68
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 32 additions and 0 deletions

View file

@ -0,0 +1,22 @@
# Copyright 2013-2020 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack import *
class PySphinxcontribTrio(PythonPackage):
"""This sphinx extension helps you document Python code that uses
async/await, or abstract methods, or context managers, or generators,
or ... you get the idea."""
homepage = "https://github.com/python-trio/sphinxcontrib-trio"
url = "https://files.pythonhosted.org/packages/ca/33/ee48d86e30bb3c5d72a47f49b1ebf5c23dd253b04d8d5fc3e6c68407a03e/sphinxcontrib-trio-1.1.2.tar.gz"
version('1.1.2', sha256='9f1ba9c1d5965b534e85258d8b677dd94e9b1a9a2e918b85ccd42590596b47c0')
version('1.1.0', sha256='d90f46d239ba0556e53d9a110989f98c9eb2cea76ab47937a1f39b62f63fe654')
depends_on('py-sphinx@1.7:')
patch('sphinxcontrib-trio.patch', when='@1.1.0')

View file

@ -0,0 +1,10 @@
diff -urN a/setup.py b/setup.py
--- a/setup.py 2019-08-01 10:44:29.583879243 +0200
+++ b/setup.py 2019-08-01 11:57:01.815819059 +0200
@@ -32,4 +32,5 @@
"Framework :: Twisted",
"Topic :: Documentation :: Sphinx",
"Topic :: Software Development :: Documentation",
- ])
+ ],
+ namespace_packages=['sphinxcontrib'])