4.0.0: - Support file configuration overrides - Add support for analyzing Jupyter notebooks 3.0.1: - Automatically exclude binary files, instead of producing an error 3.0.0: - Include files with no extension but a Python shebang - Fix calculation of total complexity for classes - Update Colorama dependency to avoid conflicts with pytest - Fix raw metrics, which were completely broken
31 lines
1 KiB
Makefile
31 lines
1 KiB
Makefile
# $NetBSD: Makefile,v 1.8 2019/11/06 20:43:36 adam Exp $
|
|
|
|
DISTNAME= radon-4.0.0
|
|
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
|
|
CATEGORIES= devel python
|
|
MASTER_SITES= ${MASTER_SITE_PYPI:=r/radon/}
|
|
|
|
MAINTAINER= kamelderouiche@yahoo.com
|
|
HOMEPAGE= https://radon.readthedocs.org/
|
|
COMMENT= Code Metrics in Python
|
|
LICENSE= mit
|
|
|
|
DEPENDS+= ${PYPKGPREFIX}-mando>=0.6:../../devel/py-mando
|
|
DEPENDS+= ${PYPKGPREFIX}-colorama>=0.4:../../comms/py-colorama
|
|
DEPENDS+= ${PYPKGPREFIX}-flake8-polyfill-[0-9]*:../../devel/py-flake8-polyfill
|
|
DEPENDS+= ${PYPKGPREFIX}-future-[0-9]*:../../devel/py-future
|
|
TEST_DEPENDS+= ${PYPKGPREFIX}-test-[0-9]*:../../devel/py-test
|
|
TEST_DEPENDS+= ${PYPKGPREFIX}-test-mock-[0-9]*:../../devel/py-test-mock
|
|
TEST_DEPENDS+= ${PYPKGPREFIX}-tox-[0-9]*:../../devel/py-tox
|
|
|
|
USE_LANGUAGES= # none
|
|
|
|
post-install:
|
|
cd ${DESTDIR}${PREFIX}/bin && \
|
|
${MV} radon radon-${PYVERSSUFFIX} || ${TRUE}
|
|
|
|
do-test:
|
|
cd ${WRKSRC}/radon/tests && ${SETENV} ${TEST_ENV} ${PYTHONBIN} run.py
|
|
|
|
.include "../../lang/python/egg.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|