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 Mar 17, 2023
2 parents 4955abe + 4b94ea9 commit b8e48d8
Show file tree
Hide file tree
Showing 8 changed files with 94 additions and 127 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/serializinghtml/locales/sphinxcontrib.serializinghtml.pot
keywords = _ __

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

# project metadata
[project]
name = "sphinxcontrib-serializinghtml"
description = """sphinxcontrib-serializinghtml is a sphinx extension which \
outputs "serialized" HTML files (json and pickle)"""
readme = "README.rst"
urls.Changelog = "https://www.sphinx-doc.org/en/master/changes.html"
urls.Code = "https://github.com/sphinx-doc/sphinxcontrib-serializinghtml"
urls.Download = "https://pypi.org/project/sphinxcontrib-serializinghtml/"
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.5"

# 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.5",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"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",
]
lint = [
"flake8",
"mypy",
"docutils-stubs",
]

[[project.authors]]
name = "Georg Brandl"
email = "[email protected]"

[tool.flit.module]
name = "sphinxcontrib.serializinghtml"

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

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

This file was deleted.

71 changes: 0 additions & 71 deletions setup.py

This file was deleted.

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

This file was deleted.

4 changes: 3 additions & 1 deletion sphinxcontrib/serializinghtml/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,14 @@
from sphinx.util.osutil import SEP, copyfile, ensuredir, os_path

from sphinxcontrib.serializinghtml import jsonimpl
from sphinxcontrib.serializinghtml.version import __version__

if False:
# For type annotation
from typing import Any, Dict, Tuple # NOQA

__version__ = '1.1.6'
__version_info__ = (1, 1, 6)

package_dir = path.abspath(path.dirname(__file__))

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

This file was deleted.

0 comments on commit b8e48d8

Please sign in to comment.