From 1e97fe575070da5a652ad61335fe929befb1b540 Mon Sep 17 00:00:00 2001 From: Pierre Sassoulas Date: Sat, 14 Oct 2023 14:59:43 +0200 Subject: [PATCH] Migrate setup.py to setup.cfg --- setup.cfg | 49 +++++++++++++++++++++++++++++++++++++++++++++++++ setup.py | 50 ++------------------------------------------------ 2 files changed, 51 insertions(+), 48 deletions(-) diff --git a/setup.cfg b/setup.cfg index cf4e2a4..d56d4ca 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,3 +1,52 @@ +[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 + pylint + +[options.packages.find] +exclude = + tests + sandbox + [aliases] test = pytest diff --git a/setup.py b/setup.py index 667465c..6068493 100644 --- a/setup.py +++ b/setup.py @@ -1,49 +1,3 @@ -#!/usr/bin/env python +from setuptools import setup -from os import path - -from setuptools import find_packages, setup - -here = path.abspath(path.dirname(__file__)) -with open(path.join(here, "README.md")) as fin: - long_description = fin.read() - - -setup( - 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=long_description, - long_description_content_type="text/markdown", - packages=find_packages(exclude=["tests", "sandbox"]), - install_requires=[ - "pylint<3", - "pytest>=4.6", - ], - python_requires=">=3.6", - 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", - ], - tests_require=["pytest", "pytest-cov", "pylint"], - keywords=["pylint", "pytest", "plugin"], -) +setup()