components/python/oslo.config/Makefile
branchs11-update
changeset 4072 db0cec748ec0
parent 3996 20c0f21bbe1e
child 6035 c9748fcc32de
equal deleted inserted replaced
4067:4be1f488dda8 4072:db0cec748ec0
    20 #
    20 #
    21 
    21 
    22 #
    22 #
    23 # Copyright (c) 2013, 2015, Oracle and/or its affiliates. All rights reserved.
    23 # Copyright (c) 2013, 2015, Oracle and/or its affiliates. All rights reserved.
    24 #
    24 #
       
    25 
    25 include ../../../make-rules/shared-macros.mk
    26 include ../../../make-rules/shared-macros.mk
    26 
    27 
    27 COMPONENT_NAME=		oslo.config
    28 COMPONENT_NAME=		oslo.config
    28 COMPONENT_VERSION=	1.3.0
    29 COMPONENT_VERSION=	1.6.0
    29 COMPONENT_SRC=		$(COMPONENT_NAME)-$(COMPONENT_VERSION)
    30 COMPONENT_SRC=		$(COMPONENT_NAME)-$(COMPONENT_VERSION)
    30 COMPONENT_ARCHIVE=	$(COMPONENT_SRC).tar.gz
    31 COMPONENT_ARCHIVE=	$(COMPONENT_SRC).tar.gz
    31 COMPONENT_ARCHIVE_HASH=	\
    32 COMPONENT_ARCHIVE_HASH=	\
    32     sha256:1fa44f663f7109ccc3ddd393fbc5a7a077208e116f94e41ada7fbd977f27cbab
    33     sha256:a88cf1af696b4d9cae783a4c8c6898e6fb4abd176f9c9906ba388e7eac5eab17
    33 COMPONENT_ARCHIVE_URL=	http://tarballs.openstack.org/$(COMPONENT_NAME)/$(COMPONENT_ARCHIVE)
    34 COMPONENT_ARCHIVE_URL=	$(call pypi_url)
    34 COMPONENT_PROJECT_URL=	http://www.openstack.org/
    35 COMPONENT_PROJECT_URL=	https://launchpad.net/oslo.config
    35 COMPONENT_BUGDB=	python-mod/oslo.config
    36 COMPONENT_BUGDB=	python-mod/oslo.config
    36 
    37 
    37 TPNO=			17861
    38 TPNO=			21726
    38 
    39 
    39 include $(WS_MAKE_RULES)/prep.mk
    40 include $(WS_MAKE_RULES)/prep.mk
    40 include $(WS_MAKE_RULES)/setup.py.mk
    41 include $(WS_MAKE_RULES)/setup.py.mk
    41 include $(WS_MAKE_RULES)/ips.mk
    42 include $(WS_MAKE_RULES)/ips.mk
    42 
    43 
    43 COMPONENT_POST_INSTALL_ACTION += \
    44 COMPONENT_POST_INSTALL_ACTION += \
    44         ($(TOUCH) $(PROTO_DIR)/usr/lib/python$(PYTHON_VERSION)/vendor-packages/oslo/__init__.py; \
    45 	($(TOUCH) $(PROTO_DIR)/usr/lib/python$(PYTHON_VERSION)/vendor-packages/oslo/__init__.py; \
    45          $(PYTHON) -m compileall $(PROTO_DIR)/$(PYTHON_VENDOR_PACKAGES))
    46 	 $(PYTHON) -m compileall $(PROTO_DIR)/$(PYTHON_VENDOR_PACKAGES); \
       
    47 	 cd $(PROTO_DIR)/usr/bin ; \
       
    48 	 $(MV) -f oslo-config-generator oslo-config-generator-$(PYTHON_VERSION))
    46 
    49 
    47 ASLR_MODE = $(ASLR_NOT_APPLICABLE)
    50 ASLR_MODE = $(ASLR_NOT_APPLICABLE)
    48 
    51 
    49 # common targets
    52 # common targets
    50 build:		$(BUILD_NO_ARCH)
    53 build:		$(BUILD_NO_ARCH)
    51 
    54 
    52 install:	$(INSTALL_NO_ARCH)
    55 install:	$(INSTALL_NO_ARCH)
    53 
    56 
    54 # Tests require:
    57 # see $(COMPONENT_SRC)/test-requirements.txt for the python modules
    55 # fixtures, mox, nose, nose-exclude, testtools, coverage, sphinx
    58 # required to execute unittests.
    56 # some of which haven't been integrated yet
       
    57 test:		$(NO_TESTS)
    59 test:		$(NO_TESTS)
    58 
       
    59