Skip to content

Commit

Permalink
Merge pull request #157 from notatallshaw/replace-setuptools-cfg-with…
Browse files Browse the repository at this point in the history
…-pyproject.toml

Replace setuptools.cfg and mypy.ini with pyproject.toml
  • Loading branch information
pradyunsg authored Jul 30, 2024
2 parents b01ff4e + 308553c commit 314dde4
Show file tree
Hide file tree
Showing 4 changed files with 83 additions and 80 deletions.
8 changes: 0 additions & 8 deletions mypy.ini

This file was deleted.

83 changes: 83 additions & 0 deletions pyproject.toml
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
Expand Down Expand Up @@ -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
69 changes: 0 additions & 69 deletions setup.cfg

This file was deleted.

3 changes: 0 additions & 3 deletions setup.py

This file was deleted.

0 comments on commit 314dde4

Please sign in to comment.