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 7, 2023
2 parents 7f23164 + a5f90db commit 8ead5e9
Show file tree
Hide file tree
Showing 9 changed files with 81 additions and 132 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
9 changes: 0 additions & 9 deletions MANIFEST.in

This file was deleted.

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/applehelp/locales/sphinxcontrib.applehelp.pot
keywords = _ __

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

# project metadata
[project]
name = "sphinxcontrib.applehelp"
description = "sphinxcontrib-applehelp is a Sphinx extension which outputs Apple help books"
readme = "README.rst"
urls.Changelog = "https://www.sphinx-doc.org/en/master/changes.html"
urls.Code = "https://github.com/sphinx-doc/sphinxcontrib-applehelp"
urls.Download = "https://pypi.org/project/sphinxcontrib-applehelp/"
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",
"Framework :: Sphinx",
"Framework :: Sphinx :: Extension",
"Topic :: Documentation",
"Topic :: Documentation :: Sphinx",
"Topic :: Text Processing",
"Topic :: Utilities",
]
dependencies = []
dynamic = ["version"]

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

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

[tool.flit.sdist]
include = [
"LICENSE",
"CHANGES",
# Tests
"tests/",
"tox.ini",
]
exclude = [
"doc/_build",
]

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

This file was deleted.

67 changes: 0 additions & 67 deletions setup.py

This file was deleted.

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

This file was deleted.

5 changes: 3 additions & 2 deletions sphinxcontrib/applehelp/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,14 @@
from sphinx.util.matching import Matcher
from sphinx.util.osutil import ensuredir, make_filename

from sphinxcontrib.applehelp.version import __version__

if sphinx.version_info[:2] >= (6, 1):
from sphinx.util.display import SkipProgressMessage, progress_message
else:
from sphinx.util import SkipProgressMessage, progress_message

__version__ = '1.0.3'
__version_info__ = (1, 0, 3)

package_dir = path.abspath(path.dirname(__file__))
template_dir = path.join(package_dir, 'templates')

Expand Down
10 changes: 0 additions & 10 deletions sphinxcontrib/applehelp/version.py

This file was deleted.

0 comments on commit 8ead5e9

Please sign in to comment.