components/pylint/Makefile
changeset 1023 d2db2bc970c3
parent 800 2ad056ed89ec
child 1058 34d7aaa03423
equal deleted inserted replaced
1022:6291fa546414 1023:d2db2bc970c3
    23 #
    23 #
    24 
    24 
    25 include ../../make-rules/shared-macros.mk
    25 include ../../make-rules/shared-macros.mk
    26 
    26 
    27 COMPONENT_NAME=		pylint
    27 COMPONENT_NAME=		pylint
    28 COMPONENT_VERSION=	0.18.0
    28 COMPONENT_VERSION=	0.25.2
    29 COMPONENT_SRC=		$(COMPONENT_NAME)-$(COMPONENT_VERSION)
    29 COMPONENT_SRC=		$(COMPONENT_NAME)-$(COMPONENT_VERSION)
    30 COMPONENT_ARCHIVE=	$(COMPONENT_SRC).tar.gz
    30 COMPONENT_ARCHIVE=	$(COMPONENT_SRC).tar.gz
    31 COMPONENT_ARCHIVE_HASH=	\
    31 COMPONENT_ARCHIVE_HASH=	\
    32     sha256:54e8135fdb44b41797510ed8e246b19d09c98ead4dec704c5e5152028a79976f
    32 	sha256:757f2b97071a87fb7e4d017fc7c9eb74f26dcf412e683b614d3c5d54b217212d
    33 COMPONENT_ARCHIVE_URL=	http://ftp.logilab.org/pub/pylint/$(COMPONENT_ARCHIVE)
    33 COMPONENT_ARCHIVE_URL=	http://download.logilab.org/pub/$(COMPONENT_NAME)/$(COMPONENT_ARCHIVE)
    34 COMPONENT_PROJECT_URL=  http://www.logilab.org/project/pylint/
    34 COMPONENT_PROJECT_URL=  http://www.logilab.org/project/pylint/
    35 
    35 
    36 include $(WS_TOP)/make-rules/prep.mk
    36 include $(WS_TOP)/make-rules/prep.mk
    37 include $(WS_TOP)/make-rules/ips.mk
    37 include $(WS_TOP)/make-rules/ips.mk
    38 include $(WS_TOP)/make-rules/setup.py.mk
    38 include $(WS_TOP)/make-rules/setup.py.mk
    87 
    87 
    88 build:		$(BUILD_32)
    88 build:		$(BUILD_32)
    89 
    89 
    90 install:	$(INSTALL_32)
    90 install:	$(INSTALL_32)
    91 
    91 
       
    92 # The tests are run using python 2.7 only and require that
       
    93 # the python-27 package is installed (does not have to be the default python). 
       
    94 # Testing using python-26 is done manually, since it requires
       
    95 # downloading and installing the unittest2 component (not part of Solaris),
       
    96 # which provides python 2.7 functionality to the unittest python library
       
    97 # in the python2.6 package.
       
    98 
       
    99 # Use the python 2.7 libraries for testing.
       
   100 test: PYTHON_VERSION=2.7
       
   101 
       
   102 # logilab-common and logilab-astng are runtime dependencies of pylint,
       
   103 # and we need to use their latest versions from this workspace.
       
   104 # We can't just add their install targets as dependencies here,
       
   105 # so just "gmake install" in the logilab-common and logilab-astng
       
   106 # component directories before running the pylint tests.
       
   107 COMPONENT_PRE_TEST_ACTION = ($(GMAKE) -C \
       
   108 	$(COMPONENT_DIR)/../logilab-common install; \
       
   109 	$(GMAKE) -C $(COMPONENT_DIR)/../logilab-astng install )
       
   110 
       
   111 COMPONENT_TEST_ENV = PYTHONPATH=$(COMPONENT_DIR)/../logilab-common/build/prototype/$(MACH)$(PYTHON_VENDOR_PACKAGES):$(COMPONENT_DIR)/../logilab-astng/build/prototype/$(MACH)$(PYTHON_VENDOR_PACKAGES):$(PROTO_DIR)$(PYTHON_VENDOR_PACKAGES)
       
   112 
       
   113 # Run pytest-2.7 from logilab-common's proto area for now, until the 
       
   114 # new version of logilab-common containing pytest is in CBE.
       
   115 # Then we can change it to /usr/bin/pytest-$(PYTHON_VERSION).
       
   116 COMPONENT_TEST_CMD = $(COMPONENT_DIR)/../logilab-common/build/prototype/$(MACH)/usr/bin/pytest-$(PYTHON_VERSION)
       
   117 COMPONENT_TEST_ARGS =
       
   118 
       
   119 # Expected failures for test target:
       
   120 # 799 test cases, 4 errors, 6 failures, 4 skipped
       
   121 # 9 modules OK (2 failed)
       
   122 # failures: smoketest [7/14], unittest_lint [3/21]
       
   123 
    92 test:		$(TEST_32)
   124 test:		$(TEST_32)
    93 
   125 
    94 BUILD_PKG_DEPENDENCIES =	$(BUILD_TOOLS)
   126 BUILD_PKG_DEPENDENCIES =	$(BUILD_TOOLS)
    95 
   127 
    96 include $(WS_TOP)/make-rules/depend.mk
   128 include $(WS_TOP)/make-rules/depend.mk