Skip to content

Commit

Permalink
Merge branch 'pyproject'
Browse files Browse the repository at this point in the history
  • Loading branch information
AA-Turner committed Jan 23, 2023
2 parents 7e05fea + 9003a00 commit 2981e43
Show file tree
Hide file tree
Showing 8 changed files with 78 additions and 131 deletions.
4 changes: 4 additions & 0 deletions .flake8
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[flake8]
max-line-length = 95
ignore = E116,E241,E251
exclude = .git,.tox,.venv
8 changes: 8 additions & 0 deletions babel.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[extract_messages]
output_file = sphinxcontrib/htmlhelp/locales/sphinxcontrib.htmlhelp.pot
keywords = _ __

[compile_catalog]
domain = sphinxcontrib.htmlhelp
directory = sphinxcontrib/htmlhelp/locales/
use_fuzzy = true
64 changes: 64 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
[build-system]
requires = ["setuptools>=64"]
build-backend = "setuptools.build_meta"

# project metadata
[project]
name = "sphinxcontrib-htmlhelp"
description = "sphinxcontrib-htmlhelp is a sphinx extension which renders HTML help files"
readme = "README.rst"
urls.Changelog = "https://www.sphinx-doc.org/en/master/changes.html"
urls.Code = "https://github.com/sphinx-doc/sphinxcontrib-htmlhelp"
urls.Download = "https://pypi.org/project/sphinxcontrib-htmlhelp/"
urls.Homepage = "https://www.sphinx-doc.org/"
urls."Issue tracker" = "https://github.com/sphinx-doc/sphinx/issues"
license.text = "BSD-2-Clause"
requires-python = ">=3.8"

# Classifiers list: https://pypi.org/classifiers/
classifiers = [
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"Environment :: Web Environment",
"Intended Audience :: Developers",
"Intended Audience :: Education",
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Framework :: Sphinx",
"Framework :: Sphinx :: Extension",
"Topic :: Documentation",
"Topic :: Documentation :: Sphinx",
"Topic :: Text Processing",
"Topic :: Utilities",
]
dependencies = []
dynamic = ["version"]

[project.optional-dependencies]
test = [
"pytest",
"html5lib",
]
lint = [
"flake8",
"mypy",
"docutils-stubs",
]

[[project.authors]]
name = "Georg Brandl"
email = "georg@python.org"

[tool.setuptools.dynamic]
version.attr = "sphinxcontrib.htmlhelp.__version__"

[tool.mypy]
ignore_missing_imports = true
30 changes: 0 additions & 30 deletions setup.cfg

This file was deleted.

74 changes: 0 additions & 74 deletions setup.py

This file was deleted.

15 changes: 0 additions & 15 deletions sphinxcontrib/__init__.py

This file was deleted.

4 changes: 2 additions & 2 deletions sphinxcontrib/htmlhelp/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@
from sphinx.util.template import SphinxRenderer
from sphinx.writers.html import HTMLTranslator

from sphinxcontrib.htmlhelp.version import __version__

__version__ = '2.0.1'
__version_info__ = (2, 0, 1)

logger = logging.getLogger(__name__)
__ = get_translation(__name__, 'console')
Expand Down
10 changes: 0 additions & 10 deletions sphinxcontrib/htmlhelp/version.py

This file was deleted.

0 comments on commit 2981e43

Please sign in to comment.