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
22 HUMAN_VERSION
= 1.18.3
23 COMPONENT_SUMMARY
= Yet another URL library
24 COMPONENT_PROJECT_URL
= https
://github.com
/aio-libs
/yarl
25 COMPONENT_ARCHIVE_HASH
= \
26 sha256
:ac1801c45cbf77b6c99242eeff4fffb5e4e73a800b5c4ad4fc0be5def634d2e1
27 COMPONENT_LICENSE
= Apache-2.0
28 COMPONENT_LICENSE_FILE
= LICENSE
32 include $(WS_MAKE_RULES
)/common.mk
34 # This project does not support tox so we need to provide test requirements
36 TEST_REQUIREMENTS
+= requirements
/test.txt
39 # Tests are run from build directory that contains cloned copy of sdist. We
40 # try to ask Python to find tested modules in the proto area (the PYTHONPATH is
41 # set accordingly), but Python (< 3.11) always adds the current directory to
42 # sys.path and there is no known (simple) way how to avoid that. Except -I,
43 # but that would cause Python to ignore PYTHONPATH too so we would not have
44 # access to the proto area either. The -P option together with PYTHONSAFEPATH
45 # environment variable were added to Python 3.11 only so we cannot use them yet
46 # for all Python versions we support.
48 # Since sdist for this project contains the main module in the top-level
49 # directory we cannot force Python to skip it. But, unfortunately, this module
50 # does not contain built dynamic libraries, so Python cannot find them while
53 # To workaround this we rename the main module in the build directory during
54 # testing so Python will need to defer to PYTHONPATH.
56 COMPONENT_PRE_TEST_ACTION
+= $(MV
) $(@D
)/yarl
$(@D
)/yarl-RENAMED
;
57 COMPONENT_POST_TEST_ACTION
+= $(MV
) $(@D
)/yarl-RENAMED
$(@D
)/yarl
;
59 # We have no pytest-codspeed packaged yet.
60 PYTEST_ADDOPTS
+= --ignore tests
/test_quoting_benchmarks.py
61 PYTEST_ADDOPTS
+= --ignore tests
/test_url_benchmarks.py
63 # Random directory name
64 COMPONENT_TEST_TRANSFORMS
+= "-e 's|/tmp/.*/garbage[^/]*|\$$(TMPDIR)|'"
66 # Auto-generated dependencies
67 PYTHON_REQUIRED_PACKAGES
+= library
/python
/cython
68 PYTHON_REQUIRED_PACKAGES
+= library
/python
/expandvars
69 PYTHON_REQUIRED_PACKAGES
+= library
/python
/idna
70 PYTHON_REQUIRED_PACKAGES
+= library
/python
/multidict
71 PYTHON_REQUIRED_PACKAGES
+= library
/python
/propcache
72 PYTHON_REQUIRED_PACKAGES
+= library
/python
/setuptools
73 PYTHON_REQUIRED_PACKAGES
+= library
/python
/tomli
74 PYTHON_REQUIRED_PACKAGES
+= runtime
/python
75 REQUIRED_PACKAGES
+= system
/library
76 TEST_REQUIRED_PACKAGES.python
+= library
/python
/covdefaults
77 TEST_REQUIRED_PACKAGES.python
+= library
/python
/cython
78 TEST_REQUIRED_PACKAGES.python
+= library
/python
/hypothesis
79 TEST_REQUIRED_PACKAGES.python
+= library
/python
/idna
80 TEST_REQUIRED_PACKAGES.python
+= library
/python
/multidict
81 TEST_REQUIRED_PACKAGES.python
+= library
/python
/propcache
82 TEST_REQUIRED_PACKAGES.python
+= library
/python
/pytest
83 TEST_REQUIRED_PACKAGES.python
+= library
/python
/pytest-cov
84 TEST_REQUIRED_PACKAGES.python
+= library
/python
/pytest-xdist