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 yarl
17 BUILD_STYLE
= pyproject
19 include ..
/..
/..
/make-rules
/shared-macros.mk
23 COMPONENT_SUMMARY
= yarl
- Yet another URL library
24 COMPONENT_PROJECT_URL
= https
://github.com
/aio-libs
/yarl
25 COMPONENT_ARCHIVE_URL
= \
26 https
://files.pythonhosted.org
/packages
/e0
/ad
/bedcdccbcbf91363fd425a948994f3340924145c2bc8ccb296f4a1e52c28
/yarl-1.9
.4.
tar.gz
27 COMPONENT_ARCHIVE_HASH
= \
28 sha256
:566db86717cf8080b99b58b083b773a908ae40f06681e87e589a976faf8246bf
29 COMPONENT_LICENSE
= Apache-2.0
30 COMPONENT_LICENSE_FILE
= LICENSE
34 include $(WS_MAKE_RULES
)/common.mk
36 # This project does not support tox so we need to provide test requirements
38 TEST_REQUIREMENTS
+= requirements
/test.txt
41 # Tests are run from build directory that contains cloned copy of sdist. We
42 # try to ask Python to find tested modules in the proto area (the PYTHONPATH is
43 # set accordingly), but Python (< 3.11) always adds the current directory to
44 # sys.path and there is no known (simple) way how to avoid that. Except -I,
45 # but that would cause Python to ignore PYTHONPATH too so we would not have
46 # access to the proto area either. The -P option together with PYTHONSAFEPATH
47 # environment variable were added to Python 3.11 only so we cannot use them yet
48 # for all Python versions we support.
50 # Since sdist for this project contains the main module in the top-level
51 # directory we cannot force Python to skip it. But, unfortunately, this module
52 # does not contain built dynamic libraries, so Python cannot find them while
55 # To workaround this we rename the main module in the build directory during
56 # testing so Python will need to defer to PYTHONPATH.
58 COMPONENT_PRE_TEST_ACTION
+= $(MV
) $(@D
)/yarl
$(@D
)/yarl-RENAMED
;
59 COMPONENT_POST_TEST_ACTION
+= $(MV
) $(@D
)/yarl-RENAMED
$(@D
)/yarl
;
61 # Auto-generated dependencies
62 PYTHON_REQUIRED_PACKAGES
+= library
/python
/cython
63 PYTHON_REQUIRED_PACKAGES
+= library
/python
/expandvars
64 PYTHON_REQUIRED_PACKAGES
+= library
/python
/idna
65 PYTHON_REQUIRED_PACKAGES
+= library
/python
/multidict
66 PYTHON_REQUIRED_PACKAGES
+= library
/python
/setuptools
67 PYTHON_REQUIRED_PACKAGES
+= library
/python
/tomli
68 PYTHON_REQUIRED_PACKAGES
+= library
/python
/wheel
69 PYTHON_REQUIRED_PACKAGES
+= runtime
/python
70 REQUIRED_PACKAGES
+= system
/library
71 TEST_REQUIRED_PACKAGES.python
+= library
/python
/idna
72 TEST_REQUIRED_PACKAGES.python
+= library
/python
/multidict
73 TEST_REQUIRED_PACKAGES.python
+= library
/python
/pytest
74 TEST_REQUIRED_PACKAGES.python
+= library
/python
/pytest-cov
75 TEST_REQUIRED_PACKAGES.python
+= library
/python
/pytest-xdist