Makefile revision 3778
0f3df54840ec9a050cc0b1b68269c3f28c859e64Sumit Bose#
0f3df54840ec9a050cc0b1b68269c3f28c859e64Sumit Bose# CDDL HEADER START
0f3df54840ec9a050cc0b1b68269c3f28c859e64Sumit Bose#
0f3df54840ec9a050cc0b1b68269c3f28c859e64Sumit Bose# The contents of this file are subject to the terms of the
0f3df54840ec9a050cc0b1b68269c3f28c859e64Sumit Bose# Common Development and Distribution License (the "License").
0f3df54840ec9a050cc0b1b68269c3f28c859e64Sumit Bose# You may not use this file except in compliance with the License.
0f3df54840ec9a050cc0b1b68269c3f28c859e64Sumit Bose#
0f3df54840ec9a050cc0b1b68269c3f28c859e64Sumit Bose# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
0f3df54840ec9a050cc0b1b68269c3f28c859e64Sumit Bose# or http://www.opensolaris.org/os/licensing.
0f3df54840ec9a050cc0b1b68269c3f28c859e64Sumit Bose# See the License for the specific language governing permissions
0f3df54840ec9a050cc0b1b68269c3f28c859e64Sumit Bose# and limitations under the License.
0f3df54840ec9a050cc0b1b68269c3f28c859e64Sumit Bose#
0f3df54840ec9a050cc0b1b68269c3f28c859e64Sumit Bose# When distributing Covered Code, include this CDDL HEADER in each
0f3df54840ec9a050cc0b1b68269c3f28c859e64Sumit Bose# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
0f3df54840ec9a050cc0b1b68269c3f28c859e64Sumit Bose# If applicable, add the following below this CDDL HEADER, with the
0f3df54840ec9a050cc0b1b68269c3f28c859e64Sumit Bose# fields enclosed by brackets "[]" replaced with your own identifying
0f3df54840ec9a050cc0b1b68269c3f28c859e64Sumit Bose# information: Portions Copyright [yyyy] [name of copyright owner]
0f3df54840ec9a050cc0b1b68269c3f28c859e64Sumit Bose#
0f3df54840ec9a050cc0b1b68269c3f28c859e64Sumit Bose# CDDL HEADER END
0f3df54840ec9a050cc0b1b68269c3f28c859e64Sumit Bose#
0f3df54840ec9a050cc0b1b68269c3f28c859e64Sumit Bose# Copyright (c) 2013, 2014, Oracle and/or its affiliates. All rights reserved.
0f3df54840ec9a050cc0b1b68269c3f28c859e64Sumit Bose#
0f3df54840ec9a050cc0b1b68269c3f28c859e64Sumit Boseinclude ../../../make-rules/shared-macros.mk
0f3df54840ec9a050cc0b1b68269c3f28c859e64Sumit Bose
0f3df54840ec9a050cc0b1b68269c3f28c859e64Sumit BoseCOMPONENT_NAME= pytest-cov
ed4a9bd4d0f7fb359bed66a8d63a92e7be633aaeSumit BoseCOMPONENT_VERSION= 1.6
a1210c8db81a1cc0b45eb62a8450abcdea3afc7bSumit BoseCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
0f3df54840ec9a050cc0b1b68269c3f28c859e64Sumit BoseCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
0f3df54840ec9a050cc0b1b68269c3f28c859e64Sumit BoseCOMPONENT_ARCHIVE_HASH= \
0f3df54840ec9a050cc0b1b68269c3f28c859e64Sumit Bose sha256:2e803c89f11e0344111670349f6ef401f831e85cbd287b0c5d61917da5aac454
3d29430867cf92b2d71afa95abb679711231117cPavel BřezinaCOMPONENT_ARCHIVE_URL= $(call pypi_url)
ed4a9bd4d0f7fb359bed66a8d63a92e7be633aaeSumit BoseCOMPONENT_PROJECT_URL= https://pypi.python.org/pypi/pytest-cov
3d29430867cf92b2d71afa95abb679711231117cPavel BřezinaCOMPONENT_BUGDB= python-mod/pytest-plugins
ed4a9bd4d0f7fb359bed66a8d63a92e7be633aaeSumit Bose
ed4a9bd4d0f7fb359bed66a8d63a92e7be633aaeSumit BoseTPNO= 14503
ed4a9bd4d0f7fb359bed66a8d63a92e7be633aaeSumit Bose
ed4a9bd4d0f7fb359bed66a8d63a92e7be633aaeSumit Bose# pytest-cov itself is Python 3 ready (builds & publishes cleanly with usual
ed4a9bd4d0f7fb359bed66a8d63a92e7be633aaeSumit Bose# changes applied) but it depends on cov-core which depends on coverage which
a1210c8db81a1cc0b45eb62a8450abcdea3afc7bSumit Bose# needs to be upgraded. Thus, skip Python 3 until then.
a1210c8db81a1cc0b45eb62a8450abcdea3afc7bSumit BosePYTHON_VERSIONS= 2.7 2.6
c125e741d3111e2f9b56866ba00835ca05c6f349Jakub Hrozek
c2dec0dc740ba426f26563563c0aea3a38f3c3c1Sumit Boseinclude $(WS_TOP)/make-rules/prep.mk
ed4a9bd4d0f7fb359bed66a8d63a92e7be633aaeSumit Boseinclude $(WS_TOP)/make-rules/setup.py.mk
ed4a9bd4d0f7fb359bed66a8d63a92e7be633aaeSumit Boseinclude $(WS_TOP)/make-rules/ips.mk
ed4a9bd4d0f7fb359bed66a8d63a92e7be633aaeSumit Bose
c125e741d3111e2f9b56866ba00835ca05c6f349Jakub HrozekCOMPONENT_TEST_DIR = $(COMPONENT_SRC)
c125e741d3111e2f9b56866ba00835ca05c6f349Jakub HrozekCOMPONENT_TEST_ARGS = test_pytest_cov.py
c125e741d3111e2f9b56866ba00835ca05c6f349Jakub Hrozek
c125e741d3111e2f9b56866ba00835ca05c6f349Jakub HrozekASLR_MODE = $(ASLR_NOT_APPLICABLE)
c125e741d3111e2f9b56866ba00835ca05c6f349Jakub Hrozek
c125e741d3111e2f9b56866ba00835ca05c6f349Jakub Hrozek# common targets
c2dec0dc740ba426f26563563c0aea3a38f3c3c1Sumit Bosebuild: $(BUILD_NO_ARCH)
c2dec0dc740ba426f26563563c0aea3a38f3c3c1Sumit Bose
c2dec0dc740ba426f26563563c0aea3a38f3c3c1Sumit Boseinstall: $(INSTALL_NO_ARCH)
c2dec0dc740ba426f26563563c0aea3a38f3c3c1Sumit Bose
c2dec0dc740ba426f26563563c0aea3a38f3c3c1Sumit Bose# Tests require the pytest, coverage and cov-core packages.
c2dec0dc740ba426f26563563c0aea3a38f3c3c1Sumit Bosetest: $(TEST_NO_ARCH)
c2dec0dc740ba426f26563563c0aea3a38f3c3c1Sumit Bose
ed4a9bd4d0f7fb359bed66a8d63a92e7be633aaeSumit BoseBUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
ed4a9bd4d0f7fb359bed66a8d63a92e7be633aaeSumit Bose
ed4a9bd4d0f7fb359bed66a8d63a92e7be633aaeSumit Boseinclude $(WS_TOP)/make-rules/depend.mk
ed4a9bd4d0f7fb359bed66a8d63a92e7be633aaeSumit Bose