components/python/alembic/Makefile
branchs11u2-sru
changeset 4156 4b1def16fe9b
parent 2785 b6f5c5d1d0b7
equal deleted inserted replaced
4146:097063f324c0 4156:4b1def16fe9b
    16 # fields enclosed by brackets "[]" replaced with your own identifying
    16 # fields enclosed by brackets "[]" replaced with your own identifying
    17 # information: Portions Copyright [yyyy] [name of copyright owner]
    17 # information: Portions Copyright [yyyy] [name of copyright owner]
    18 #
    18 #
    19 # CDDL HEADER END
    19 # CDDL HEADER END
    20 #
    20 #
    21 # Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.
    21 
    22 #
    22 #
       
    23 # Copyright (c) 2013, 2015, Oracle and/or its affiliates. All rights reserved.
       
    24 #
       
    25 
    23 include ../../../make-rules/shared-macros.mk
    26 include ../../../make-rules/shared-macros.mk
    24 
    27 
    25 COMPONENT_NAME=		alembic
    28 COMPONENT_NAME=		alembic
    26 COMPONENT_VERSION=	0.6.0
    29 COMPONENT_VERSION=	0.7.4
    27 COMPONENT_SRC=		$(COMPONENT_NAME)-$(COMPONENT_VERSION)
    30 COMPONENT_SRC=		$(COMPONENT_NAME)-$(COMPONENT_VERSION)
    28 COMPONENT_ARCHIVE=	$(COMPONENT_SRC).tar.gz
    31 COMPONENT_ARCHIVE=	$(COMPONENT_SRC).tar.gz
    29 COMPONENT_ARCHIVE_HASH=	\
    32 COMPONENT_ARCHIVE_HASH=	\
    30     sha256:ad28e2e4f8bb712d1e67abc709b0735525541e0ebc509dbf00bcd383b5c602ca
    33     sha256:550f10b2266f689778eced2fed899bfd05755737478454b97fb99385f2e780e5
    31 COMPONENT_ARCHIVE_URL=	$(call pypi_url)
    34 COMPONENT_ARCHIVE_URL=	$(call pypi_url)
    32 COMPONENT_PROJECT_URL=	https://pypi.python.org/pypi/alembic/
    35 COMPONENT_PROJECT_URL=	https://pypi.python.org/pypi/alembic/
    33 COMPONENT_BUGDB=	python-mod/alembic
    36 COMPONENT_BUGDB=	python-mod/alembic
    34 
    37 
    35 include $(WS_TOP)/make-rules/prep.mk
    38 TPNO=			21714
    36 include $(WS_TOP)/make-rules/setup.py.mk
    39 
    37 include $(WS_TOP)/make-rules/ips.mk
    40 include $(WS_MAKE_RULES)/prep.mk
       
    41 include $(WS_MAKE_RULES)/setup.py.mk
       
    42 include $(WS_MAKE_RULES)/ips.mk
    38 
    43 
    39 ASLR_MODE = $(ASLR_NOT_APPLICABLE)
    44 ASLR_MODE = $(ASLR_NOT_APPLICABLE)
    40 
    45 
    41 COMPONENT_TEST_DIR=	$(COMPONENT_SRC)
    46 COMPONENT_POST_INSTALL_ACTION += \
    42 COMPONENT_TEST_ARGS=	setup.py test
    47 	(cd $(PROTO_DIR)/usr/bin ; $(MV) -f alembic alembic-$(PYTHON_VERSION))
       
    48 
       
    49 COMPONENT_PRE_TEST_ACTION=	echo "[db]" > $(SOURCE_DIR)/test.cfg
       
    50 COMPONENT_TEST_DIR=		$(SOURCE_DIR)
       
    51 COMPONENT_TEST_ARGS=		setup.py test
    43 
    52 
    44 # common targets
    53 # common targets
    45 build:		$(BUILD_NO_ARCH)
    54 build:		$(BUILD_NO_ARCH)
    46 
    55 
    47 install:	$(INSTALL_NO_ARCH)
    56 install:	$(INSTALL_NO_ARCH)
    48 
    57 
    49 # Tests should work, but the test suite will attempt to run a subset of
    58 test:		$(TEST_NO_ARCH)
    50 # tests against various database backends, including Postgresql and MySQL,
       
    51 # so will take a bit of hooking up. Just marking as "no tests" for now,
       
    52 # to allow the OpenStack Neutron developers to get on with their work.
       
    53 test:		$(NO_TESTS)
       
    54 
    59 
    55 BUILD_PKG_DEPENDENCIES =	$(BUILD_TOOLS)
    60 BUILD_PKG_DEPENDENCIES =	$(BUILD_TOOLS)
    56 
    61 
    57 include $(WS_TOP)/make-rules/depend.mk
    62 include $(WS_TOP)/make-rules/depend.mk