2209N/A#
6082N/A# CDDL HEADER START
2209N/A#
2209N/A# The contents of this file are subject to the terms of the
2231N/A# Common Development and Distribution License (the "License").
2209N/A# You may not use this file except in compliance with the License.
2209N/A#
2209N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
2209N/A# or http://www.opensolaris.org/os/licensing.
2209N/A# See the License for the specific language governing permissions
2209N/A# and limitations under the License.
2209N/A#
2209N/A# When distributing Covered Code, include this CDDL HEADER in each
2209N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
2209N/A# If applicable, add the following below this CDDL HEADER, with the
2209N/A# fields enclosed by brackets "[]" replaced with your own identifying
2209N/A# information: Portions Copyright [yyyy] [name of copyright owner]
2209N/A#
2209N/A# CDDL HEADER END
2209N/A#
2209N/A
2209N/A#
2209N/A# Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
2209N/A#
2209N/ABUILD_BITS= NO_ARCH
2209N/Ainclude ../../../make-rules/shared-macros.mk
2209N/A
2209N/ACOMPONENT_NAME= astroid
2209N/ACOMPONENT_VERSION= 1.4.8
2209N/ACOMPONENT_PROJECT_URL= http://bitbucket.org/logilab/$(COMPONENT_NAME)
2209N/ACOMPONENT_ARCHIVE_HASH= \
2209N/A sha256:5f064785a7e45ed519285f2eb30b795e58a4932a0736b32030da6fef3394ddb3
2209N/ACOMPONENT_ARCHIVE_URL= $(call pypi_url)
2209N/ACOMPONENT_BUGDB= python-mod/astroid
2209N/A
2209N/ATPNO= 31346
2209N/A
2209N/ABUILD_STYLE= setup.py
2209N/ASYSTEM_TEST_TARGET= $(SYSTEM_TEST_NO_ARCH)
2209N/Ainclude $(WS_MAKE_RULES)/common.mk
2209N/A
2209N/AASLR_MODE = $(ASLR_NOT_APPLICABLE)
2209N/A
2209N/ACOMPONENT_TEST_ENV = PYTHONPATH=$(PROTO_DIR)$(PYTHON_VENDOR_PACKAGES)
2209N/A
2209N/ACOMPONENT_TEST_DIR = $(COMPONENT_SRC)/astroid/tests
2209N/ACOMPONENT_TEST_CMD = /usr/bin/pytest-$(PYTHON_VERSION)
2209N/ACOMPONENT_TEST_ARGS =
2209N/A
2209N/A# The test output contains details from each test, in whatever order they
2209N/A# complete. Use nawk to extract just the sections that summarizes the test
2209N/A# result.
2209N/ACOMPONENT_TEST_TRANSFORMER = $(NAWK)
2209N/ACOMPONENT_TEST_TRANSFORMS = "'/Ran (.+) test cases/{ sub(/in(.+)\)/, \"\"); print }/All (.+) modules OK/'"
2209N/A
2209N/A
2209N/A# This modutils test should expect the logilab module to be found under the
2209N/A# standard /usr/lib/python* location when we test installed system bits,
2209N/A# the opposite of what it expects when testing built bits in the proto area.
2209N/A# Temporarily modify its expected result for system-test,
2209N/A# and restore it afterwards.
2209N/ACOMPONENT_PRE_SYSTEM_TEST_ACTION += \
2209N/A ($(MV) $(COMPONENT_SRC)/astroid/tests/unittest_modutils.py $(COMPONENT_SRC)/astroid/tests/unittest_modutils.py-orig; \
2209N/A $(GSED) -e "s/self.assertEqual(modutils.is_standard_module('logilab'), False)/self.assertEqual(modutils.is_standard_module('logilab'), True)/" $(COMPONENT_SRC)/astroid/tests/unittest_modutils.py-orig > $(COMPONENT_SRC)/astroid/tests/unittest_modutils.py)
2209N/ACOMPONENT_SYSTEM_TEST_DIR = $(COMPONENT_SRC)/astroid/tests
2209N/ACOMPONENT_SYSTEM_TEST_CMD = /usr/bin/pytest-$(PYTHON_VERSION)
2209N/ACOMPONENT_SYSTEM_TEST_ARGS =
2209N/ACOMPONENT_POST_SYSTEM_TEST_ACTION += \
2209N/A $(MV) $(COMPONENT_SRC)/astroid/tests/unittest_modutils.py-orig $(COMPONENT_SRC)/astroid/tests/unittest_modutils.py
2231N/A