Skip to content

Commit e488bc9

Browse files
cclausspre-commit-ci[bot]ssbarnea
authored
PEP 621: Migrate more config into pyproject.toml (#110)
* PEP 621: Migrate more config into pyproject.toml * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Sorin Sbarnea <[email protected]>
1 parent cb946d6 commit e488bc9

File tree

3 files changed

+77
-77
lines changed

3 files changed

+77
-77
lines changed

.flake8

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
[flake8]
2+
builtins = _
3+
show_source = True
4+
exclude=.venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg,build
5+
# Minimal config needed to make flake8 compatible with black output:
6+
max_line_length=160
7+
# See https://github.com/PyCQA/pycodestyle/issues/373
8+
extend_ignore = E203

pyproject.toml

+69-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[build-system]
22
requires = [
3-
"setuptools >= 42",
3+
"setuptools>=61.2",
44
"setuptools_scm[toml] >= 3.5.0",
55
"setuptools_scm_git_archive >= 1.1",
66
"wheel >= 0.33.6",
@@ -9,3 +9,71 @@ build-backend = "setuptools.build_meta"
99

1010
[tool.setuptools_scm]
1111
local_scheme = "no-local-version"
12+
13+
[project]
14+
name = "doc8"
15+
description = "Style checker for Sphinx (or other) RST documentation"
16+
authors = [{name = "OpenStack", email = "[email protected]"}]
17+
maintainers = [{name = "PyCQA", email = "[email protected]"}]
18+
license = {text = "Apache 2.0"}
19+
classifiers = [
20+
"Development Status :: 5 - Production/Stable",
21+
"Environment :: Console",
22+
"Intended Audience :: Developers",
23+
"Intended Audience :: Information Technology",
24+
"Intended Audience :: System Administrators",
25+
"License :: OSI Approved :: Apache Software License",
26+
"Operating System :: POSIX :: Linux",
27+
"Programming Language :: Python",
28+
"Programming Language :: Python :: 3",
29+
"Programming Language :: Python :: 3.7",
30+
"Programming Language :: Python :: 3.8",
31+
"Programming Language :: Python :: 3.9",
32+
"Programming Language :: Python :: 3.10",
33+
"Programming Language :: Python :: 3.11",
34+
"Topic :: System :: Systems Administration",
35+
"Topic :: Utilities",
36+
]
37+
keywords = [
38+
"doc8",
39+
"rst",
40+
"linter",
41+
]
42+
requires-python = ">=3.7"
43+
dependencies = [
44+
# Ceiled due to DeprecationWarning: The frontend.OptionParser class will be
45+
# replaced by a subclass of argparse.ArgumentParser in Docutils 0.21 or later.
46+
"docutils>=0.19,<0.21",
47+
"restructuredtext-lint>=0.7",
48+
"stevedore",
49+
"tomli; python_version < '3.11'",
50+
"Pygments",
51+
]
52+
dynamic = ["version"]
53+
54+
[project.urls]
55+
Homepage = "https://github.com/pycqa/doc8"
56+
"Bug Tracker" = "https://github.com/pycqa/doc8/issues"
57+
"Release Management" = "https://github.com/pycqa/doc8/releases"
58+
CI = "https://github.com/pycqa/doc8/actions"
59+
Documentation = "https://doc8.readthedocs.io"
60+
Discussions = "https://github.com/pycqa/doc8/discussions"
61+
62+
[project.readme]
63+
file = "README.rst"
64+
content-type = "text/x-rst"
65+
66+
[project.scripts]
67+
doc8 = "doc8.main:main"
68+
69+
[tool.setuptools]
70+
# use-scm-version = "True" # Does not pass validate-pyproject
71+
package-dir = {"" = "src"}
72+
include-package-data = true
73+
zip-safe = false
74+
# These are required in actual runtime:
75+
license-files = ["LICENSE"]
76+
77+
[tool.setuptools.packages.find]
78+
where = ["src"]
79+
namespaces = false

setup.cfg

-76
This file was deleted.

0 commit comments

Comments
 (0)