-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #157 from notatallshaw/replace-setuptools-cfg-with…
…-pyproject.toml Replace setuptools.cfg and mypy.ini with pyproject.toml
- Loading branch information
Showing
4 changed files
with
83 additions
and
80 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,63 @@ | ||
[project] | ||
name = "resolvelib" | ||
dynamic = ["version"] | ||
description = "Resolve abstract dependencies into concrete ones" | ||
authors = [ | ||
{name = "Tzu-ping Chung", email = "[email protected]"}, | ||
] | ||
dependencies = [] | ||
requires-python = ">=3.7" | ||
readme = "README.rst" | ||
license = {text = "ISC License"} | ||
keywords = ["dependency", "resolution"] | ||
classifiers = [ | ||
"Development Status :: 3 - Alpha", | ||
"Intended Audience :: Developers", | ||
"License :: OSI Approved :: ISC License (ISCL)", | ||
"Operating System :: OS Independent", | ||
"Programming Language :: Python :: 3", | ||
"Topic :: Software Development :: Libraries :: Python Modules", | ||
|
||
] | ||
|
||
[project.urls] | ||
Homepage = "https://github.com/sarugaku/resolvelib" | ||
|
||
[project.optional-dependencies] | ||
lint = [ | ||
"black==23.12.1", | ||
"flake8", | ||
"Flake8-pyproject", | ||
"isort", | ||
"mypy", | ||
"types-requests", | ||
] | ||
test = [ | ||
"packaging", | ||
"pytest", | ||
] | ||
release = [ | ||
"build", | ||
"towncrier", | ||
"twine", | ||
] | ||
|
||
[build-system] | ||
requires = ['setuptools>=62', 'wheel'] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[tool.setuptools] | ||
include-package-data = true | ||
|
||
[tool.setuptools.packages] | ||
find = {where = ["src"], namespaces = false} | ||
|
||
[tool.setuptools.dynamic] | ||
version = {attr = "resolvelib.__version__"} | ||
|
||
[tool.distutils.bdist_wheel] | ||
universal = true | ||
|
||
|
||
[tool.black] | ||
line-length = 79 | ||
|
@@ -33,3 +91,28 @@ showcontent = true | |
directory = 'trivial' | ||
name = 'Trivial Changes' | ||
showcontent = false | ||
|
||
[tool.flake8] | ||
max-line-length = 88 | ||
select = ["C","E","F","W","B"] | ||
ignore = ["E203", "W503", "F401"] | ||
exclude = [ | ||
".git", | ||
".venv", | ||
".venvs", | ||
".nox", | ||
"__pycache__", | ||
"build", | ||
"dist", | ||
"*.pyi" | ||
] | ||
|
||
[tool.mypy] | ||
warn_unused_configs = true | ||
|
||
[[tool.mypy.overrides]] | ||
module = [ | ||
"html5lib", | ||
"packaging.*" | ||
] | ||
ignore_missing_imports = true |