summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwiz <wiz>2017-04-04 14:19:58 +0000
committerwiz <wiz>2017-04-04 14:19:58 +0000
commit1ab52c4f748e21ae8fe0554c9bca940a0cdacd5c (patch)
treeddab7af5dd49d5e9b6885df0c186b24e18960e3a
parent471b2b9343cf119e33a121c5628067498753d96a (diff)
downloadpkgsrc-1ab52c4f748e21ae8fe0554c9bca940a0cdacd5c.tar.gz
Import py-radon-1.5.0 as devel/py-radon.
Based on wip/py-radon by Kamel Ibn Aziz Derouiche <kamel.derouiche@gmail.com>. Code Metrics in Python
-rw-r--r--devel/py-radon/DESCR1
-rw-r--r--devel/py-radon/Makefile29
-rw-r--r--devel/py-radon/PLIST65
-rw-r--r--devel/py-radon/distinfo8
-rw-r--r--devel/py-radon/patches/patch-requirements.txt13
-rw-r--r--devel/py-radon/patches/patch-setup.py18
6 files changed, 134 insertions, 0 deletions
diff --git a/devel/py-radon/DESCR b/devel/py-radon/DESCR
new file mode 100644
index 00000000000..f7da5786f1c
--- /dev/null
+++ b/devel/py-radon/DESCR
@@ -0,0 +1 @@
+Code Metrics in Python
diff --git a/devel/py-radon/Makefile b/devel/py-radon/Makefile
new file mode 100644
index 00000000000..599848388bb
--- /dev/null
+++ b/devel/py-radon/Makefile
@@ -0,0 +1,29 @@
+# $NetBSD: Makefile,v 1.1 2017/04/04 14:19:58 wiz Exp $
+
+DISTNAME= radon-1.5.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
+
+# according to README, only mando is really necessary
+DEPENDS+= ${PYPKGPREFIX}-mando>=0.4:../../devel/py-mando
+# but these are in "requirements.txt"
+DEPENDS+= ${PYPKGPREFIX}-colorama>=0.3.2:../../comms/py-colorama
+DEPENDS+= ${PYPKGPREFIX}-flake8-polyfill>=1.0.1:../../devel/py-flake8-polyfill
+# TEST_DEPENDS
+BUILD_DEPENDS+= ${PYPKGPREFIX}-test-[0-9]*:../../devel/py-test
+BUILD_DEPENDS+= ${PYPKGPREFIX}-test-mock-[0-9]*:../../devel/py-test-mock
+BUILD_DEPENDS+= ${PYPKGPREFIX}-tox-[0-9]*:../../devel/py-tox
+
+USE_LANGUAGES= # none
+
+do-test:
+ ${RUN} cd ${WRKSRC}/radon/tests; ${SETENV} ${TEST_ENV} ${PYTHONBIN} run.py
+
+.include "../../lang/python/egg.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/devel/py-radon/PLIST b/devel/py-radon/PLIST
new file mode 100644
index 00000000000..d469f9ae108
--- /dev/null
+++ b/devel/py-radon/PLIST
@@ -0,0 +1,65 @@
+@comment $NetBSD: PLIST,v 1.1 2017/04/04 14:19:58 wiz Exp $
+bin/radon
+${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
+${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
+${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
+${PYSITELIB}/${EGG_INFODIR}/entry_points.txt
+${PYSITELIB}/${EGG_INFODIR}/requires.txt
+${PYSITELIB}/${EGG_INFODIR}/top_level.txt
+${PYSITELIB}/radon/__init__.py
+${PYSITELIB}/radon/__init__.pyc
+${PYSITELIB}/radon/__init__.pyo
+${PYSITELIB}/radon/cli/__init__.py
+${PYSITELIB}/radon/cli/__init__.pyc
+${PYSITELIB}/radon/cli/__init__.pyo
+${PYSITELIB}/radon/cli/colors.py
+${PYSITELIB}/radon/cli/colors.pyc
+${PYSITELIB}/radon/cli/colors.pyo
+${PYSITELIB}/radon/cli/harvest.py
+${PYSITELIB}/radon/cli/harvest.pyc
+${PYSITELIB}/radon/cli/harvest.pyo
+${PYSITELIB}/radon/cli/tools.py
+${PYSITELIB}/radon/cli/tools.pyc
+${PYSITELIB}/radon/cli/tools.pyo
+${PYSITELIB}/radon/complexity.py
+${PYSITELIB}/radon/complexity.pyc
+${PYSITELIB}/radon/complexity.pyo
+${PYSITELIB}/radon/metrics.py
+${PYSITELIB}/radon/metrics.pyc
+${PYSITELIB}/radon/metrics.pyo
+${PYSITELIB}/radon/raw.py
+${PYSITELIB}/radon/raw.pyc
+${PYSITELIB}/radon/raw.pyo
+${PYSITELIB}/radon/tests/__init__.py
+${PYSITELIB}/radon/tests/__init__.pyc
+${PYSITELIB}/radon/tests/__init__.pyo
+${PYSITELIB}/radon/tests/run.py
+${PYSITELIB}/radon/tests/run.pyc
+${PYSITELIB}/radon/tests/run.pyo
+${PYSITELIB}/radon/tests/test_cli.py
+${PYSITELIB}/radon/tests/test_cli.pyc
+${PYSITELIB}/radon/tests/test_cli.pyo
+${PYSITELIB}/radon/tests/test_cli_harvest.py
+${PYSITELIB}/radon/tests/test_cli_harvest.pyc
+${PYSITELIB}/radon/tests/test_cli_harvest.pyo
+${PYSITELIB}/radon/tests/test_cli_tools.py
+${PYSITELIB}/radon/tests/test_cli_tools.pyc
+${PYSITELIB}/radon/tests/test_cli_tools.pyo
+${PYSITELIB}/radon/tests/test_complexity_utils.py
+${PYSITELIB}/radon/tests/test_complexity_utils.pyc
+${PYSITELIB}/radon/tests/test_complexity_utils.pyo
+${PYSITELIB}/radon/tests/test_complexity_visitor.py
+${PYSITELIB}/radon/tests/test_complexity_visitor.pyc
+${PYSITELIB}/radon/tests/test_complexity_visitor.pyo
+${PYSITELIB}/radon/tests/test_halstead.py
+${PYSITELIB}/radon/tests/test_halstead.pyc
+${PYSITELIB}/radon/tests/test_halstead.pyo
+${PYSITELIB}/radon/tests/test_other_metrics.py
+${PYSITELIB}/radon/tests/test_other_metrics.pyc
+${PYSITELIB}/radon/tests/test_other_metrics.pyo
+${PYSITELIB}/radon/tests/test_raw.py
+${PYSITELIB}/radon/tests/test_raw.pyc
+${PYSITELIB}/radon/tests/test_raw.pyo
+${PYSITELIB}/radon/visitors.py
+${PYSITELIB}/radon/visitors.pyc
+${PYSITELIB}/radon/visitors.pyo
diff --git a/devel/py-radon/distinfo b/devel/py-radon/distinfo
new file mode 100644
index 00000000000..10368fc3e70
--- /dev/null
+++ b/devel/py-radon/distinfo
@@ -0,0 +1,8 @@
+$NetBSD: distinfo,v 1.1 2017/04/04 14:19:58 wiz Exp $
+
+SHA1 (radon-1.5.0.tar.gz) = f505e57e3e8b128d8a29d836f5ffdcf58d6c315c
+RMD160 (radon-1.5.0.tar.gz) = b0b68f9304baebb022c538c6a36e899f921db826
+SHA512 (radon-1.5.0.tar.gz) = a2336b7e6592d4efa8c78eadad61b386e35f551be31f7691dd2ca8f9d5d2afff9d96a2d25ced8b93dc0a1d1ccbf12fd8dc7b69f0b04bd3c3986335205a1b6650
+Size (radon-1.5.0.tar.gz) = 3492497 bytes
+SHA1 (patch-requirements.txt) = d09c6b9a90e11cffef7a7726ea6272d96c7d293f
+SHA1 (patch-setup.py) = 5faf02aa86dc3aba3cd028c1cd6532fdd3164bc9
diff --git a/devel/py-radon/patches/patch-requirements.txt b/devel/py-radon/patches/patch-requirements.txt
new file mode 100644
index 00000000000..72d6fddd4fc
--- /dev/null
+++ b/devel/py-radon/patches/patch-requirements.txt
@@ -0,0 +1,13 @@
+$NetBSD: patch-requirements.txt,v 1.1 2017/04/04 14:19:58 wiz Exp $
+
+mando-0.5 is fine.
+https://github.com/rubik/radon/issues/112
+
+--- requirements.txt.orig 2017-02-04 09:44:37.000000000 +0000
++++ requirements.txt
+@@ -1,3 +1,3 @@
+-mando>=0.3,<0.4
+-colorama>=0.3,<0.4
++mando
++colorama
+ flake8_polyfill
diff --git a/devel/py-radon/patches/patch-setup.py b/devel/py-radon/patches/patch-setup.py
new file mode 100644
index 00000000000..5bc9813b81f
--- /dev/null
+++ b/devel/py-radon/patches/patch-setup.py
@@ -0,0 +1,18 @@
+$NetBSD: patch-setup.py,v 1.1 2017/04/04 14:19:58 wiz Exp $
+
+mando-0.5 is fine.
+https://github.com/rubik/radon/issues/112
+
+--- setup.py.orig 2016-11-02 12:22:42.000000000 +0000
++++ setup.py
+@@ -19,8 +19,8 @@ setup(name='radon',
+ packages=find_packages(),
+ tests_require=['tox'],
+ install_requires=[
+- 'mando>=0.3,<0.4',
+- 'colorama>=0.3,<0.4',
++ 'mando',
++ 'colorama',
+ 'flake8-polyfill',
+ ],
+ entry_points={