Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 5 Apr 2023 17:33:51 GMT
From:      Po-Chuan Hsieh <sunpoet@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 0b5a2b0fa536 - main - devel/pylint: Convert to USE_PYTHON=pep517
Message-ID:  <202304051733.335HXpJk083921@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by sunpoet:

URL: https://cgit.FreeBSD.org/ports/commit/?id=0b5a2b0fa536a7f819bbb569baccf819bdad52cc

commit 0b5a2b0fa536a7f819bbb569baccf819bdad52cc
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2023-04-05 17:12:58 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2023-04-05 17:29:46 +0000

    devel/pylint: Convert to USE_PYTHON=pep517
    
    - Update WWW and clean up pkg-descr
    - Bump PORTREVISION for dependency and package change
---
 devel/pylint/Makefile                   | 11 +++---
 devel/pylint/files/patch-pyproject.toml |  9 +++++
 devel/pylint/files/setup.py             | 63 ---------------------------------
 devel/pylint/pkg-descr                  |  2 --
 4 files changed, 15 insertions(+), 70 deletions(-)

diff --git a/devel/pylint/Makefile b/devel/pylint/Makefile
index 4733730e08e0..4687448f80ff 100644
--- a/devel/pylint/Makefile
+++ b/devel/pylint/Makefile
@@ -1,16 +1,20 @@
 PORTNAME=	pylint
 PORTVERSION=	2.15.10
+PORTREVISION=	1
 CATEGORIES=	devel python
 MASTER_SITES=	PYPI
 PKGNAMESUFFIX=	${PYTHON_PKGNAMESUFFIX}
 
 MAINTAINER=	sunpoet@FreeBSD.org
 COMMENT=	Analyzes python source code looking for bugs and signs of poor quality
-WWW=		https://www.pylint.org/
+WWW=		https://www.pylint.org/ \
+		https://github.com/PyCQA/pylint
 
 LICENSE=	GPLv2
 LICENSE_FILE=	${WRKSRC}/LICENSE
 
+BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}setuptools>=62.6:devel/py-setuptools@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}wheel>=0.37.1:devel/py-wheel@${PY_FLAVOR}
 RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}astroid>=2.12.13<2.14.0_99:devel/py-astroid@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}isort>=4.2.5<6:devel/py-isort@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}mccabe>=0.6<0.8:devel/py-mccabe@${PY_FLAVOR} \
@@ -19,7 +23,7 @@ RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}astroid>=2.12.13<2.14.0_99:devel/py-astroid@
 TEST_DEPENDS=	${PYTHON_PKGNAMEPREFIX}pytest>=0:devel/py-pytest@${PY_FLAVOR}
 
 USES=		python:3.7+
-USE_PYTHON=	autoplist concurrent distutils
+USE_PYTHON=	autoplist concurrent pep517
 
 NO_ARCH=	yes
 
@@ -36,7 +40,4 @@ RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}dill>=0.2:devel/py-dill@${PY_FLAVOR} \
 RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}dill>=0.3.6:devel/py-dill@${PY_FLAVOR}
 .endif
 
-post-patch:
-	@${SED} -e 's|%%PORTVERSION%%|${PORTVERSION}|' ${FILESDIR}/setup.py > ${WRKSRC}/setup.py
-
 .include <bsd.port.post.mk>
diff --git a/devel/pylint/files/patch-pyproject.toml b/devel/pylint/files/patch-pyproject.toml
new file mode 100644
index 000000000000..cec34153b04a
--- /dev/null
+++ b/devel/pylint/files/patch-pyproject.toml
@@ -0,0 +1,9 @@
+--- pyproject.toml.orig	2023-01-09 10:58:21 UTC
++++ pyproject.toml
+@@ -1,5 +1,5 @@
+ [build-system]
+-requires = ["setuptools~=62.6", "wheel~=0.37.1"]
++requires = ["setuptools>=62.6", "wheel>=0.37.1"]
+ build-backend = "setuptools.build_meta"
+ 
+ [project]
diff --git a/devel/pylint/files/setup.py b/devel/pylint/files/setup.py
deleted file mode 100644
index 616b4db26479..000000000000
--- a/devel/pylint/files/setup.py
+++ /dev/null
@@ -1,63 +0,0 @@
-#!/usr/bin/env python
-# setup.py generated by flit for tools that don't yet use PEP 517
-
-from distutils.core import setup
-
-packages = \
-['pylint',
- 'pylint.checkers',
- 'pylint.checkers.base',
- 'pylint.checkers.base.name_checker',
- 'pylint.checkers.classes',
- 'pylint.checkers.refactoring',
- 'pylint.config',
- 'pylint.config._pylint_config',
- 'pylint.extensions',
- 'pylint.lint',
- 'pylint.message',
- 'pylint.pyreverse',
- 'pylint.reporters',
- 'pylint.reporters.ureports',
- 'pylint.testutils',
- 'pylint.testutils._primer',
- 'pylint.testutils.functional',
- 'pylint.utils']
-
-package_data = \
-{'': ['*']}
-
-install_requires = \
-['platformdirs>=2.2.0',
- 'astroid>=2.12.13,<=2.14.0-dev0',
- 'isort>=4.2.5,<6',
- 'mccabe>=0.6,<0.8',
- 'tomlkit>=0.10.1']
-
-extras_require = \
-{":python_version<'3.10'": ['typing-extensions>=3.10.0'],
- ":python_version<'3.11'": ['dill>=0.2', 'tomli>=1.1.0'],
- ":python_version>='3.11'": ['dill>=0.3.6'],
- ":sys_platform=='win32'": ['colorama>=0.4.5'],
- 'spelling': ['pyenchant~=3.2'],
- 'testutils': ['gitpython>3']}
-
-entry_points = \
-{'console_scripts': ['epylint = pylint:run_epylint',
-                     'pylint = pylint:run_pylint',
-                     'pylint-config = pylint:_run_pylint_config',
-                     'pyreverse = pylint:run_pyreverse',
-                     'symilar = pylint:run_symilar']}
-
-setup(name='pylint',
-      version='%%PORTVERSION%%',
-      description='python code static checker',
-      author=None,
-      author_email='Python Code Quality Authority <code-quality@python.org>',
-      url=None,
-      packages=packages,
-      package_data=package_data,
-      install_requires=install_requires,
-      extras_require=extras_require,
-      entry_points=entry_points,
-      python_requires='>=3.7.2',
-     )
diff --git a/devel/pylint/pkg-descr b/devel/pylint/pkg-descr
index 2b8db2055229..3f7582758f49 100644
--- a/devel/pylint/pkg-descr
+++ b/devel/pylint/pkg-descr
@@ -6,5 +6,3 @@ Pylint has many rules enabled by default, way too much to silence them all on a
 minimally sized program. It's highly configurable and handle pragmas to control
 it from within your code. Additionally, it is possible to write plugins to add
 your own checks.
-
-See also: https://github.com/PyCQA/pylint



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202304051733.335HXpJk083921>