-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Exclude tests from package build #705
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
otherwise it tries to install a package called 'tests' at top level, this is forbidden: ``` >>> Emerging (1 of 1) dev-python/aioshelly-12.0.1::HomeAssistantRepository >>> Failed to emerge dev-python/aioshelly-12.0.1, Log file: >>> '/var/tmp/portage/dev-python/aioshelly-12.0.1/temp/build.log' >>> Jobs: 0 of 1 complete, 1 failed Load avg: 0.69, 0.27, 0.12 * Package: dev-python/aioshelly-12.0.1:0 * Repository: HomeAssistantRepository * Maintainer: [email protected] * Upstream: [email protected] * USE: abi_x86_64 amd64 elibc_glibc kernel_linux python_targets_python3_12 * FEATURES: network-sandbox preserve-libs sandbox userpriv usersandbox >>> Unpacking source... >>> Unpacking aioshelly-12.0.1.tar.gz to /var/tmp/portage/dev-python/aioshelly-12.0.1/work >>> Source unpacked in /var/tmp/portage/dev-python/aioshelly-12.0.1/work >>> Preparing source in /var/tmp/portage/dev-python/aioshelly-12.0.1/work/aioshelly-12.0.1 ... >>> Source prepared. >>> Configuring source in /var/tmp/portage/dev-python/aioshelly-12.0.1/work/aioshelly-12.0.1 ... >>> Source configured. >>> Compiling source in /var/tmp/portage/dev-python/aioshelly-12.0.1/work/aioshelly-12.0.1 ... * python3_12: running distutils-r1_run_phase distutils-r1_python_compile * Building the wheel for aioshelly-12.0.1 via setuptools.build_meta:__legacy__ python3.12 -m gpep517 build-wheel --prefix=/usr --backend setuptools.build_meta:__legacy__ --output-fd 3 --wheel-dir /var/tmp/portage/dev-python/aioshelly-12.0.1/work/aioshelly-12.0.1-python3_12/wheel 2024-11-03 16:23:52,524 gpep517 INFO Building wheel via backend setuptools.build_meta:__legacy__ 2024-11-03 16:23:52,931 root INFO running bdist_wheel 2024-11-03 16:23:53,239 root INFO running build 2024-11-03 16:23:53,239 root INFO running build_py 2024-11-03 16:23:53,301 root INFO creating /var/tmp/portage/dev-python/aioshelly-12.0.1/work/aioshelly-12.0.1-python3_12/build 2024-11-03 16:23:53,302 root INFO creating /var/tmp/portage/dev-python/aioshelly-12.0.1/work/aioshelly-12.0.1-python3_12/build/lib 2024-11-03 16:23:53,302 root INFO creating /var/tmp/portage/dev-python/aioshelly-12.0.1/work/aioshelly-12.0.1-python3_12/build/lib/tests 2024-11-03 16:23:53,302 root INFO copying tests/test_exceptions.py -> /var/tmp/portage/dev-python/aioshelly-12.0.1/work/aioshelly-12.0.1-python3_12/build/lib/tests 2024-11-03 16:23:53,303 root INFO copying tests/test_common.py -> /var/tmp/portage/dev-python/aioshelly-12.0.1/work/aioshelly-12.0.1-python3_12/build/lib/tests 2024-11-03 16:23:53,303 root INFO copying tests/__init__.py -> /var/tmp/portage/dev-python/aioshelly-12.0.1/work/aioshelly-12.0.1-python3_12/build/lib/tests 2024-11-03 16:23:53,304 root INFO copying tests/test_const.py -> /var/tmp/portage/dev-python/aioshelly-12.0.1/work/aioshelly-12.0.1-python3_12/build/lib/tests 2024-11-03 16:23:53,304 root INFO creating /var/tmp/portage/dev-python/aioshelly-12.0.1/work/aioshelly-12.0.1-python3_12/build/lib/aioshelly 2024-11-03 16:23:53,304 root INFO copying aioshelly/common.py -> /var/tmp/portage/dev-python/aioshelly-12.0.1/work/aioshelly-12.0.1-python3_12/build/lib/aioshelly 2024-11-03 16:23:53,305 root INFO copying aioshelly/const.py -> /var/tmp/portage/dev-python/aioshelly-12.0.1/work/aioshelly-12.0.1-python3_12/build/lib/aioshelly 2024-11-03 16:23:53,305 root INFO copying aioshelly/exceptions.py -> /var/tmp/portage/dev-python/aioshelly-12.0.1/work/aioshelly-12.0.1-python3_12/build/lib/aioshelly 2024-11-03 16:23:53,306 root INFO copying aioshelly/__init__.py -> /var/tmp/portage/dev-python/aioshelly-12.0.1/work/aioshelly-12.0.1-python3_12/build/lib/aioshelly 2024-11-03 16:23:53,306 root INFO copying aioshelly/json.py -> /var/tmp/portage/dev-python/aioshelly-12.0.1/work/aioshelly-12.0.1-python3_12/build/lib/aioshelly 2024-11-03 16:23:53,307 root INFO creating /var/tmp/portage/dev-python/aioshelly-12.0.1/work/aioshelly-12.0.1-python3_12/build/lib/tools 2024-11-03 16:23:53,307 root INFO copying tools/__init__.py -> /var/tmp/portage/dev-python/aioshelly-12.0.1/work/aioshelly-12.0.1-python3_12/build/lib/tools 2024-11-03 16:23:53,307 root INFO copying tools/verify.py -> /var/tmp/portage/dev-python/aioshelly-12.0.1/work/aioshelly-12.0.1-python3_12/build/lib/tools 2024-11-03 16:23:53,308 root INFO copying tools/fixture.py -> /var/tmp/portage/dev-python/aioshelly-12.0.1/work/aioshelly-12.0.1-python3_12/build/lib/tools 2024-11-03 16:23:53,308 root INFO copying tools/example.py -> /var/tmp/portage/dev-python/aioshelly-12.0.1/work/aioshelly-12.0.1-python3_12/build/lib/tools 2024-11-03 16:23:53,309 root INFO creating /var/tmp/portage/dev-python/aioshelly-12.0.1/work/aioshelly-12.0.1-python3_12/build/lib/tests/rpc_device 2024-11-03 16:23:53,309 root INFO copying tests/rpc_device/test_wsrpc.py -> /var/tmp/portage/dev-python/aioshelly-12.0.1/work/aioshelly-12.0.1-python3_12/build/lib/tests/rpc_device 2024-11-03 16:23:53,310 root INFO copying tests/rpc_device/__init__.py -> /var/tmp/portage/dev-python/aioshelly-12.0.1/work/aioshelly-12.0.1-python3_12/build/lib/tests/rpc_device 2024-11-03 16:23:53,310 root INFO copying tests/rpc_device/test_device.py -> /var/tmp/portage/dev-python/aioshelly-12.0.1/work/aioshelly-12.0.1-python3_12/build/lib/tests/rpc_device 2024-11-03 16:23:53,311 root INFO copying tests/rpc_device/conftest.py -> /var/tmp/portage/dev-python/aioshelly-12.0.1/work/aioshelly-12.0.1-python3_12/build/lib/tests/rpc_device 2024-11-03 16:23:53,311 root INFO creating /var/tmp/portage/dev-python/aioshelly-12.0.1/work/aioshelly-12.0.1-python3_12/build/lib/aioshelly/rpc_device 2024-11-03 16:23:53,312 root INFO copying aioshelly/rpc_device/wsrpc.py -> /var/tmp/portage/dev-python/aioshelly-12.0.1/work/aioshelly-12.0.1-python3_12/build/lib/aioshelly/rpc_device 2024-11-03 16:23:53,312 root INFO copying aioshelly/rpc_device/models.py -> /var/tmp/portage/dev-python/aioshelly-12.0.1/work/aioshelly-12.0.1-python3_12/build/lib/aioshelly/rpc_device 2024-11-03 16:23:53,313 root INFO copying aioshelly/rpc_device/device.py -> /var/tmp/portage/dev-python/aioshelly-12.0.1/work/aioshelly-12.0.1-python3_12/build/lib/aioshelly/rpc_device 2024-11-03 16:23:53,313 root INFO copying aioshelly/rpc_device/__init__.py -> /var/tmp/portage/dev-python/aioshelly-12.0.1/work/aioshelly-12.0.1-python3_12/build/lib/aioshelly/rpc_device 2024-11-03 16:23:53,314 root INFO creating /var/tmp/portage/dev-python/aioshelly-12.0.1/work/aioshelly-12.0.1-python3_12/build/lib/aioshelly/block_device 2024-11-03 16:23:53,314 root INFO copying aioshelly/block_device/device.py -> /var/tmp/portage/dev-python/aioshelly-12.0.1/work/aioshelly-12.0.1-python3_12/build/lib/aioshelly/block_device 2024-11-03 16:23:53,315 root INFO copying aioshelly/block_device/__init__.py -> /var/tmp/portage/dev-python/aioshelly-12.0.1/work/aioshelly-12.0.1-python3_12/build/lib/aioshelly/block_device 2024-11-03 16:23:53,315 root INFO copying aioshelly/block_device/coap.py -> /var/tmp/portage/dev-python/aioshelly-12.0.1/work/aioshelly-12.0.1-python3_12/build/lib/aioshelly/block_device 2024-11-03 16:23:53,316 root INFO creating /var/tmp/portage/dev-python/aioshelly-12.0.1/work/aioshelly-12.0.1-python3_12/build/lib/aioshelly/ble 2024-11-03 16:23:53,316 root INFO copying aioshelly/ble/const.py -> /var/tmp/portage/dev-python/aioshelly-12.0.1/work/aioshelly-12.0.1-python3_12/build/lib/aioshelly/ble 2024-11-03 16:23:53,316 root INFO copying aioshelly/ble/parser.py -> /var/tmp/portage/dev-python/aioshelly-12.0.1/work/aioshelly-12.0.1-python3_12/build/lib/aioshelly/ble 2024-11-03 16:23:53,317 root INFO copying aioshelly/ble/__init__.py -> /var/tmp/portage/dev-python/aioshelly-12.0.1/work/aioshelly-12.0.1-python3_12/build/lib/aioshelly/ble 2024-11-03 16:23:53,317 root INFO creating /var/tmp/portage/dev-python/aioshelly-12.0.1/work/aioshelly-12.0.1-python3_12/build/lib/aioshelly/ble/backend 2024-11-03 16:23:53,318 root INFO copying aioshelly/ble/backend/__init__.py -> /var/tmp/portage/dev-python/aioshelly-12.0.1/work/aioshelly-12.0.1-python3_12/build/lib/aioshelly/ble/backend 2024-11-03 16:23:53,318 root INFO copying aioshelly/ble/backend/scanner.py -> /var/tmp/portage/dev-python/aioshelly-12.0.1/work/aioshelly-12.0.1-python3_12/build/lib/aioshelly/ble/backend 2024-11-03 16:23:53,319 root INFO creating /var/tmp/portage/dev-python/aioshelly-12.0.1/work/aioshelly-12.0.1-python3_12/build/lib/tools/common 2024-11-03 16:23:53,319 root INFO copying tools/common/__init__.py -> /var/tmp/portage/dev-python/aioshelly-12.0.1/work/aioshelly-12.0.1-python3_12/build/lib/tools/common 2024-11-03 16:23:53,321 root INFO copying aioshelly/py.typed -> /var/tmp/portage/dev-python/aioshelly-12.0.1/work/aioshelly-12.0.1-python3_12/build/lib/aioshelly 2024-11-03 16:23:53,323 root WARNING warning: build_py: byte-compiling is disabled, skipping. 2024-11-03 16:23:53,449 root INFO installing to /var/tmp/portage/dev-python/aioshelly-12.0.1/work/aioshelly-12.0.1-python3_12/build/bdist.linux-x86_64/wheel 2024-11-03 16:23:53,450 root INFO running install 2024-11-03 16:23:53,463 root INFO running install_lib 2024-11-03 16:23:53,524 root INFO creating /var/tmp/portage/dev-python/aioshelly-12.0.1/work/aioshelly-12.0.1-python3_12/build/bdist.linux-x86_64 2024-11-03 16:23:53,524 root INFO creating /var/tmp/portage/dev-python/aioshelly-12.0.1/work/aioshelly-12.0.1-python3_12/build/bdist.linux-x86_64/wheel 2024-11-03 16:23:53,524 root INFO creating /var/tmp/portage/dev-python/aioshelly-12.0.1/work/aioshelly-12.0.1-python3_12/build/bdist.linux-x86_64/wheel/tests 2024-11-03 16:23:53,524 root INFO copying /var/tmp/portage/dev-python/aioshelly-12.0.1/work/aioshelly-12.0.1-python3_12/build/lib/tests/test_exceptions.py -> /var/tmp/portage/dev-python/aioshelly-12.0.1/work/aioshelly-12.0.1-python3_12/build/bdist.linux-x86_64/wheel/./tests 2024-11-03 16:23:53,525 root INFO creating /var/tmp/portage/dev-python/aioshelly-12.0.1/work/aioshelly-12.0.1-python3_12/build/bdist.linux-x86_64/wheel/tests/rpc_device 2024-11-03 16:23:53,525 root INFO copying /var/tmp/portage/dev-python/aioshelly-12.0.1/work/aioshelly-12.0.1-python3_12/build/lib/tests/rpc_device/test_wsrpc.py -> /var/tmp/portage/dev-python/aioshelly-12.0.1/work/aioshelly-12.0.1-python3_12/build/bdist.linux-x86_64/wheel/./tests/rpc_device 2024-11-03 16:23:53,526 root INFO copying /var/tmp/portage/dev-python/aioshelly-12.0.1/work/aioshelly-12.0.1-python3_12/build/lib/tests/rpc_device/__init__.py -> /var/tmp/portage/dev-python/aioshelly-12.0.1/work/aioshelly-12.0.1-python3_12/build/bdist.linux-x86_64/wheel/./tests/rpc_device 2024-11-03 16:23:53,526 root INFO copying /var/tmp/portage/dev-python/aioshelly-12.0.1/work/aioshelly-12.0.1-python3_12/build/lib/tests/rpc_device/test_device.py -> /var/tmp/portage/dev-python/aioshelly-12.0.1/work/aioshelly-12.0.1-python3_12/build/bdist.linux-x86_64/wheel/./tests/rpc_device 2024-11-03 16:23:53,527 root INFO copying /var/tmp/portage/dev-python/aioshelly-12.0.1/work/aioshelly-12.0.1-python3_12/build/lib/tests/rpc_device/conftest.py -> /var/tmp/portage/dev-python/aioshelly-12.0.1/work/aioshelly-12.0.1-python3_12/build/bdist.linux-x86_64/wheel/./tests/rpc_device 2024-11-03 16:23:53,527 root INFO copying /var/tmp/portage/dev-python/aioshelly-12.0.1/work/aioshelly-12.0.1-python3_12/build/lib/tests/test_common.py -> /var/tmp/portage/dev-python/aioshelly-12.0.1/work/aioshelly-12.0.1-python3_12/build/bdist.linux-x86_64/wheel/./tests 2024-11-03 16:23:53,528 root INFO copying /var/tmp/portage/dev-python/aioshelly-12.0.1/work/aioshelly-12.0.1-python3_12/build/lib/tests/__init__.py -> /var/tmp/portage/dev-python/aioshelly-12.0.1/work/aioshelly-12.0.1-python3_12/build/bdist.linux-x86_64/wheel/./tests 2024-11-03 16:23:53,528 root INFO copying /var/tmp/portage/dev-python/aioshelly-12.0.1/work/aioshelly-12.0.1-python3_12/build/lib/tests/test_const.py -> /var/tmp/portage/dev-python/aioshelly-12.0.1/work/aioshelly-12.0.1-python3_12/build/bdist.linux-x86_64/wheel/./tests 2024-11-03 16:23:53,529 root INFO creating /var/tmp/portage/dev-python/aioshelly-12.0.1/work/aioshelly-12.0.1-python3_12/build/bdist.linux-x86_64/wheel/aioshelly 2024-11-03 16:23:53,529 root INFO copying /var/tmp/portage/dev-python/aioshelly-12.0.1/work/aioshelly-12.0.1-python3_12/build/lib/aioshelly/py.typed -> /var/tmp/portage/dev-python/aioshelly-12.0.1/work/aioshelly-12.0.1-python3_12/build/bdist.linux-x86_64/wheel/./aioshelly 2024-11-03 16:23:53,530 root INFO copying /var/tmp/portage/dev-python/aioshelly-12.0.1/work/aioshelly-12.0.1-python3_12/build/lib/aioshelly/common.py -> /var/tmp/portage/dev-python/aioshelly-12.0.1/work/aioshelly-12.0.1-python3_12/build/bdist.linux-x86_64/wheel/./aioshelly 2024-11-03 16:23:53,530 root INFO creating /var/tmp/portage/dev-python/aioshelly-12.0.1/work/aioshelly-12.0.1-python3_12/build/bdist.linux-x86_64/wheel/aioshelly/rpc_device 2024-11-03 16:23:53,531 root INFO copying /var/tmp/portage/dev-python/aioshelly-12.0.1/work/aioshelly-12.0.1-python3_12/build/lib/aioshelly/rpc_device/wsrpc.py -> /var/tmp/portage/dev-python/aioshelly-12.0.1/work/aioshelly-12.0.1-python3_12/build/bdist.linux-x86_64/wheel/./aioshelly/rpc_device 2024-11-03 16:23:53,531 root INFO copying /var/tmp/portage/dev-python/aioshelly-12.0.1/work/aioshelly-12.0.1-python3_12/build/lib/aioshelly/rpc_device/models.py -> /var/tmp/portage/dev-python/aioshelly-12.0.1/work/aioshelly-12.0.1-python3_12/build/bdist.linux-x86_64/wheel/./aioshelly/rpc_device 2024-11-03 16:23:53,532 root INFO copying /var/tmp/portage/dev-python/aioshelly-12.0.1/work/aioshelly-12.0.1-python3_12/build/lib/aioshelly/rpc_device/device.py -> /var/tmp/portage/dev-python/aioshelly-12.0.1/work/aioshelly-12.0.1-python3_12/build/bdist.linux-x86_64/wheel/./aioshelly/rpc_device 2024-11-03 16:23:53,532 root INFO copying /var/tmp/portage/dev-python/aioshelly-12.0.1/work/aioshelly-12.0.1-python3_12/build/lib/aioshelly/rpc_device/__init__.py -> /var/tmp/portage/dev-python/aioshelly-12.0.1/work/aioshelly-12.0.1-python3_12/build/bdist.linux-x86_64/wheel/./aioshelly/rpc_device 2024-11-03 16:23:53,533 root INFO copying /var/tmp/portage/dev-python/aioshelly-12.0.1/work/aioshelly-12.0.1-python3_12/build/lib/aioshelly/const.py -> /var/tmp/portage/dev-python/aioshelly-12.0.1/work/aioshelly-12.0.1-python3_12/build/bdist.linux-x86_64/wheel/./aioshelly 2024-11-03 16:23:53,533 root INFO copying /var/tmp/portage/dev-python/aioshelly-12.0.1/work/aioshelly-12.0.1-python3_12/build/lib/aioshelly/exceptions.py -> /var/tmp/portage/dev-python/aioshelly-12.0.1/work/aioshelly-12.0.1-python3_12/build/bdist.linux-x86_64/wheel/./aioshelly 2024-11-03 16:23:53,534 root INFO creating /var/tmp/portage/dev-python/aioshelly-12.0.1/work/aioshelly-12.0.1-python3_12/build/bdist.linux-x86_64/wheel/aioshelly/block_device 2024-11-03 16:23:53,534 root INFO copying /var/tmp/portage/dev-python/aioshelly-12.0.1/work/aioshelly-12.0.1-python3_12/build/lib/aioshelly/block_device/device.py -> /var/tmp/portage/dev-python/aioshelly-12.0.1/work/aioshelly-12.0.1-python3_12/build/bdist.linux-x86_64/wheel/./aioshelly/block_device 2024-11-03 16:23:53,535 root INFO copying /var/tmp/portage/dev-python/aioshelly-12.0.1/work/aioshelly-12.0.1-python3_12/build/lib/aioshelly/block_device/__init__.py -> /var/tmp/portage/dev-python/aioshelly-12.0.1/work/aioshelly-12.0.1-python3_12/build/bdist.linux-x86_64/wheel/./aioshelly/block_device 2024-11-03 16:23:53,535 root INFO copying /var/tmp/portage/dev-python/aioshelly-12.0.1/work/aioshelly-12.0.1-python3_12/build/lib/aioshelly/block_device/coap.py -> /var/tmp/portage/dev-python/aioshelly-12.0.1/work/aioshelly-12.0.1-python3_12/build/bdist.linux-x86_64/wheel/./aioshelly/block_device 2024-11-03 16:23:53,536 root INFO copying /var/tmp/portage/dev-python/aioshelly-12.0.1/work/aioshelly-12.0.1-python3_12/build/lib/aioshelly/__init__.py -> /var/tmp/portage/dev-python/aioshelly-12.0.1/work/aioshelly-12.0.1-python3_12/build/bdist.linux-x86_64/wheel/./aioshelly 2024-11-03 16:23:53,536 root INFO creating /var/tmp/portage/dev-python/aioshelly-12.0.1/work/aioshelly-12.0.1-python3_12/build/bdist.linux-x86_64/wheel/aioshelly/ble 2024-11-03 16:23:53,537 root INFO creating /var/tmp/portage/dev-python/aioshelly-12.0.1/work/aioshelly-12.0.1-python3_12/build/bdist.linux-x86_64/wheel/aioshelly/ble/backend 2024-11-03 16:23:53,537 root INFO copying /var/tmp/portage/dev-python/aioshelly-12.0.1/work/aioshelly-12.0.1-python3_12/build/lib/aioshelly/ble/backend/__init__.py -> /var/tmp/portage/dev-python/aioshelly-12.0.1/work/aioshelly-12.0.1-python3_12/build/bdist.linux-x86_64/wheel/./aioshelly/ble/backend 2024-11-03 16:23:53,538 root INFO copying /var/tmp/portage/dev-python/aioshelly-12.0.1/work/aioshelly-12.0.1-python3_12/build/lib/aioshelly/ble/backend/scanner.py -> /var/tmp/portage/dev-python/aioshelly-12.0.1/work/aioshelly-12.0.1-python3_12/build/bdist.linux-x86_64/wheel/./aioshelly/ble/backend 2024-11-03 16:23:53,538 root INFO copying /var/tmp/portage/dev-python/aioshelly-12.0.1/work/aioshelly-12.0.1-python3_12/build/lib/aioshelly/ble/const.py -> /var/tmp/portage/dev-python/aioshelly-12.0.1/work/aioshelly-12.0.1-python3_12/build/bdist.linux-x86_64/wheel/./aioshelly/ble 2024-11-03 16:23:53,539 root INFO copying /var/tmp/portage/dev-python/aioshelly-12.0.1/work/aioshelly-12.0.1-python3_12/build/lib/aioshelly/ble/parser.py -> /var/tmp/portage/dev-python/aioshelly-12.0.1/work/aioshelly-12.0.1-python3_12/build/bdist.linux-x86_64/wheel/./aioshelly/ble 2024-11-03 16:23:53,539 root INFO copying /var/tmp/portage/dev-python/aioshelly-12.0.1/work/aioshelly-12.0.1-python3_12/build/lib/aioshelly/ble/__init__.py -> /var/tmp/portage/dev-python/aioshelly-12.0.1/work/aioshelly-12.0.1-python3_12/build/bdist.linux-x86_64/wheel/./aioshelly/ble 2024-11-03 16:23:53,540 root INFO copying /var/tmp/portage/dev-python/aioshelly-12.0.1/work/aioshelly-12.0.1-python3_12/build/lib/aioshelly/json.py -> /var/tmp/portage/dev-python/aioshelly-12.0.1/work/aioshelly-12.0.1-python3_12/build/bdist.linux-x86_64/wheel/./aioshelly 2024-11-03 16:23:53,540 root INFO creating /var/tmp/portage/dev-python/aioshelly-12.0.1/work/aioshelly-12.0.1-python3_12/build/bdist.linux-x86_64/wheel/tools 2024-11-03 16:23:53,540 root INFO creating /var/tmp/portage/dev-python/aioshelly-12.0.1/work/aioshelly-12.0.1-python3_12/build/bdist.linux-x86_64/wheel/tools/common 2024-11-03 16:23:53,541 root INFO copying /var/tmp/portage/dev-python/aioshelly-12.0.1/work/aioshelly-12.0.1-python3_12/build/lib/tools/common/__init__.py -> /var/tmp/portage/dev-python/aioshelly-12.0.1/work/aioshelly-12.0.1-python3_12/build/bdist.linux-x86_64/wheel/./tools/common 2024-11-03 16:23:53,541 root INFO copying /var/tmp/portage/dev-python/aioshelly-12.0.1/work/aioshelly-12.0.1-python3_12/build/lib/tools/__init__.py -> /var/tmp/portage/dev-python/aioshelly-12.0.1/work/aioshelly-12.0.1-python3_12/build/bdist.linux-x86_64/wheel/./tools 2024-11-03 16:23:53,542 root INFO copying /var/tmp/portage/dev-python/aioshelly-12.0.1/work/aioshelly-12.0.1-python3_12/build/lib/tools/verify.py -> /var/tmp/portage/dev-python/aioshelly-12.0.1/work/aioshelly-12.0.1-python3_12/build/bdist.linux-x86_64/wheel/./tools 2024-11-03 16:23:53,542 root INFO copying /var/tmp/portage/dev-python/aioshelly-12.0.1/work/aioshelly-12.0.1-python3_12/build/lib/tools/fixture.py -> /var/tmp/portage/dev-python/aioshelly-12.0.1/work/aioshelly-12.0.1-python3_12/build/bdist.linux-x86_64/wheel/./tools 2024-11-03 16:23:53,543 root INFO copying /var/tmp/portage/dev-python/aioshelly-12.0.1/work/aioshelly-12.0.1-python3_12/build/lib/tools/example.py -> /var/tmp/portage/dev-python/aioshelly-12.0.1/work/aioshelly-12.0.1-python3_12/build/bdist.linux-x86_64/wheel/./tools 2024-11-03 16:23:53,543 root WARNING warning: install_lib: byte-compiling is disabled, skipping. 2024-11-03 16:23:53,543 root INFO running install_egg_info 2024-11-03 16:23:53,609 root INFO running egg_info 2024-11-03 16:23:53,671 root INFO writing aioshelly.egg-info/PKG-INFO 2024-11-03 16:23:53,673 root INFO writing dependency_links to aioshelly.egg-info/dependency_links.txt 2024-11-03 16:23:53,673 root INFO writing requirements to aioshelly.egg-info/requires.txt 2024-11-03 16:23:53,673 root INFO writing top-level names to aioshelly.egg-info/top_level.txt [11/03/24 16:23:53] ERROR listing git files failed - pretending there aren't any git.py:26 2024-11-03 16:23:53,894 root INFO reading manifest file 'aioshelly.egg-info/SOURCES.txt' 2024-11-03 16:23:53,896 root INFO reading manifest template 'MANIFEST.in' 2024-11-03 16:23:53,896 root INFO adding license file 'LICENSE' 2024-11-03 16:23:53,898 root INFO writing manifest file 'aioshelly.egg-info/SOURCES.txt' 2024-11-03 16:23:53,899 root INFO Copying aioshelly.egg-info to /var/tmp/portage/dev-python/aioshelly-12.0.1/work/aioshelly-12.0.1-python3_12/build/bdist.linux-x86_64/wheel/./aioshelly-12.0.1-py3.12.egg-info 2024-11-03 16:23:53,902 root INFO running install_scripts 2024-11-03 16:23:53,908 root INFO creating /var/tmp/portage/dev-python/aioshelly-12.0.1/work/aioshelly-12.0.1-python3_12/build/bdist.linux-x86_64/wheel/aioshelly-12.0.1.dist-info/WHEEL 2024-11-03 16:23:53,909 wheel INFO creating '/var/tmp/portage/dev-python/aioshelly-12.0.1/work/aioshelly-12.0.1-python3_12/wheel/.tmp-bel_0lfn/aioshelly-12.0.1-py3-none-any.whl' and adding '/var/tmp/portage/dev-python/aioshelly-12.0.1/work/aioshelly-12.0.1-python3_12/build/bdist.linux-x86_64/wheel' to it 2024-11-03 16:23:53,910 wheel INFO adding 'aioshelly/__init__.py' 2024-11-03 16:23:53,910 wheel INFO adding 'aioshelly/common.py' 2024-11-03 16:23:53,911 wheel INFO adding 'aioshelly/const.py' 2024-11-03 16:23:53,911 wheel INFO adding 'aioshelly/exceptions.py' 2024-11-03 16:23:53,912 wheel INFO adding 'aioshelly/json.py' 2024-11-03 16:23:53,912 wheel INFO adding 'aioshelly/py.typed' 2024-11-03 16:23:53,912 wheel INFO adding 'aioshelly/ble/__init__.py' 2024-11-03 16:23:53,913 wheel INFO adding 'aioshelly/ble/const.py' 2024-11-03 16:23:53,913 wheel INFO adding 'aioshelly/ble/parser.py' 2024-11-03 16:23:53,913 wheel INFO adding 'aioshelly/ble/backend/__init__.py' 2024-11-03 16:23:53,914 wheel INFO adding 'aioshelly/ble/backend/scanner.py' 2024-11-03 16:23:53,914 wheel INFO adding 'aioshelly/block_device/__init__.py' 2024-11-03 16:23:53,914 wheel INFO adding 'aioshelly/block_device/coap.py' 2024-11-03 16:23:53,915 wheel INFO adding 'aioshelly/block_device/device.py' 2024-11-03 16:23:53,915 wheel INFO adding 'aioshelly/rpc_device/__init__.py' 2024-11-03 16:23:53,915 wheel INFO adding 'aioshelly/rpc_device/device.py' 2024-11-03 16:23:53,916 wheel INFO adding 'aioshelly/rpc_device/models.py' 2024-11-03 16:23:53,916 wheel INFO adding 'aioshelly/rpc_device/wsrpc.py' 2024-11-03 16:23:53,917 wheel INFO adding 'tests/__init__.py' 2024-11-03 16:23:53,917 wheel INFO adding 'tests/test_common.py' 2024-11-03 16:23:53,917 wheel INFO adding 'tests/test_const.py' 2024-11-03 16:23:53,918 wheel INFO adding 'tests/test_exceptions.py' 2024-11-03 16:23:53,918 wheel INFO adding 'tests/rpc_device/__init__.py' 2024-11-03 16:23:53,918 wheel INFO adding 'tests/rpc_device/conftest.py' 2024-11-03 16:23:53,919 wheel INFO adding 'tests/rpc_device/test_device.py' 2024-11-03 16:23:53,919 wheel INFO adding 'tests/rpc_device/test_wsrpc.py' 2024-11-03 16:23:53,919 wheel INFO adding 'tools/__init__.py' 2024-11-03 16:23:53,920 wheel INFO adding 'tools/example.py' 2024-11-03 16:23:53,920 wheel INFO adding 'tools/fixture.py' 2024-11-03 16:23:53,920 wheel INFO adding 'tools/verify.py' 2024-11-03 16:23:53,921 wheel INFO adding 'tools/common/__init__.py' 2024-11-03 16:23:53,921 wheel INFO adding 'aioshelly-12.0.1.dist-info/LICENSE' 2024-11-03 16:23:53,921 wheel INFO adding 'aioshelly-12.0.1.dist-info/METADATA' 2024-11-03 16:23:53,922 wheel INFO adding 'aioshelly-12.0.1.dist-info/WHEEL' 2024-11-03 16:23:53,922 wheel INFO adding 'aioshelly-12.0.1.dist-info/top_level.txt' 2024-11-03 16:23:53,922 wheel INFO adding 'aioshelly-12.0.1.dist-info/zip-safe' 2024-11-03 16:23:53,922 wheel INFO adding 'aioshelly-12.0.1.dist-info/RECORD' 2024-11-03 16:23:53,923 root INFO removing /var/tmp/portage/dev-python/aioshelly-12.0.1/work/aioshelly-12.0.1-python3_12/build/bdist.linux-x86_64/wheel 2024-11-03 16:23:53,928 gpep517 INFO The backend produced /var/tmp/portage/dev-python/aioshelly-12.0.1/work/aioshelly-12.0.1-python3_12/wheel/aioshelly-12.0.1-py3-none-any.whl * Installing aioshelly-12.0.1-py3-none-any.whl to /var/tmp/portage/dev-python/aioshelly-12.0.1/work/aioshelly-12.0.1-python3_12/install python3.12 -m gpep517 install-wheel --destdir=/var/tmp/portage/dev-python/aioshelly-12.0.1/work/aioshelly-12.0.1-python3_12/install --interpreter=/usr/bin/python3.12 --prefix=/usr --optimize=all /var/tmp/portage/dev-python/aioshelly-12.0.1/work/aioshelly-12.0.1-python3_12/wheel/aioshelly-12.0.1-py3-none-any.whl 2024-11-03 16:23:54,146 gpep517 INFO Installing /var/tmp/portage/dev-python/aioshelly-12.0.1/work/aioshelly-12.0.1-python3_12/wheel/aioshelly-12.0.1-py3-none-any.whl into /var/tmp/portage/dev-python/aioshelly-12.0.1/work/aioshelly-12.0.1-python3_12/install 2024-11-03 16:23:54,356 gpep517 INFO Installation complete >>> Source compiled. * Skipping make test/check due to ebuild restriction. >>> Test phase [disabled because of RESTRICT=test]: dev-python/aioshelly-12.0.1 >>> Install dev-python/aioshelly-12.0.1 into /var/tmp/portage/dev-python/aioshelly-12.0.1/image * python3_12: running distutils-r1_run_phase distutils-r1_python_install * The following unexpected files/directories were found top-level * in the site-packages directory: * * /usr/lib/python3.12/site-packages/tests * * This is most likely a bug in the build system. More information * can be found in the Python Guide: * https://projects.gentoo.org/python/guide/qawarn.html#stray-top-level-files-in-site-packages * ERROR: dev-python/aioshelly-12.0.1::HomeAssistantRepository failed (install phase): * Failing install because of stray top-level files in site-packages * * Call stack: * ebuild.sh, line 136: Called src_install * environment, line 4047: Called distutils-r1_src_install * environment, line 1983: Called _distutils-r1_run_foreach_impl 'distutils-r1_python_install' * environment, line 747: Called python_foreach_impl 'distutils-r1_run_phase' 'distutils-r1_python_install' * environment, line 3653: Called multibuild_foreach_variant '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'distutils-r1_python_install' * environment, line 3149: Called _multibuild_run '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'distutils-r1_python_install' * environment, line 3147: Called _python_multibuild_wrapper 'distutils-r1_run_phase' 'distutils-r1_python_install' * environment, line 1239: Called distutils-r1_run_phase 'distutils-r1_python_install' * environment, line 1946: Called _distutils-r1_post_python_install * environment, line 639: Called die * The specific snippet of code: * die "Failing install because of stray top-level files in site-packages"; * * If you need support, post the output of `emerge --info '=dev-python/aioshelly-12.0.1::HomeAssistantRepository'`, * the complete build log and the output of `emerge -pqv '=dev-python/aioshelly-12.0.1::HomeAssistantRepository'`. * The complete build log is located at '/var/tmp/portage/dev-python/aioshelly-12.0.1/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/dev-python/aioshelly-12.0.1/temp/environment'. * Working directory: '/var/tmp/portage/dev-python/aioshelly-12.0.1/work/aioshelly-12.0.1' * S: '/var/tmp/portage/dev-python/aioshelly-12.0.1/work/aioshelly-12.0.1' * Messages for package dev-python/aioshelly-12.0.1: * The following unexpected files/directories were found top-level * in the site-packages directory: * * /usr/lib/python3.12/site-packages/tests * * This is most likely a bug in the build system. More information * can be found in the Python Guide: * https://projects.gentoo.org/python/guide/qawarn.html#stray-top-level-files-in-site-packages * ERROR: dev-python/aioshelly-12.0.1::HomeAssistantRepository failed (install phase): * Failing install because of stray top-level files in site-packages * * Call stack: * ebuild.sh, line 136: Called src_install * environment, line 4047: Called distutils-r1_src_install * environment, line 1983: Called _distutils-r1_run_foreach_impl 'distutils-r1_python_install' * environment, line 747: Called python_foreach_impl 'distutils-r1_run_phase' 'distutils-r1_python_install' * environment, line 3653: Called multibuild_foreach_variant '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'distutils-r1_python_install' * environment, line 3149: Called _multibuild_run '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'distutils-r1_python_install' * environment, line 3147: Called _python_multibuild_wrapper 'distutils-r1_run_phase' 'distutils-r1_python_install' * environment, line 1239: Called distutils-r1_run_phase 'distutils-r1_python_install' * environment, line 1946: Called _distutils-r1_post_python_install * environment, line 639: Called die * The specific snippet of code: * die "Failing install because of stray top-level files in site-packages"; * * If you need support, post the output of `emerge --info '=dev-python/aioshelly-12.0.1::HomeAssistantRepository'`, * the complete build log and the output of `emerge -pqv '=dev-python/aioshelly-12.0.1::HomeAssistantRepository'`. * The complete build log is located at '/var/tmp/portage/dev-python/aioshelly-12.0.1/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/dev-python/aioshelly-12.0.1/temp/environment'. * Working directory: '/var/tmp/portage/dev-python/aioshelly-12.0.1/work/aioshelly-12.0.1' * S: '/var/tmp/portage/dev-python/aioshelly-12.0.1/work/aioshelly-12.0.1' Emerge failed, commit skipped. ```
bieniu
reviewed
Nov 14, 2024
Co-authored-by: Maciej Bieniek <[email protected]>
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #705 +/- ##
=======================================
Coverage ? 38.60%
=======================================
Files ? 15
Lines ? 1448
Branches ? 0
=======================================
Hits ? 559
Misses ? 889
Partials ? 0 ☔ View full report in Codecov by Sentry. |
thecode
changed the title
Update setup.py, exclude tests
Exclude tests from package build
Nov 17, 2024
thecode
approved these changes
Nov 17, 2024
bieniu
approved these changes
Nov 18, 2024
bieniu
reviewed
Nov 18, 2024
bieniu
requested changes
Nov 18, 2024
Co-authored-by: Maciej Bieniek <[email protected]>
bieniu
approved these changes
Nov 18, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
otherwise it tries to install a package called 'tests' at top level, this is forbidden: