Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace setuptools.cfg and mypy.ini with pyproject.toml #157

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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']
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

With the project only supporting Python 3 now, this should be false. Otherwise, the wheels will keep being tagged as py2.py3.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.



[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.

Loading