Ai
1 Star 0 Fork 0

precise observer/numpydoc

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
setup.py 1.87 KB
一键复制 编辑 原始数据 按行查看 历史
Jarrod Millman 提交于 2022-03-30 05:51 +08:00 . Upper bound jinja (#369)
import sys
import os
from setuptools import setup
from numpydoc import __version__ as version
if sys.version_info < (3, 7):
raise RuntimeError("Python version >= 3.7 required.")
def read(fname):
"""Utility function to get README.rst into long_description.
``long_description`` is what ends up on the PyPI front page.
"""
with open(os.path.join(os.path.dirname(__file__), fname)) as f:
contents = f.read()
return contents
setup(
name="numpydoc",
packages=["numpydoc"],
version=version,
description="Sphinx extension to support docstrings in Numpy format",
long_description=read('README.rst'),
# classifiers from http://pypi.python.org/pypi?%3Aaction=list_classifiers
classifiers=["Development Status :: 4 - Beta",
"Environment :: Plugins",
"License :: OSI Approved :: BSD License",
"Topic :: Documentation",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
],
keywords="sphinx numpy",
author="Pauli Virtanen and others",
author_email="pav@iki.fi",
url="https://numpydoc.readthedocs.io",
license="BSD",
install_requires=["sphinx>=1.8", 'Jinja2>=2.10,<3.1'],
python_requires=">=3.7",
extras_require={
"testing": [
req for req in read('test_requirements.txt').split('\n')
if not req.startswith('#')
],
},
package_data={'numpydoc': [
'tests/test_*.py',
'tests/tinybuild/Makefile',
'tests/tinybuild/index.rst',
'tests/tinybuild/*.py',
'templates/*.rst',
]},
)
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/precise-observer/numpydoc.git
git@gitee.com:precise-observer/numpydoc.git
precise-observer
numpydoc
numpydoc
main

搜索帮助