devel/py-pylint-venv: New port: Pylint-venv allows use same Pylint with different virtual environments

This commit is contained in:
Yuri Victorovich 2022-10-12 17:40:05 -07:00
parent 7790782dbc
commit e8948076b9
4 changed files with 33 additions and 0 deletions

View File

@ -5080,6 +5080,7 @@
SUBDIR += py-pylibsrtp
SUBDIR += py-pylint-django
SUBDIR += py-pylint-plugin-utils
SUBDIR += py-pylint-venv
SUBDIR += py-pylru
SUBDIR += py-pylru-cache
SUBDIR += py-pyls-black

View File

@ -0,0 +1,25 @@
PORTNAME= pylint-venv
PORTVERSION= 2.3.0
CATEGORIES= devel python
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= yuri@FreeBSD.org
COMMENT= Pylint-venv allows use same Pylint with different virtual environments
WWW= https://github.com/jgosmann/pylint-venv/
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE.txt
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}poetry-core>=1.0.0:devel/py-poetry-core@${PY_FLAVOR}
USES= python:3.6+
USE_PYTHON= distutils autoplist
NO_ARCH= yes
# upstream stopped providing setup.py
post-patch:
@${ECHO_CMD} 'import setuptools; setuptools.setup()' > ${WRKSRC}/setup.py
.include <bsd.port.mk>

View File

@ -0,0 +1,3 @@
TIMESTAMP = 1665619311
SHA256 (pylint-venv-2.3.0.tar.gz) = 3594955502fdee83c98bfcc8c14cd615e6c7c3608aea525df84853ce79f296bf
SIZE (pylint-venv-2.3.0.tar.gz) = 5033

View File

@ -0,0 +1,4 @@
Pylint does not respect the currently activated virtualenv if it is not
installed in every virtual environment individually. This module provides a
Pylint init-hook to use the same Pylint installation with different virtual
environments.