2 # This file and its contents are supplied under the terms of the
3 # Common Development and Distribution License ("CDDL"), version 1.0.
4 # You may only use this file in accordance with the terms of version
7 # A full copy of the text of the CDDL should have accompanied this
8 # source. A copy of the CDDL is also available via the Internet at
9 # http://www.illumos.org/license/CDDL.
13 # This file was automatically generated using the following command:
14 # $WS_TOOLS/python-integrate-project nose
17 BUILD_STYLE
= setup.py
19 include ..
/..
/..
/make-rules
/shared-macros.mk
23 COMPONENT_REVISION
= 2
24 COMPONENT_SUMMARY
= nose
- nose extends unittest to make testing easier
25 COMPONENT_PROJECT_URL
= http
://readthedocs.org
/docs
/nose
/
26 COMPONENT_ARCHIVE_URL
= \
27 https
://files.pythonhosted.org
/packages
/58/a5
/0dc93c3ec33f4e281849523a5a913fa1eea9a3068acfa754d44d88107a44
/nose-1.3
.7.
tar.gz
28 COMPONENT_ARCHIVE_HASH
= \
29 sha256
:f1bffef9cbc82628f6e7d7b40d7e255aefaa1adb6a1b1d26c69a8b79e6208a98
30 COMPONENT_LICENSE
= LGPL-2.1
-only
32 # nose uses custom testing via the selftest.py script
35 include $(WS_MAKE_RULES
)/common.mk
37 # Support for 2to3 was removed in setuptools 58.0.0 so we cannot rely on
38 # use_2to3 and we need to convert the code explicitly here.
39 COMPONENT_PRE_BUILD_ACTION
+= 2to3-
$(PYTHON_VERSION
) --write
--nobackups
--no-diffs
$(@D
) ;
41 # We need to convert tests from Python 2 syntax to Python 3 syntax before we
42 # run them. See selftest.py for details.
43 COMPONENT_PRE_TEST_ACTION
= \
44 cd
$(@D
) ; $(PYTHON
) setup.py
--no-user-cfg build_tests
;
47 COMPONENT_TEST_CMD
= $(PYTHON
) selftest.py
49 COMPONENT_TEST_TARGETS
=
51 # Get verbose test results
52 COMPONENT_TEST_ENV
+= NOSE_VERBOSE
=2
55 COMPONENT_TEST_TRANSFORMS
+= "-e 's/0x[0-9a-f]\{12\}/\$$(POINTER)/g'"
57 # teamcity-messages pollutes test report and causes test_issue135 to fail
58 TEST_CONFLICTING_PACKAGES.python
+= library
/python
/teamcity-messages
60 # Manually added test dependencies
61 TEST_REQUIRED_PACKAGES.python
+= library
/python
/twisted
63 # Auto-generated dependencies
64 PYTHON_REQUIRED_PACKAGES
+= library
/python
/importlib-metadata
65 PYTHON_REQUIRED_PACKAGES
+= library
/python
/setuptools
66 PYTHON_REQUIRED_PACKAGES
+= runtime
/python