From 42a6a45695d3f46ce519f0e1b6b2ab88fa578d69 Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Thu, 22 Sep 2022 10:18:36 +0200 Subject: [PATCH 1/3] Migrate metadata from setup.py to setup.cfg Done using https://pypi.org/project/setuptools-py2cfg plus manual modifications. After this is reviewed and landed, a migration to `pyproject.toml` can be achieved. --- setup.cfg | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 setup.cfg diff --git a/setup.cfg b/setup.cfg new file mode 100644 index 00000000..69211556 --- /dev/null +++ b/setup.cfg @@ -0,0 +1,45 @@ +[metadata] +name = pylint-django +version = 2.5.3 +author = landscape.io +author_email = code@landscape.io +license = GPLv2 +description = A Pylint plugin to help Pylint understand the Django web framework +keywords = pylint, django, plugin +url = https://github.com/PyCQA/pylint-django +long_description = file: README.rst, CHANGELOG.rst +classifiers = + Environment :: Console + Intended Audience :: Developers + Operating System :: Unix + Topic :: Software Development :: Quality Assurance + Programming Language :: Python :: 3 + Programming Language :: Python :: 3.6 + Programming Language :: Python :: 3.7 + Programming Language :: Python :: 3.8 + Programming Language :: Python :: 3.9 + Framework :: Django :: 1.11 + Framework :: Django :: 2.0 + Framework :: Django :: 2.2 + Framework :: Django :: 3.0 + Framework :: Django :: 3.1 + Framework :: Django :: 3.2 +project_urls = + Changelog = https://github.com/PyCQA/pylint-django/blob/master/CHANGELOG.rst + +[options] +packages = find: +zip_safe = False +install_requires = pylint-plugin-utils>=0.7; pylint>=2.0,<3 +include_package_data = True + +[options.extras_require] +with_django = Django +for_tests = + django_tables2 + factory-boy + coverage + pytest + wheel + django-tastypie + pylint>=2.13 From 6b9062aed493a7ea2a63073d8bf5fb043fb9a9c6 Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Thu, 22 Sep 2022 10:19:54 +0200 Subject: [PATCH 2/3] Update setup.py --- setup.py | 55 ++----------------------------------------------------- 1 file changed, 2 insertions(+), 53 deletions(-) diff --git a/setup.py b/setup.py index 4434ffd2..c59332c3 100644 --- a/setup.py +++ b/setup.py @@ -2,58 +2,7 @@ """ Setup module for Pylint plugin for Django. """ -from setuptools import find_packages, setup +from setuptools import setup -with open("README.rst", encoding="utf-8") as readme, open("CHANGELOG.rst", encoding="utf-8") as changelog: - LONG_DESCRIPTION = readme.read() + "\n" + changelog.read() -setup( - name="pylint-django", - url="https://github.com/PyCQA/pylint-django", - author="landscape.io", - author_email="code@landscape.io", - description="A Pylint plugin to help Pylint understand the Django web framework", - long_description=LONG_DESCRIPTION, - version="2.5.3", - packages=find_packages(), - include_package_data=True, - install_requires=[ - "pylint-plugin-utils>=0.7", - "pylint>=2.0,<3", - ], - extras_require={ - "with_django": ["Django"], - "for_tests": [ - "django_tables2", - "factory-boy", - "coverage", - "pytest", - "wheel", - "django-tastypie", - "pylint>=2.13", - ], - }, - license="GPLv2", - classifiers=[ - "Environment :: Console", - "Intended Audience :: Developers", - "Operating System :: Unix", - "Topic :: Software Development :: Quality Assurance", - "Programming Language :: Python :: 3", - "Programming Language :: Python :: 3.6", - "Programming Language :: Python :: 3.7", - "Programming Language :: Python :: 3.8", - "Programming Language :: Python :: 3.9", - "Framework :: Django :: 1.11", - "Framework :: Django :: 2.0", - "Framework :: Django :: 2.2", - "Framework :: Django :: 3.0", - "Framework :: Django :: 3.1", - "Framework :: Django :: 3.2", - ], - keywords=["pylint", "django", "plugin"], - zip_safe=False, - project_urls={ - "Changelog": "https://github.com/PyCQA/pylint-django/blob/master/CHANGELOG.rst", - }, -) +setup() From 0f241bf7cfe47aba0115b1630c115f85f328f199 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Thu, 22 Sep 2022 08:20:20 +0000 Subject: [PATCH 3/3] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- setup.py | 1 - 1 file changed, 1 deletion(-) diff --git a/setup.py b/setup.py index c59332c3..814b2a92 100644 --- a/setup.py +++ b/setup.py @@ -4,5 +4,4 @@ """ from setuptools import setup - setup()