-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update build system to use pyproject.toml
- Loading branch information
Showing
9 changed files
with
88 additions
and
76 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
[build-system] | ||
requires = ["setuptools>=61.0", "wheel", "build"] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[project] | ||
name = "flake8-requirements" | ||
# NOTE: Keep in sync with src/flake8_requirements/checker.py file. | ||
version = "2.2.1" | ||
description = "Package requirements checker, plugin for flake8" | ||
readme = "README.rst" | ||
authors = [ { name = "Arkadiusz Bokowy", email = "[email protected]" } ] | ||
requires-python = ">=3.6" | ||
classifiers = [ | ||
"Framework :: Flake8", | ||
"Intended Audience :: Developers", | ||
"License :: OSI Approved :: MIT License", | ||
"Programming Language :: Python", | ||
"Programming Language :: Python :: 3", | ||
"Programming Language :: Python :: 3 :: Only", | ||
"Topic :: Software Development :: Libraries :: Python Modules", | ||
"Topic :: Software Development :: Quality Assurance", | ||
] | ||
dependencies = [ | ||
"flake8 >= 4.0.0", | ||
"setuptools >= 10.0.0", | ||
"tomli>=1.2.1; python_version < '3.11'", | ||
] | ||
|
||
[project.optional-dependencies] | ||
pyproject = ["Flake8-pyproject"] | ||
|
||
[project.urls] | ||
Homepage = "https://github.com/arkq/flake8-requirements" | ||
|
||
[project.entry-points."flake8.extension"] | ||
I90 = "flake8_requirements:Flake8Checker" | ||
|
||
[tool.doc8] | ||
max-line-length = 99 | ||
|
||
[tool.isort] | ||
force_single_line = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
[tox] | ||
envlist = | ||
coverage | ||
py3 | ||
isolated_build = true | ||
|
||
[testenv] | ||
description = Run the tests with pytest under {basepython}. | ||
setenv = | ||
COVERAGE_FILE = {toxworkdir}/.coverage.{envname} | ||
commands = | ||
pytest \ | ||
--cov="{envsitepackagesdir}/flake8_requirements" \ | ||
--cov-config="{toxinidir}/tox.ini" \ | ||
test | ||
deps = | ||
pytest | ||
pytest-cov | ||
|
||
[testenv:coverage] | ||
description = Combine coverage data and create final XML report. | ||
setenv = | ||
COVERAGE_FILE = {toxworkdir}/.coverage | ||
commands = | ||
coverage combine | ||
coverage report | ||
coverage xml -o "{toxworkdir}/coverage.xml" | ||
skip_install = true | ||
deps = coverage | ||
depends = py3 | ||
|
||
[coverage:paths] | ||
source = src/flake8_requirements | ||
*/.tox/*/lib/python*/site-packages/flake8_requirements | ||
*/src/flake8_requirements |