PSARC 2016/550 mccabe - version 0.5.2
24757657 Add the Python mccabe module version 0.5.2
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/components/python/mccabe/Makefile Thu Oct 27 16:11:16 2016 -0700
@@ -0,0 +1,62 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (the "License").
+# You may not use this file except in compliance with the License.
+#
+# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
+# or http://www.opensolaris.org/os/licensing.
+# See the License for the specific language governing permissions
+# and limitations under the License.
+#
+# When distributing Covered Code, include this CDDL HEADER in each
+# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
+# If applicable, add the following below this CDDL HEADER, with the
+# fields enclosed by brackets "[]" replaced with your own identifying
+# information: Portions Copyright [yyyy] [name of copyright owner]
+#
+# CDDL HEADER END
+#
+
+#
+# Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
+#
+
+include ../../../make-rules/shared-macros.mk
+
+COMPONENT_NAME= mccabe
+COMPONENT_VERSION= 0.5.2
+COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
+COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
+COMPONENT_ARCHIVE_HASH= \
+ sha256:3473f06c8b757bbb5cdf295099bf64032e5f7d6fe0ec2f97ee9b23cb0a435aff
+COMPONENT_ARCHIVE_URL= $(call pypi_url)
+COMPONENT_PROJECT_URL= https://pypi.python.org/pypi/mccabe
+COMPONENT_BUGDB= python-mod/mccabe
+
+TPNO= 31984
+
+include $(WS_MAKE_RULES)/prep.mk
+include $(WS_MAKE_RULES)/setup.py.mk
+include $(WS_MAKE_RULES)/ips.mk
+
+ASLR_MODE = $(ASLR_NOT_APPLICABLE)
+
+COMPONENT_TEST_DIR = $(SOURCE_DIR)
+COMPONENT_TEST_CMD = /usr/bin/py.test-$(PYTHON_VERSION)
+COMPONENT_TEST_ARGS = test_mccabe.py
+COMPONENT_TEST_TARGETS =
+
+COMPONENT_TEST_TRANSFORMS += \
+ '-e "/^platform.*/d" ' \
+ '-e "/^plugins.*/d" ' \
+ '-e "s|\(in \).*\(seconds\).*|\1 x \2|"'
+
+build: $(BUILD_NO_ARCH)
+
+install: $(INSTALL_NO_ARCH)
+
+test: $(TEST_NO_ARCH)
+
+system-test: $(SYSTEM_TESTS_NOT_IMPLEMENTED)
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/components/python/mccabe/mccabe-PYVER.p5m Thu Oct 27 16:11:16 2016 -0700
@@ -0,0 +1,44 @@
+#
+# CDDL HEADER START
+#
+# The contents of this file are subject to the terms of the
+# Common Development and Distribution License (the "License").
+# You may not use this file except in compliance with the License.
+#
+# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
+# or http://www.opensolaris.org/os/licensing.
+# See the License for the specific language governing permissions
+# and limitations under the License.
+#
+# When distributing Covered Code, include this CDDL HEADER in each
+# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
+# If applicable, add the following below this CDDL HEADER, with the
+# fields enclosed by brackets "[]" replaced with your own identifying
+# information: Portions Copyright [yyyy] [name of copyright owner]
+#
+# CDDL HEADER END
+#
+
+#
+# Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
+#
+
+set name=pkg.fmri \
+ value=pkg:/library/python/mccabe-$(PYV)@$(IPS_COMPONENT_VERSION),$(BUILD_VERSION)
+set name=pkg.summary value="McCabe checker, plugin for Python code checkers"
+set name=com.oracle.info.description value="the mccabe Python module"
+set name=com.oracle.info.tpno value=$(TPNO)
+set name=info.classification \
+ value=org.opensolaris.category.2008:Development/Python
+set name=info.source-url value=$(COMPONENT_ARCHIVE_URL)
+set name=info.upstream-url value=$(COMPONENT_PROJECT_URL)
+set name=org.opensolaris.arc-caseid value=PSARC/2016/550
+set name=org.opensolaris.consolidation value=$(CONSOLIDATION)
+file path=usr/lib/python$(PYVER)/vendor-packages/mccabe-$(COMPONENT_VERSION)-py$(PYVER).egg-info/PKG-INFO
+file path=usr/lib/python$(PYVER)/vendor-packages/mccabe-$(COMPONENT_VERSION)-py$(PYVER).egg-info/SOURCES.txt
+file path=usr/lib/python$(PYVER)/vendor-packages/mccabe-$(COMPONENT_VERSION)-py$(PYVER).egg-info/dependency_links.txt
+file path=usr/lib/python$(PYVER)/vendor-packages/mccabe-$(COMPONENT_VERSION)-py$(PYVER).egg-info/entry_points.txt
+file path=usr/lib/python$(PYVER)/vendor-packages/mccabe-$(COMPONENT_VERSION)-py$(PYVER).egg-info/not-zip-safe
+file path=usr/lib/python$(PYVER)/vendor-packages/mccabe-$(COMPONENT_VERSION)-py$(PYVER).egg-info/top_level.txt
+file path=usr/lib/python$(PYVER)/vendor-packages/mccabe.py
+license LICENSE license="expat license"
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/components/python/mccabe/patches/01-allow-build.patch Thu Oct 27 16:11:16 2016 -0700
@@ -0,0 +1,19 @@
+Build fails with:
+
+ "The package setup script has attempted to modify files on your system
+ that are not within the EasyInstall build area, and has been aborted."
+
+without this patch.
+
+This change will not be sent upstream.
+
+--- mccabe-0.5.2/setup.py.orig 2016-09-29 11:04:22.409951942 +0000
++++ mccabe-0.5.2/setup.py 2016-09-29 11:04:14.248108118 +0000
+@@ -33,7 +33,6 @@
+ license='Expat license',
+ py_modules=['mccabe'],
+ zip_safe=False,
+- setup_requires=['pytest-runner'],
+ tests_require=['pytest'],
+ entry_points={
+ 'flake8.extension': [
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/components/python/mccabe/test/results-2.7-32.master Thu Oct 27 16:11:16 2016 -0700
@@ -0,0 +1,7 @@
+============================= test session starts ==============================
+rootdir: $(SOURCE_DIR), inifile:
+collected 14 items
+
+test_mccabe.py ..s...........
+
+=========== 13 passed, 1 skipped, 1 pytest-warnings in x seconds
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/components/python/mccabe/test/results-3.4-32.master Thu Oct 27 16:11:16 2016 -0700
@@ -0,0 +1,7 @@
+============================= test session starts ==============================
+rootdir: $(SOURCE_DIR), inifile:
+collected 14 items
+
+test_mccabe.py ..s...........
+
+=========== 13 passed, 1 skipped, 1 pytest-warnings in x seconds
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/components/python/mccabe/test/results-3.5-32.master Thu Oct 27 16:11:16 2016 -0700
@@ -0,0 +1,7 @@
+============================= test session starts ==============================
+rootdir: $(SOURCE_DIR), inifile:
+collected 14 items
+
+test_mccabe.py ..............
+
+================= 14 passed, 1 pytest-warnings in x seconds