Skip to content

Commit b8e48d8

Browse files
committed
Merge branch 'pyproject'
2 parents 4955abe + 4b94ea9 commit b8e48d8

File tree

8 files changed

+94
-127
lines changed

8 files changed

+94
-127
lines changed

.flake8

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
[flake8]
2+
max-line-length = 95
3+
ignore = E116,E241,E251
4+
exclude = .git,.tox,.venv

babel.cfg

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
[extract_messages]
2+
output_file = sphinxcontrib/serializinghtml/locales/sphinxcontrib.serializinghtml.pot
3+
keywords = _ __
4+
5+
[compile_catalog]
6+
domain = sphinxcontrib.serializinghtml
7+
directory = sphinxcontrib/serializinghtml/locales/
8+
use_fuzzy = true

pyproject.toml

Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
[build-system]
2+
requires = ["flit_core>=3.7"]
3+
build-backend = "flit_core.buildapi"
4+
5+
# project metadata
6+
[project]
7+
name = "sphinxcontrib-serializinghtml"
8+
description = """sphinxcontrib-serializinghtml is a sphinx extension which \
9+
outputs "serialized" HTML files (json and pickle)"""
10+
readme = "README.rst"
11+
urls.Changelog = "https://www.sphinx-doc.org/en/master/changes.html"
12+
urls.Code = "https://github.com/sphinx-doc/sphinxcontrib-serializinghtml"
13+
urls.Download = "https://pypi.org/project/sphinxcontrib-serializinghtml/"
14+
urls.Homepage = "https://www.sphinx-doc.org/"
15+
urls."Issue tracker" = "https://github.com/sphinx-doc/sphinx/issues"
16+
license.text = "BSD-2-Clause"
17+
requires-python = ">=3.5"
18+
19+
# Classifiers list: https://pypi.org/classifiers/
20+
classifiers = [
21+
"Development Status :: 5 - Production/Stable",
22+
"Environment :: Console",
23+
"Environment :: Web Environment",
24+
"Intended Audience :: Developers",
25+
"Intended Audience :: Education",
26+
"License :: OSI Approved :: BSD License",
27+
"Operating System :: OS Independent",
28+
"Programming Language :: Python",
29+
"Programming Language :: Python :: 3",
30+
"Programming Language :: Python :: 3 :: Only",
31+
"Programming Language :: Python :: 3.5",
32+
"Programming Language :: Python :: 3.6",
33+
"Programming Language :: Python :: 3.7",
34+
"Programming Language :: Python :: 3.8",
35+
"Programming Language :: Python :: 3.9",
36+
"Programming Language :: Python :: 3.10",
37+
"Programming Language :: Python :: 3.11",
38+
"Programming Language :: Python :: 3.12",
39+
"Framework :: Sphinx",
40+
"Framework :: Sphinx :: Extension",
41+
"Topic :: Documentation",
42+
"Topic :: Documentation :: Sphinx",
43+
"Topic :: Text Processing",
44+
"Topic :: Utilities",
45+
]
46+
dependencies = []
47+
dynamic = ["version"]
48+
49+
[project.optional-dependencies]
50+
test = [
51+
"pytest",
52+
]
53+
lint = [
54+
"flake8",
55+
"mypy",
56+
"docutils-stubs",
57+
]
58+
59+
[[project.authors]]
60+
name = "Georg Brandl"
61+
email = "georg@python.org"
62+
63+
[tool.flit.module]
64+
name = "sphinxcontrib.serializinghtml"
65+
66+
[tool.flit.sdist]
67+
include = [
68+
"CHANGES",
69+
"LICENSE",
70+
# Tests
71+
"tests/",
72+
"tox.ini",
73+
]
74+
exclude = [
75+
"doc/_build",
76+
]
77+
78+
[tool.mypy]
79+
ignore_missing_imports = true

setup.cfg

Lines changed: 0 additions & 30 deletions
This file was deleted.

setup.py

Lines changed: 0 additions & 71 deletions
This file was deleted.

sphinxcontrib/__init__.py

Lines changed: 0 additions & 15 deletions
This file was deleted.

sphinxcontrib/serializinghtml/__init__.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,14 @@
1717
from sphinx.util.osutil import SEP, copyfile, ensuredir, os_path
1818

1919
from sphinxcontrib.serializinghtml import jsonimpl
20-
from sphinxcontrib.serializinghtml.version import __version__
2120

2221
if False:
2322
# For type annotation
2423
from typing import Any, Dict, Tuple # NOQA
2524

25+
__version__ = '1.1.6'
26+
__version_info__ = (1, 1, 6)
27+
2628
package_dir = path.abspath(path.dirname(__file__))
2729

2830
__ = get_translation(__name__, 'console')

sphinxcontrib/serializinghtml/version.py

Lines changed: 0 additions & 10 deletions
This file was deleted.

0 commit comments

Comments
 (0)