components/python/tox/Makefile
author boris.chiu@oracle.com
Mon, 03 Oct 2016 15:42:45 -0700
branchs11u3-sru
changeset 7024 84310b997802
parent 4072 db0cec748ec0
child 7811 9126e6f58cd8
permissions -rw-r--r--
24516419 umad_get_ca() should pass the PF node_guid for CX3
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2881
8cae3c148a42 PSARC 2013/337 unittest2 version 0.5.1
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     1
#
8cae3c148a42 PSARC 2013/337 unittest2 version 0.5.1
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     2
# CDDL HEADER START
8cae3c148a42 PSARC 2013/337 unittest2 version 0.5.1
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     3
#
8cae3c148a42 PSARC 2013/337 unittest2 version 0.5.1
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     4
# The contents of this file are subject to the terms of the
8cae3c148a42 PSARC 2013/337 unittest2 version 0.5.1
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     5
# Common Development and Distribution License (the "License").
8cae3c148a42 PSARC 2013/337 unittest2 version 0.5.1
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     6
# You may not use this file except in compliance with the License.
8cae3c148a42 PSARC 2013/337 unittest2 version 0.5.1
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     7
#
8cae3c148a42 PSARC 2013/337 unittest2 version 0.5.1
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     8
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
8cae3c148a42 PSARC 2013/337 unittest2 version 0.5.1
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     9
# or http://www.opensolaris.org/os/licensing.
8cae3c148a42 PSARC 2013/337 unittest2 version 0.5.1
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    10
# See the License for the specific language governing permissions
8cae3c148a42 PSARC 2013/337 unittest2 version 0.5.1
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    11
# and limitations under the License.
8cae3c148a42 PSARC 2013/337 unittest2 version 0.5.1
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    12
#
8cae3c148a42 PSARC 2013/337 unittest2 version 0.5.1
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    13
# When distributing Covered Code, include this CDDL HEADER in each
8cae3c148a42 PSARC 2013/337 unittest2 version 0.5.1
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    14
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
8cae3c148a42 PSARC 2013/337 unittest2 version 0.5.1
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    15
# If applicable, add the following below this CDDL HEADER, with the
8cae3c148a42 PSARC 2013/337 unittest2 version 0.5.1
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    16
# fields enclosed by brackets "[]" replaced with your own identifying
8cae3c148a42 PSARC 2013/337 unittest2 version 0.5.1
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    17
# information: Portions Copyright [yyyy] [name of copyright owner]
8cae3c148a42 PSARC 2013/337 unittest2 version 0.5.1
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    18
#
8cae3c148a42 PSARC 2013/337 unittest2 version 0.5.1
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    19
# CDDL HEADER END
8cae3c148a42 PSARC 2013/337 unittest2 version 0.5.1
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    20
#
4072
db0cec748ec0 PSARC 2015/110 OpenStack service updates for Juno
Danek Duvall <danek.duvall@oracle.com>
parents: 3996
diff changeset
    21
db0cec748ec0 PSARC 2015/110 OpenStack service updates for Juno
Danek Duvall <danek.duvall@oracle.com>
parents: 3996
diff changeset
    22
#
3996
20c0f21bbe1e 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 3661
diff changeset
    23
# Copyright (c) 2013, 2015, Oracle and/or its affiliates. All rights reserved.
2881
8cae3c148a42 PSARC 2013/337 unittest2 version 0.5.1
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    24
#
4072
db0cec748ec0 PSARC 2015/110 OpenStack service updates for Juno
Danek Duvall <danek.duvall@oracle.com>
parents: 3996
diff changeset
    25
2881
8cae3c148a42 PSARC 2013/337 unittest2 version 0.5.1
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    26
include ../../../make-rules/shared-macros.mk
8cae3c148a42 PSARC 2013/337 unittest2 version 0.5.1
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    27
8cae3c148a42 PSARC 2013/337 unittest2 version 0.5.1
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    28
COMPONENT_NAME=		tox
4072
db0cec748ec0 PSARC 2015/110 OpenStack service updates for Juno
Danek Duvall <danek.duvall@oracle.com>
parents: 3996
diff changeset
    29
COMPONENT_VERSION=	1.8.1
2881
8cae3c148a42 PSARC 2013/337 unittest2 version 0.5.1
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    30
COMPONENT_SRC=		$(COMPONENT_NAME)-$(COMPONENT_VERSION)
8cae3c148a42 PSARC 2013/337 unittest2 version 0.5.1
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    31
COMPONENT_ARCHIVE=	$(COMPONENT_SRC).tar.gz
8cae3c148a42 PSARC 2013/337 unittest2 version 0.5.1
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    32
COMPONENT_ARCHIVE_HASH=	\
4072
db0cec748ec0 PSARC 2015/110 OpenStack service updates for Juno
Danek Duvall <danek.duvall@oracle.com>
parents: 3996
diff changeset
    33
    sha256:44ca1e038cb57fe40ac0dff8b67b258efe05517bf9b4b4b07035f8be830aac01
2881
8cae3c148a42 PSARC 2013/337 unittest2 version 0.5.1
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    34
COMPONENT_ARCHIVE_URL=	$(call pypi_url)
4072
db0cec748ec0 PSARC 2015/110 OpenStack service updates for Juno
Danek Duvall <danek.duvall@oracle.com>
parents: 3996
diff changeset
    35
COMPONENT_PROJECT_URL=	http://tox.testrun.org/
2881
8cae3c148a42 PSARC 2013/337 unittest2 version 0.5.1
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    36
COMPONENT_BUGDB=	python-mod/tox
8cae3c148a42 PSARC 2013/337 unittest2 version 0.5.1
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    37
4072
db0cec748ec0 PSARC 2015/110 OpenStack service updates for Juno
Danek Duvall <danek.duvall@oracle.com>
parents: 3996
diff changeset
    38
TPNO=			21743
3661
47545fb8aed4 18978320 Userland components should specify TPNOs in Makefiles instead of pkg manifests
John Beck <John.Beck@Oracle.COM>
parents: 2881
diff changeset
    39
3996
20c0f21bbe1e 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 3661
diff changeset
    40
include $(WS_MAKE_RULES)/prep.mk
20c0f21bbe1e 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 3661
diff changeset
    41
include $(WS_MAKE_RULES)/setup.py.mk
20c0f21bbe1e 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 3661
diff changeset
    42
include $(WS_MAKE_RULES)/ips.mk
2881
8cae3c148a42 PSARC 2013/337 unittest2 version 0.5.1
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    43
8cae3c148a42 PSARC 2013/337 unittest2 version 0.5.1
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    44
COMPONENT_POST_INSTALL_ACTION += (cd $(PROTO_DIR)/usr/bin ; \
8cae3c148a42 PSARC 2013/337 unittest2 version 0.5.1
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    45
	$(MV) -f tox tox-$(PYTHON_VERSION); \
8cae3c148a42 PSARC 2013/337 unittest2 version 0.5.1
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    46
	$(MV) -f tox-quickstart tox-quickstart-$(PYTHON_VERSION))
8cae3c148a42 PSARC 2013/337 unittest2 version 0.5.1
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    47
8cae3c148a42 PSARC 2013/337 unittest2 version 0.5.1
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    48
COMPONENT_TEST_ENV +=	HOME=$(HOME)
8cae3c148a42 PSARC 2013/337 unittest2 version 0.5.1
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    49
COMPONENT_TEST_ENV +=	PATH=/usr/bin
4072
db0cec748ec0 PSARC 2015/110 OpenStack service updates for Juno
Danek Duvall <danek.duvall@oracle.com>
parents: 3996
diff changeset
    50
COMPONENT_TEST_DIR =	$(COMPONENT_SRC)/tests
db0cec748ec0 PSARC 2015/110 OpenStack service updates for Juno
Danek Duvall <danek.duvall@oracle.com>
parents: 3996
diff changeset
    51
COMPONENT_TEST_CMD =	$(PROTOUSRBINDIR)/tox-$(PYTHON_VERSION)
db0cec748ec0 PSARC 2015/110 OpenStack service updates for Juno
Danek Duvall <danek.duvall@oracle.com>
parents: 3996
diff changeset
    52
# Tox normally runs all test environments at once, which means that with one
db0cec748ec0 PSARC 2015/110 OpenStack service updates for Juno
Danek Duvall <danek.duvall@oracle.com>
parents: 3996
diff changeset
    53
# test target per Python version, we run all environments for each.  So we
db0cec748ec0 PSARC 2015/110 OpenStack service updates for Juno
Danek Duvall <danek.duvall@oracle.com>
parents: 3996
diff changeset
    54
# restrict the Python versions to the one corresponding to the test target.
db0cec748ec0 PSARC 2015/110 OpenStack service updates for Juno
Danek Duvall <danek.duvall@oracle.com>
parents: 3996
diff changeset
    55
PYV = $(shell echo $(PYTHON_VERSION) | tr -d .)
db0cec748ec0 PSARC 2015/110 OpenStack service updates for Juno
Danek Duvall <danek.duvall@oracle.com>
parents: 3996
diff changeset
    56
COMPONENT_TEST_ARGS =	-e $(PYV:%=py%)
2881
8cae3c148a42 PSARC 2013/337 unittest2 version 0.5.1
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    57
8cae3c148a42 PSARC 2013/337 unittest2 version 0.5.1
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    58
ASLR_MODE = $(ASLR_NOT_APPLICABLE)
8cae3c148a42 PSARC 2013/337 unittest2 version 0.5.1
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    59
8cae3c148a42 PSARC 2013/337 unittest2 version 0.5.1
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    60
# common targets
8cae3c148a42 PSARC 2013/337 unittest2 version 0.5.1
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    61
build:		$(BUILD_NO_ARCH)
8cae3c148a42 PSARC 2013/337 unittest2 version 0.5.1
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    62
8cae3c148a42 PSARC 2013/337 unittest2 version 0.5.1
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    63
install:	$(INSTALL_NO_ARCH)
8cae3c148a42 PSARC 2013/337 unittest2 version 0.5.1
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    64
8cae3c148a42 PSARC 2013/337 unittest2 version 0.5.1
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    65
test:		$(TEST_NO_ARCH)
8cae3c148a42 PSARC 2013/337 unittest2 version 0.5.1
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    66
3996
20c0f21bbe1e 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 3661
diff changeset
    67
REQUIRED_PACKAGES += library/python/setuptools-26
20c0f21bbe1e 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 3661
diff changeset
    68
REQUIRED_PACKAGES += library/python/setuptools-27
20c0f21bbe1e 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 3661
diff changeset
    69
REQUIRED_PACKAGES += library/python/setuptools-34