-
-
Notifications
You must be signed in to change notification settings - Fork 201
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move project metadata to pyproject.toml, clean-up
- Loading branch information
Showing
17 changed files
with
88 additions
and
137 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,6 @@ | ||
[metadata] | ||
license_file = LICENSE | ||
|
||
[flake8] | ||
max-line-length = 100 | ||
exclude = compoundsuper.py,indexsuper.py | ||
extend-ignore = E203, E231 | ||
per-file-ignores = | ||
breathe/parser/index.py:E305 | ||
|
||
[bdist_wheel] | ||
universal = 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
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 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 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 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,5 +1,4 @@ | ||
#!/usr/bin/env python | ||
# -*- coding: utf-8 -*- | ||
|
||
import sys | ||
|
||
|
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 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,4 +1,3 @@ | ||
# -*- coding: utf-8 -*- | ||
""" | ||
breathe.apidoc | ||
~~~~~~~~~~~~~~ | ||
|
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 |
---|---|---|
|
@@ -11,4 +11,4 @@ dependencies: | |
- doxygen | ||
- pip | ||
- pip: | ||
- -r ../requirements/development.txt | ||
- ..[dev] |
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 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 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,3 +1,76 @@ | ||
[build-system] | ||
requires = ["setuptools>=61"] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[project] | ||
name = "breathe" | ||
dynamic = ["version"] | ||
authors = [ | ||
{name = "Michael Jones", email = "[email protected]"}, | ||
] | ||
description = "Sphinx Doxygen renderer" | ||
license = {text = "BSD-3-Clause"} | ||
classifiers = [ | ||
"Development Status :: 4 - Beta", | ||
"Environment :: Console", | ||
"Environment :: Web Environment", | ||
"Framework :: Sphinx :: Extension", | ||
"Intended Audience :: Developers", | ||
"Intended Audience :: Education", | ||
"License :: OSI Approved :: BSD License", | ||
"Operating System :: OS Independent", | ||
"Programming Language :: Python :: 3", | ||
"Topic :: Documentation", | ||
"Topic :: Text Processing", | ||
"Topic :: Utilities", | ||
] | ||
requires-python = ">=3.7" | ||
dependencies = [ | ||
"docutils>=0.12", | ||
"Jinja2>=2.7.3", | ||
"MarkupSafe>=0.23", | ||
"Pygments>=1.6", | ||
"Sphinx>=4.0,<6,!=5.0.0", | ||
] | ||
|
||
[project.optional-dependencies] | ||
lint = [ | ||
"black==22.3.0", | ||
"flake8", | ||
"mypy>=0.900", | ||
] | ||
test = [ | ||
"pytest", | ||
] | ||
dev = [ | ||
"breathe[lint,test]", | ||
"furo", | ||
"pip-tools>=0.3.5", | ||
"types-docutils>=0.14,<0.18", | ||
"types-Pygments", | ||
"sphinx-copybutton", | ||
] | ||
|
||
[project.scripts] | ||
breathe-apidoc = "breathe.apidoc:main" | ||
|
||
[project.readme] | ||
text = """\ | ||
Breathe is an extension to reStructuredText and Sphinx to be able to read and | ||
render `Doxygen <https://www.doxygen.nl>`__ xml output. | ||
""" | ||
content-type = "text/x-rst" | ||
|
||
[project.urls] | ||
Home = "https://www.breathe-doc.org/" | ||
Repository = "https://github.com/breathe-doc/breathe" | ||
|
||
[tool.setuptools.dynamic] | ||
version = {attr = "breathe.__init__.__version__"} | ||
|
||
[tool.setuptools.packages.find] | ||
include = ["breathe", "breathe.*"] | ||
|
||
[tool.black] | ||
line-length = 100 | ||
extend-exclude = ''' | ||
|
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,61 +1,4 @@ | ||
# -*- coding: utf-8 -*- | ||
try: | ||
from setuptools import setup, find_packages | ||
except ImportError: | ||
import distribute_setup | ||
from setuptools import setup | ||
|
||
distribute_setup.use_setuptools() | ||
from setuptools import setup, find_packages | ||
|
||
import sys | ||
|
||
# Keep in sync with breathe/__init__.py __version__ | ||
__version__ = "4.34.0" | ||
|
||
long_desc = """ | ||
Breathe is an extension to reStructuredText and Sphinx to be able to read and | ||
render `Doxygen <http://www.doxygen.org>`__ xml output. | ||
""" | ||
|
||
requires = ["Sphinx>=4.0,<6,!=5.0.0", "docutils>=0.12"] | ||
|
||
if sys.version_info < (3, 7): | ||
print("ERROR: Sphinx requires at least Python 3.7 to run.") | ||
sys.exit(1) | ||
|
||
|
||
setup( | ||
name="breathe", | ||
version=__version__, | ||
url="https://github.com/michaeljones/breathe", | ||
download_url="https://github.com/michaeljones/breathe", | ||
license="BSD", | ||
author="Michael Jones", | ||
author_email="[email protected]", | ||
description="Sphinx Doxygen renderer", | ||
long_description=long_desc, | ||
zip_safe=False, | ||
classifiers=[ | ||
"Development Status :: 4 - Beta", | ||
"Environment :: Console", | ||
"Environment :: Web Environment", | ||
"Framework :: Sphinx :: Extension", | ||
"Intended Audience :: Developers", | ||
"Intended Audience :: Education", | ||
"License :: OSI Approved :: BSD License", | ||
"Operating System :: OS Independent", | ||
"Programming Language :: Python :: 3", | ||
"Topic :: Documentation", | ||
"Topic :: Text Processing", | ||
"Topic :: Utilities", | ||
], | ||
platforms="any", | ||
packages=find_packages(), | ||
include_package_data=True, | ||
entry_points={ | ||
"console_scripts": [ | ||
"breathe-apidoc = breathe.apidoc:main", | ||
], | ||
}, | ||
install_requires=requires, | ||
) | ||
setup(name="breathe") |
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