Makefile revision 2818
5cd4555ad444fd391002ae32450572054369fd42Rob Austein#
5cd4555ad444fd391002ae32450572054369fd42Rob Austein# CDDL HEADER START
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein#
d4ef65050feac78554addf6e16a06c6e2e0bd331Brian Wellington# The contents of this file are subject to the terms of the
c1a883f2e04d94e99c433b1f6cfd0c0338f4ed85Mark Andrews# Common Development and Distribution License (the "License").
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# You may not use this file except in compliance with the License.
d4ef65050feac78554addf6e16a06c6e2e0bd331Brian Wellington#
d4ef65050feac78554addf6e16a06c6e2e0bd331Brian Wellington# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
d4ef65050feac78554addf6e16a06c6e2e0bd331Brian Wellington# or http://www.opensolaris.org/os/licensing.
d4ef65050feac78554addf6e16a06c6e2e0bd331Brian Wellington# See the License for the specific language governing permissions
d4ef65050feac78554addf6e16a06c6e2e0bd331Brian Wellington# and limitations under the License.
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews#
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# When distributing Covered Code, include this CDDL HEADER in each
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# If applicable, add the following below this CDDL HEADER, with the
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# fields enclosed by brackets "[]" replaced with your own identifying
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# information: Portions Copyright [yyyy] [name of copyright owner]
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews#
d4ef65050feac78554addf6e16a06c6e2e0bd331Brian Wellington# CDDL HEADER END
f5d30e2864e048a42c4dc1134993ae7efdb5d6c3Mark Andrews#
c1a883f2e04d94e99c433b1f6cfd0c0338f4ed85Mark Andrews# Copyright (c) 2013, 2014, Oracle and/or its affiliates. All rights reserved.
b5ad6dfea4cc3e7d1d322ac99f1e5a31096837c4Mark Andrews#
c40265eba0c99708887d68e67901924065ba2514Brian Wellingtoninclude ../../../make-rules/shared-macros.mk
c40265eba0c99708887d68e67901924065ba2514Brian Wellington
c40265eba0c99708887d68e67901924065ba2514Brian WellingtonCOMPONENT_NAME= pytest-cov
c40265eba0c99708887d68e67901924065ba2514Brian WellingtonCOMPONENT_VERSION= 1.6
c40265eba0c99708887d68e67901924065ba2514Brian WellingtonCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
c40265eba0c99708887d68e67901924065ba2514Brian WellingtonCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
c40265eba0c99708887d68e67901924065ba2514Brian WellingtonCOMPONENT_ARCHIVE_HASH= \
c40265eba0c99708887d68e67901924065ba2514Brian Wellington sha256:2e803c89f11e0344111670349f6ef401f831e85cbd287b0c5d61917da5aac454
c40265eba0c99708887d68e67901924065ba2514Brian WellingtonCOMPONENT_ARCHIVE_URL= $(call pypi_url)
c40265eba0c99708887d68e67901924065ba2514Brian WellingtonCOMPONENT_PROJECT_URL= https://pypi.python.org/pypi/pytest-cov
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinCOMPONENT_BUGDB= python-mod/pytest-plugins
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# pytest-cov itself is Python 3 ready (builds & publishes cleanly with usual
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# changes applied) but it depends on cov-core which depends on coverage which
c1a883f2e04d94e99c433b1f6cfd0c0338f4ed85Mark Andrews# needs to be upgraded. Thus, skip Python 3 until then.
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinPYTHON_VERSIONS= 2.7 2.6
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austeininclude $(WS_TOP)/make-rules/prep.mk
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austeininclude $(WS_TOP)/make-rules/setup.py.mk
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austeininclude $(WS_TOP)/make-rules/ips.mk
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein
f5d30e2864e048a42c4dc1134993ae7efdb5d6c3Mark AndrewsCOMPONENT_TEST_DIR = $(COMPONENT_SRC)
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinCOMPONENT_TEST_ARGS = test_pytest_cov.py
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinASLR_MODE = $(ASLR_NOT_APPLICABLE)
c40265eba0c99708887d68e67901924065ba2514Brian Wellington
c40265eba0c99708887d68e67901924065ba2514Brian Wellington# common targets
c40265eba0c99708887d68e67901924065ba2514Brian Wellingtonbuild: $(BUILD_NO_ARCH)
c40265eba0c99708887d68e67901924065ba2514Brian Wellington
c40265eba0c99708887d68e67901924065ba2514Brian Wellingtoninstall: $(INSTALL_NO_ARCH)
c40265eba0c99708887d68e67901924065ba2514Brian Wellington
c40265eba0c99708887d68e67901924065ba2514Brian Wellington# Tests require the pytest, coverage and cov-core packages.
c40265eba0c99708887d68e67901924065ba2514Brian Wellingtontest: $(TEST_NO_ARCH)
a26ad011f382d12058478704cb5e90e6f4366d01Andreas Gustafsson
bca7f81db58d4803fb6d8d352132445cf61eb1acMark AndrewsBUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
c40265eba0c99708887d68e67901924065ba2514Brian Wellington
c40265eba0c99708887d68e67901924065ba2514Brian Wellingtoninclude $(WS_TOP)/make-rules/depend.mk
92551304a9abff9284de5b79a48e83d781989339Mark Andrews