From 4981b916b742c74c540eafa12a811899084d43d8 Mon Sep 17 00:00:00 2001 From: Anis Da Silva Campos Date: Mon, 4 Dec 2023 20:56:44 +0100 Subject: [PATCH] fixup! rework dev dependencies management no need for setup.* files. used to migrate two tools: `setuptools-py2cfg >>setup.cfg` then `ini2toml setup.cfg >> pyproject.toml` --- pyproject.toml | 54 +++++++++++++++++++++++++++++++++++++++++++++++++- setup.cfg | 49 --------------------------------------------- setup.py | 5 ----- 3 files changed, 53 insertions(+), 55 deletions(-) delete mode 100644 setup.cfg delete mode 100755 setup.py diff --git a/pyproject.toml b/pyproject.toml index 0fdc364..97bcdab 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,10 +1,62 @@ # Only a configuration storage, for now [build-system] -requires = ["setuptools"] +requires = ["setuptools>=61.2"] +build-backend = "setuptools.build_meta" + +[project] +name = "pylint-pytest" +version = "1.1.7" +authors = [{name = "Stavros Ntentos", email = "133706+stdedos@users.noreply.github.com"}] +license = {text = "MIT"} +description = "A Pylint plugin to suppress pytest-related false positives." +keywords = ["pylint", "pytest", "plugin"] +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.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", +] +requires-python = ">=3.8" +dependencies = [ + "pylint>=2,<4", + "pytest>=4.6", +] + +[project.readme] +file = "README.md" +content-type = "text/markdown" + +[project.urls] +Homepage = "https://github.com/pylint-dev/pylint-pytest" +Changelog = "https://github.com/pylint-dev/pylint-pytest/blob/master/CHANGELOG.md" +Documentation = "https://github.com/pylint-dev/pylint-pytest#readme" +"Say Thanks!" = "https://saythanks.io/to/stdedos" +Source = "https://github.com/pylint-dev/pylint-pytest" +Tracker = "https://github.com/pylint-dev/pylint-pytest/issues" + [tool.aliases] test = "pytest" +[tool.setuptools] +include-package-data = false + +[tool.setuptools.packages.find] +exclude = [ + "tests*", + "sandbox", +] +namespaces = false + [tool.black] line-length = 100 diff --git a/setup.cfg b/setup.cfg deleted file mode 100644 index 0119a5d..0000000 --- a/setup.cfg +++ /dev/null @@ -1,49 +0,0 @@ -[metadata] -name = pylint-pytest -version = 1.1.7 -author = Stavros Ntentos -author_email = 133706+stdedos@users.noreply.github.com -license = MIT -description = A Pylint plugin to suppress pytest-related false positives. -keywords = pylint, pytest, plugin -url = https://github.com/pylint-dev/pylint-pytest -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.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 -project_urls = - Changelog = https://github.com/pylint-dev/pylint-pytest/blob/master/CHANGELOG.md - Documentation = https://github.com/pylint-dev/pylint-pytest#readme - Say Thanks! = https://saythanks.io/to/stdedos - Source = https://github.com/pylint-dev/pylint-pytest - Tracker = https://github.com/pylint-dev/pylint-pytest/issues - -[aliases] -test = pytest - -[options] -packages = find: -install_requires = - pylint>=2,<4 - pytest>=4.6 -python_requires = >=3.8 -tests_require = - pytest - pytest-cov - pylint -[options.packages.find] -exclude = - tests* - sandbox diff --git a/setup.py b/setup.py deleted file mode 100755 index beda28e..0000000 --- a/setup.py +++ /dev/null @@ -1,5 +0,0 @@ -#!/usr/bin/env python - -from setuptools import setup - -setup()