From fdb4b7741699e17c9d52a760bc00aa228cfc743f Mon Sep 17 00:00:00 2001 From: Pierre Sassoulas Date: Sat, 14 Oct 2023 16:53:52 +0200 Subject: [PATCH] Move metadata to pyproject.toml from setup.cfg --- pyproject.toml | 43 ++++++++++++++++++++++++++++++++++++++++++- setup.cfg | 40 ---------------------------------------- 2 files changed, 42 insertions(+), 41 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 17a7d80..87d7a14 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,4 +1,45 @@ -# Only a configuration storage, for now +[build-system] +requires = ["setuptools>=66.1"] +build-backend = "setuptools.build_meta" + +[project] +name = "pylint-pytest" +version = "1.1.2" +authors = [ + {name = "Reverb Chu", email = "pylint-pytest@reverbc.tw"} +] +description = "A Pylint plugin to suppress pytest-related false positives." +readme = "README.md" +classifiers = [ + "Development Status :: 5 - Production/Stable", + "Intended Audience :: Developers", + "Topic :: Software Development :: Testing", + "Topic :: Software Development :: Quality Assurance", + "Programming Language :: Python", + "Programming Language :: Python :: 3", + "Programming Language :: Python :: 3.6", + "Programming Language :: Python :: 3.7", + "Programming Language :: Python :: 3.8", + "Programming Language :: Python :: 3.9", + "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: Implementation :: CPython", + "Operating System :: OS Independent", +] +keywords = ["pylint", "pytest", "plugin"] +requires-python = ">=3.6" + +dependencies = [ + "pylint<3", + "pytest>=4.6" +] + +[tool.setuptools] +license-files = ["LICENSE"] + + +[tool.aliases] +test = "pytest" [tool.black] line-length = 100 diff --git a/setup.cfg b/setup.cfg index d56d4ca..da9aad8 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,42 +1,5 @@ -[metadata] -name = pylint-pytest -version = 1.1.2 -author = Reverb Chu -author_email = pylint-pytest@reverbc.tw -maintainer = Reverb Chu -maintainer_email = pylint-pytest@reverbc.tw -license = MIT -url = https://github.com/reverbc/pylint-pytest -description = A Pylint plugin to suppress pytest-related false positives. -long_description = file: README.md -long_description_content_type = text/markdown -classifiers = - Development Status :: 5 - Production/Stable - Intended Audience :: Developers - Topic :: Software Development :: Testing - Topic :: Software Development :: Quality Assurance - Programming Language :: Python - Programming Language :: Python :: 3 - Programming Language :: Python :: 3.6 - Programming Language :: Python :: 3.7 - Programming Language :: Python :: 3.8 - Programming Language :: Python :: 3.9 - Programming Language :: Python :: 3.10 - Programming Language :: Python :: 3.11 - Programming Language :: Python :: Implementation :: CPython - Operating System :: OS Independent - License :: OSI Approved :: MIT License -keywords = - pylint - pytest - plugin - [options] packages = find: -install_requires = - pylint<3 - pytest>=4.6 -python_requires = >=3.6 tests_require = pytest pytest-cov @@ -47,8 +10,5 @@ exclude = tests sandbox -[aliases] -test = pytest - [bdist_wheel] universal = 1