Skip to content

Commit 3213701

Browse files
committed
Merge branch 'doc' of github.com:jnothman/numpydoc into doc
2 parents 88ff39f + e5c3675 commit 3213701

File tree

3 files changed

+16
-81
lines changed

3 files changed

+16
-81
lines changed

LICENSE.txt

-70
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,3 @@
1-
-------------------------------------------------------------------------------
2-
The files
3-
- numpydoc.py
4-
- docscrape.py
5-
- docscrape_sphinx.py
6-
- phantom_import.py
7-
have the following license:
8-
91
Copyright (C) 2008 Stefan van der Walt <stefan@mentat.za.net>, Pauli Virtanen <pav@iki.fi>
102

113
Redistribution and use in source and binary forms, with or without
@@ -30,65 +22,3 @@ HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
3022
STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
3123
IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
3224
POSSIBILITY OF SUCH DAMAGE.
33-
34-
-------------------------------------------------------------------------------
35-
The files
36-
- compiler_unparse.py
37-
- comment_eater.py
38-
- traitsdoc.py
39-
have the following license:
40-
41-
This software is OSI Certified Open Source Software.
42-
OSI Certified is a certification mark of the Open Source Initiative.
43-
44-
Copyright (c) 2006, Enthought, Inc.
45-
All rights reserved.
46-
47-
Redistribution and use in source and binary forms, with or without
48-
modification, are permitted provided that the following conditions are met:
49-
50-
* Redistributions of source code must retain the above copyright notice, this
51-
list of conditions and the following disclaimer.
52-
* Redistributions in binary form must reproduce the above copyright notice,
53-
this list of conditions and the following disclaimer in the documentation
54-
and/or other materials provided with the distribution.
55-
* Neither the name of Enthought, Inc. nor the names of its contributors may
56-
be used to endorse or promote products derived from this software without
57-
specific prior written permission.
58-
59-
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
60-
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
61-
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
62-
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
63-
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
64-
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
65-
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
66-
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
67-
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
68-
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
69-
70-
71-
-------------------------------------------------------------------------------
72-
The file
73-
- plot_directive.py
74-
originates from Matplotlib (http://matplotlib.sf.net/) which has
75-
the following license:
76-
77-
Copyright (c) 2002-2008 John D. Hunter; All Rights Reserved.
78-
79-
1. This LICENSE AGREEMENT is between John D. Hunter (“JDH”), and the Individual or Organization (“Licensee”) accessing and otherwise using matplotlib software in source or binary form and its associated documentation.
80-
81-
2. Subject to the terms and conditions of this License Agreement, JDH hereby grants Licensee a nonexclusive, royalty-free, world-wide license to reproduce, analyze, test, perform and/or display publicly, prepare derivative works, distribute, and otherwise use matplotlib 0.98.3 alone or in any derivative version, provided, however, that JDH’s License Agreement and JDH’s notice of copyright, i.e., “Copyright (c) 2002-2008 John D. Hunter; All Rights Reserved” are retained in matplotlib 0.98.3 alone or in any derivative version prepared by Licensee.
82-
83-
3. In the event Licensee prepares a derivative work that is based on or incorporates matplotlib 0.98.3 or any part thereof, and wants to make the derivative work available to others as provided herein, then Licensee hereby agrees to include in any such work a brief summary of the changes made to matplotlib 0.98.3.
84-
85-
4. JDH is making matplotlib 0.98.3 available to Licensee on an “AS IS” basis. JDH MAKES NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED. BY WAY OF EXAMPLE, BUT NOT LIMITATION, JDH MAKES NO AND DISCLAIMS ANY REPRESENTATION OR WARRANTY OF MERCHANTABILITY OR FITNESS FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF MATPLOTLIB 0.98.3 WILL NOT INFRINGE ANY THIRD PARTY RIGHTS.
86-
87-
5. JDH SHALL NOT BE LIABLE TO LICENSEE OR ANY OTHER USERS OF MATPLOTLIB 0.98.3 FOR ANY INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES OR LOSS AS A RESULT OF MODIFYING, DISTRIBUTING, OR OTHERWISE USING MATPLOTLIB 0.98.3, OR ANY DERIVATIVE THEREOF, EVEN IF ADVISED OF THE POSSIBILITY THEREOF.
88-
89-
6. This License Agreement will automatically terminate upon a material breach of its terms and conditions.
90-
91-
7. Nothing in this License Agreement shall be deemed to create any relationship of agency, partnership, or joint venture between JDH and Licensee. This License Agreement does not grant permission to use JDH trademarks or trade name in a trademark sense to endorse or promote products or services of Licensee, or any third party.
92-
93-
8. By copying, installing or otherwise using matplotlib 0.98.3, Licensee agrees to be bound by the terms and conditions of this License Agreement.
94-

README.rst

+3-11
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,9 @@ Numpy's documentation uses several custom extensions to Sphinx. These
1515
are shipped in this ``numpydoc`` package, in case you want to make use
1616
of them in third-party projects.
1717

18-
The following extensions are available:
19-
20-
- ``numpydoc``: support for the Numpy docstring format in Sphinx, and add
21-
the code description directives ``np:function``, ``np-c:function``, etc.
22-
that support the Numpy docstring syntax.
23-
24-
- ``numpydoc.traitsdoc``: For gathering documentation about Traits attributes.
25-
26-
- ``numpydoc.plot_directive``: Adaptation of Matplotlib's ``plot::``
27-
directive. Note that this implementation may still undergo severe
28-
changes or eventually be deprecated.
18+
The ``numpydoc`` extension provides support for the Numpy docstring format in
19+
Sphinx, and adds the code description directives ``np:function``,
20+
``np-c:function``, etc. that support the Numpy docstring syntax.
2921

3022
See `numpydoc docstring guide <https://numpydoc.readthedocs.io/en/latest/format.html>`_
3123
for how to write docs that use this extension, and the `user guide <https://numpydoc.readthedocs.io>`_

setup.py

+13
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
from __future__ import division, print_function
22

33
import sys
4+
import os
45

56
from distutils.command.sdist import sdist
67
import setuptools
@@ -15,11 +16,23 @@
1516
version = line.strip().split()[-1][1:-1]
1617
break
1718

19+
def read(fname):
20+
"""Utility function to get README.rst into long_description.
21+
22+
``long_description`` is what ends up on the PyPI front page.
23+
"""
24+
with open(os.path.join(os.path.dirname(__file__), fname)) as f:
25+
contents = f.read()
26+
27+
return contents
28+
29+
1830
setup(
1931
name="numpydoc",
2032
packages=["numpydoc"],
2133
version=version,
2234
description="Sphinx extension to support docstrings in Numpy format",
35+
long_description=read('README.rst'),
2336
# classifiers from http://pypi.python.org/pypi?%3Aaction=list_classifiers
2437
classifiers=["Development Status :: 4 - Beta",
2538
"Environment :: Plugins",

0 commit comments

Comments
 (0)