Skip to content

Commit

Permalink
PEP 621: Migrate more config into pyproject.toml (#110)
Browse files Browse the repository at this point in the history
* 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 <ssbarnea@redhat.com>
  • Loading branch information
3 people committed Sep 24, 2022
1 parent cb946d6 commit e488bc9
Show file tree
Hide file tree
Showing 3 changed files with 77 additions and 77 deletions.
8 changes: 8 additions & 0 deletions .flake8
@@ -0,0 +1,8 @@
[flake8]
builtins = _
show_source = True
exclude=.venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg,build
# Minimal config needed to make flake8 compatible with black output:
max_line_length=160
# See https://github.com/PyCQA/pycodestyle/issues/373
extend_ignore = E203
70 changes: 69 additions & 1 deletion pyproject.toml
@@ -1,6 +1,6 @@
[build-system]
requires = [
"setuptools >= 42",
"setuptools>=61.2",
"setuptools_scm[toml] >= 3.5.0",
"setuptools_scm_git_archive >= 1.1",
"wheel >= 0.33.6",
Expand All @@ -9,3 +9,71 @@ build-backend = "setuptools.build_meta"

[tool.setuptools_scm]
local_scheme = "no-local-version"

[project]
name = "doc8"
description = "Style checker for Sphinx (or other) RST documentation"
authors = [{name = "OpenStack", email = "openstack-discuss@lists.openstack.org"}]
maintainers = [{name = "PyCQA", email = "code-quality@python.org"}]
license = {text = "Apache 2.0"}
classifiers = [
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"Intended Audience :: Developers",
"Intended Audience :: Information Technology",
"Intended Audience :: System Administrators",
"License :: OSI Approved :: Apache Software License",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"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",
"Topic :: System :: Systems Administration",
"Topic :: Utilities",
]
keywords = [
"doc8",
"rst",
"linter",
]
requires-python = ">=3.7"
dependencies = [
# Ceiled due to DeprecationWarning: The frontend.OptionParser class will be
# replaced by a subclass of argparse.ArgumentParser in Docutils 0.21 or later.
"docutils>=0.19,<0.21",
"restructuredtext-lint>=0.7",
"stevedore",
"tomli; python_version < '3.11'",
"Pygments",
]
dynamic = ["version"]

[project.urls]
Homepage = "https://github.com/pycqa/doc8"
"Bug Tracker" = "https://github.com/pycqa/doc8/issues"
"Release Management" = "https://github.com/pycqa/doc8/releases"
CI = "https://github.com/pycqa/doc8/actions"
Documentation = "https://doc8.readthedocs.io"
Discussions = "https://github.com/pycqa/doc8/discussions"

[project.readme]
file = "README.rst"
content-type = "text/x-rst"

[project.scripts]
doc8 = "doc8.main:main"

[tool.setuptools]
# use-scm-version = "True" # Does not pass validate-pyproject
package-dir = {"" = "src"}
include-package-data = true
zip-safe = false
# These are required in actual runtime:
license-files = ["LICENSE"]

[tool.setuptools.packages.find]
where = ["src"]
namespaces = false
76 changes: 0 additions & 76 deletions setup.cfg

This file was deleted.

0 comments on commit e488bc9

Please sign in to comment.