diff --git a/mypy.ini b/mypy.ini deleted file mode 100644 index db6380e..0000000 --- a/mypy.ini +++ /dev/null @@ -1,8 +0,0 @@ -[mypy] -warn_unused_configs = true - -[mypy-html5lib] -ignore_missing_imports = true - -[mypy-packaging.*] -ignore_missing_imports = true diff --git a/pyproject.toml b/pyproject.toml index 102eca0..fd392b0 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,5 +1,63 @@ +[project] +name = "resolvelib" +dynamic = ["version"] +description = "Resolve abstract dependencies into concrete ones" +authors = [ + {name = "Tzu-ping Chung", email = "uranusjr@gmail.com"}, +] +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 diff --git a/setup.cfg b/setup.cfg deleted file mode 100644 index 564d679..0000000 --- a/setup.cfg +++ /dev/null @@ -1,69 +0,0 @@ -[metadata] -name = resolvelib -version = attr: resolvelib.__version__ -description = Resolve abstract dependencies into concrete ones -url = https://github.com/sarugaku/resolvelib -author = Tzu-ping Chung -author_email = uranusjr@gmail.com -long_description = file: README.rst -long_description_content_type = text/x-rst -license = ISC License -keywords = - dependency - resolution -classifier = - Development Status :: 3 - Alpha - Intended Audience :: Developers - License :: OSI Approved :: ISC License (ISCL) - Operating System :: OS Independent - Programming Language :: Python :: 2 - Programming Language :: Python :: 3 - Topic :: Software Development :: Libraries :: Python Modules - -[options] -package_dir = - = src -packages = find: -include_package_data = true -zip_safe = false -python_requires = >=3.7 - -[options.packages.find] -where = src - -[options.extras_require] -examples = - html5lib - packaging - pygraphviz - requests -lint = - black==23.12.1 - flake8 - mypy - isort - types-requests -test = - packaging - pytest -release = - build - towncrier - twine - -[bdist_wheel] -universal = 1 - -[flake8] -max-line-length = 88 -select = C,E,F,W,B -ignore = E203, W503, F401 -exclude = - .git, - .venv, - .venvs, - .nox, - __pycache__, - build, - dist, - *.pyi diff --git a/setup.py b/setup.py deleted file mode 100644 index 6068493..0000000 --- a/setup.py +++ /dev/null @@ -1,3 +0,0 @@ -from setuptools import setup - -setup()