-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Upgrade packaging to PEP 517 & setup.cfg and update metadata
- Loading branch information
1 parent
a5dbb78
commit 029dc91
Showing
5 changed files
with
75 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
[build-system] | ||
requires = [ | ||
"setuptools>=42", | ||
"wheel", | ||
] | ||
build-backend = "setuptools.build_meta" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
[metadata] | ||
name = docrepr | ||
version = attr: docrepr.__version__ | ||
description = Renders Python docstrings to rich HTML | ||
long_description = file: README.md | ||
long_description_content_type = text/markdown | ||
url = https://github.com/spyder-ide/docrepr | ||
author = Tim Dumol and the Spyder Development Team | ||
author_email = [email protected] | ||
maintainer = Spyder Development Team and Docrepr Contributors | ||
maintainer_email = [email protected] | ||
license = BSD-3-clause | ||
license_file = LICENSE.txt | ||
license_files = | ||
AUTHORS.md | ||
LICENSE.txt | ||
classifiers = | ||
Development Status :: 4 - Beta | ||
Environment :: Web Environment | ||
Framework :: IPython | ||
Framework :: Jupyter | ||
Framework :: Matplotlib | ||
Framework :: Sphinx | ||
Intended Audience :: Developers | ||
Intended Audience :: Science/Research | ||
License :: OSI Approved :: BSD License | ||
Operating System :: OS Independent | ||
Programming Language :: Python :: 3 | ||
Programming Language :: Python :: 3 :: Only | ||
Programming Language :: Python :: 3.6 | ||
Programming Language :: Python :: 3.7 | ||
Programming Language :: Python :: 3.8 | ||
Programming Language :: Python :: 3.9 | ||
Topic :: Documentation :: Sphinx | ||
Topic :: Scientific/Engineering :: Visualization | ||
Topic :: Software Development :: Documentation | ||
Topic :: Software Development :: Libraries :: Python Modules | ||
Topic :: Text Processing :: Markup :: reStructuredText | ||
Topic :: Utilities | ||
keywords = Sphinx docstrings renderer HTML Spyder IPython help formatter | ||
project_urls = | ||
Github = https://github.com/spyder-ide/docrepr | ||
Bug Tracker = https://github.com/spyder-ide/docrepr/issues | ||
Parent Project = https://www.spyder-ide.org/ | ||
|
||
[options] | ||
packages = find: | ||
install_requires = | ||
docutils | ||
jinja2 | ||
sphinx>=1.1 | ||
python_requires = >=3.6 | ||
include_package_data = True | ||
zip_safe = False | ||
|
||
[options.extras_require] | ||
plot = | ||
matplotlib>=2.2.4 | ||
test = | ||
ipython | ||
matplotlib>=2.2.4 | ||
numpy | ||
pytest>=6.0.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,8 @@ | ||
from setuptools import setup, find_packages | ||
import os | ||
#!/usr/bin/env python3 | ||
|
||
name = 'docrepr' | ||
here = os.path.abspath(os.path.dirname(__file__)) | ||
"""Stub setup.py for use with legacy build tooling.""" | ||
|
||
version_ns = {} | ||
with open(os.path.join(here, name, '_version.py')) as f: | ||
exec(f.read(), {}, version_ns) | ||
import setuptools | ||
|
||
setup( | ||
name=name, | ||
version=version_ns['__version__'], | ||
description='docrepr renders Python docstrings in HTML', | ||
long_description='docrepr renders Python docstrings in HTML. It is based on the sphinxify module developed by Tim Dumol for the Sage Notebook and the utils.inspector developed for ther Spyder IDE.', | ||
packages=find_packages(), | ||
include_package_data=True, | ||
python_requires='>=3.6', | ||
install_requires=['docutils', 'jinja2', 'sphinx>=1.1'], | ||
extras_require={ | ||
'plot': [ | ||
'matplotlib>=2.2.4', | ||
], | ||
'test': [ | ||
'ipython', | ||
'matplotlib>=2.2.4', | ||
'numpy', | ||
'pytest>=6', | ||
], | ||
}, | ||
url='https://github.com/spyder-ide/docrepr', | ||
author='Tim Dumol / The Spyder Development Team', | ||
maintainer='The Spyder Development Team', | ||
license='BSD', | ||
) | ||
if __name__ == "__main__": | ||
setuptools.setup() |