Mock Version: 4.1 Mock Version: 4.1 Mock Version: 4.1 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target noarch --nodeps /builddir/build/SPECS/python-pure-protobuf.spec'], chrootPath='/var/lib/mock/dist-oc9-epol-build-78091-52938/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=86400uid=991gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target noarch --nodeps /builddir/build/SPECS/python-pure-protobuf.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'} and shell False Building target platforms: noarch Building for target noarch Wrote: /builddir/build/SRPMS/python-pure-protobuf-2.0.1-1.oc9.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target noarch --nodeps /builddir/build/SPECS/python-pure-protobuf.spec'], chrootPath='/var/lib/mock/dist-oc9-epol-build-78091-52938/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=86400uid=991gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target noarch --nodeps /builddir/build/SPECS/python-pure-protobuf.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'} and shell False Building target platforms: noarch Building for target noarch Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.pBUOqz + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf protobuf-2.0.1 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/python-pure-protobuf-2.0.1.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd protobuf-2.0.1 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + rm -rf pure-protobuf.egg-info + pushd pure_protobuf ~/build/BUILD/protobuf-2.0.1/pure_protobuf ~/build/BUILD/protobuf-2.0.1 + sed -i 's|/usr/bin/env python3|/usr/bin/python3|' __init__.py dataclasses_.py + popd ~/build/BUILD/protobuf-2.0.1 + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.S8PvL8 + umask 022 + cd /builddir/build/BUILD + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection' + export CFLAGS + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -I/usr/lib/gfortran/modules' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -I/usr/lib/gfortran/modules' + export FCFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-ld -Wl,--build-id=sha1' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd protobuf-2.0.1 + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection' + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-ld -Wl,--build-id=sha1' + /usr/bin/python3 setup.py build '--executable=/usr/bin/python3 -s' running build running build_py creating build creating build/lib creating build/lib/pure_protobuf copying pure_protobuf/__init__.py -> build/lib/pure_protobuf copying pure_protobuf/dataclasses_.py -> build/lib/pure_protobuf copying pure_protobuf/fields.py -> build/lib/pure_protobuf copying pure_protobuf/io_.py -> build/lib/pure_protobuf copying pure_protobuf/enums.py -> build/lib/pure_protobuf creating build/lib/pure_protobuf/types copying pure_protobuf/types/__init__.py -> build/lib/pure_protobuf/types copying pure_protobuf/types/google.py -> build/lib/pure_protobuf/types creating build/lib/pure_protobuf/serializers copying pure_protobuf/serializers/__init__.py -> build/lib/pure_protobuf/serializers copying pure_protobuf/serializers/google.py -> build/lib/pure_protobuf/serializers + RPM_EC=0 ++ jobs -p + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.1Px4HO + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/python-pure-protobuf-2.0.1-1.oc9.noarch '!=' / ']' + rm -rf /builddir/build/BUILDROOT/python-pure-protobuf-2.0.1-1.oc9.noarch ++ dirname /builddir/build/BUILDROOT/python-pure-protobuf-2.0.1-1.oc9.noarch + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/python-pure-protobuf-2.0.1-1.oc9.noarch + cd protobuf-2.0.1 + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection' + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-ld -Wl,--build-id=sha1' + /usr/bin/python3 setup.py install -O1 --skip-build --root /builddir/build/BUILDROOT/python-pure-protobuf-2.0.1-1.oc9.noarch running install /usr/lib/python3.11/site-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. !! ******************************************************************************** Please avoid running ``setup.py`` directly. Instead, use pypa/build, pypa/installer or other standards-based tools. Follow the current Python packaging guidelines when building Python RPM packages. See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html and https://docs.fedoraproject.org/en-US/packaging-guidelines/Python/ for details. ******************************************************************************** !! self.initialize_options() running install_lib creating /builddir/build/BUILDROOT/python-pure-protobuf-2.0.1-1.oc9.noarch/usr creating /builddir/build/BUILDROOT/python-pure-protobuf-2.0.1-1.oc9.noarch/usr/lib creating /builddir/build/BUILDROOT/python-pure-protobuf-2.0.1-1.oc9.noarch/usr/lib/python3.11 creating /builddir/build/BUILDROOT/python-pure-protobuf-2.0.1-1.oc9.noarch/usr/lib/python3.11/site-packages creating /builddir/build/BUILDROOT/python-pure-protobuf-2.0.1-1.oc9.noarch/usr/lib/python3.11/site-packages/pure_protobuf copying build/lib/pure_protobuf/__init__.py -> /builddir/build/BUILDROOT/python-pure-protobuf-2.0.1-1.oc9.noarch/usr/lib/python3.11/site-packages/pure_protobuf creating /builddir/build/BUILDROOT/python-pure-protobuf-2.0.1-1.oc9.noarch/usr/lib/python3.11/site-packages/pure_protobuf/types copying build/lib/pure_protobuf/types/__init__.py -> /builddir/build/BUILDROOT/python-pure-protobuf-2.0.1-1.oc9.noarch/usr/lib/python3.11/site-packages/pure_protobuf/types copying build/lib/pure_protobuf/types/google.py -> /builddir/build/BUILDROOT/python-pure-protobuf-2.0.1-1.oc9.noarch/usr/lib/python3.11/site-packages/pure_protobuf/types copying build/lib/pure_protobuf/dataclasses_.py -> /builddir/build/BUILDROOT/python-pure-protobuf-2.0.1-1.oc9.noarch/usr/lib/python3.11/site-packages/pure_protobuf copying build/lib/pure_protobuf/fields.py -> /builddir/build/BUILDROOT/python-pure-protobuf-2.0.1-1.oc9.noarch/usr/lib/python3.11/site-packages/pure_protobuf creating /builddir/build/BUILDROOT/python-pure-protobuf-2.0.1-1.oc9.noarch/usr/lib/python3.11/site-packages/pure_protobuf/serializers copying build/lib/pure_protobuf/serializers/__init__.py -> /builddir/build/BUILDROOT/python-pure-protobuf-2.0.1-1.oc9.noarch/usr/lib/python3.11/site-packages/pure_protobuf/serializers copying build/lib/pure_protobuf/serializers/google.py -> /builddir/build/BUILDROOT/python-pure-protobuf-2.0.1-1.oc9.noarch/usr/lib/python3.11/site-packages/pure_protobuf/serializers copying build/lib/pure_protobuf/io_.py -> /builddir/build/BUILDROOT/python-pure-protobuf-2.0.1-1.oc9.noarch/usr/lib/python3.11/site-packages/pure_protobuf copying build/lib/pure_protobuf/enums.py -> /builddir/build/BUILDROOT/python-pure-protobuf-2.0.1-1.oc9.noarch/usr/lib/python3.11/site-packages/pure_protobuf byte-compiling /builddir/build/BUILDROOT/python-pure-protobuf-2.0.1-1.oc9.noarch/usr/lib/python3.11/site-packages/pure_protobuf/__init__.py to __init__.cpython-311.pyc byte-compiling /builddir/build/BUILDROOT/python-pure-protobuf-2.0.1-1.oc9.noarch/usr/lib/python3.11/site-packages/pure_protobuf/types/__init__.py to __init__.cpython-311.pyc byte-compiling /builddir/build/BUILDROOT/python-pure-protobuf-2.0.1-1.oc9.noarch/usr/lib/python3.11/site-packages/pure_protobuf/types/google.py to google.cpython-311.pyc byte-compiling /builddir/build/BUILDROOT/python-pure-protobuf-2.0.1-1.oc9.noarch/usr/lib/python3.11/site-packages/pure_protobuf/dataclasses_.py to dataclasses_.cpython-311.pyc byte-compiling /builddir/build/BUILDROOT/python-pure-protobuf-2.0.1-1.oc9.noarch/usr/lib/python3.11/site-packages/pure_protobuf/fields.py to fields.cpython-311.pyc byte-compiling /builddir/build/BUILDROOT/python-pure-protobuf-2.0.1-1.oc9.noarch/usr/lib/python3.11/site-packages/pure_protobuf/serializers/__init__.py to __init__.cpython-311.pyc byte-compiling /builddir/build/BUILDROOT/python-pure-protobuf-2.0.1-1.oc9.noarch/usr/lib/python3.11/site-packages/pure_protobuf/serializers/google.py to google.cpython-311.pyc byte-compiling /builddir/build/BUILDROOT/python-pure-protobuf-2.0.1-1.oc9.noarch/usr/lib/python3.11/site-packages/pure_protobuf/io_.py to io_.cpython-311.pyc byte-compiling /builddir/build/BUILDROOT/python-pure-protobuf-2.0.1-1.oc9.noarch/usr/lib/python3.11/site-packages/pure_protobuf/enums.py to enums.cpython-311.pyc writing byte-compilation script '/tmp/tmpvtha_x_q.py' /usr/bin/python3 /tmp/tmpvtha_x_q.py removing /tmp/tmpvtha_x_q.py running install_egg_info running egg_info creating pure_protobuf.egg-info writing pure_protobuf.egg-info/PKG-INFO writing dependency_links to pure_protobuf.egg-info/dependency_links.txt writing requirements to pure_protobuf.egg-info/requires.txt writing top-level names to pure_protobuf.egg-info/top_level.txt writing manifest file 'pure_protobuf.egg-info/SOURCES.txt' reading manifest file 'pure_protobuf.egg-info/SOURCES.txt' adding license file 'LICENSE' writing manifest file 'pure_protobuf.egg-info/SOURCES.txt' Copying pure_protobuf.egg-info to /builddir/build/BUILDROOT/python-pure-protobuf-2.0.1-1.oc9.noarch/usr/lib/python3.11/site-packages/pure_protobuf-2.0.1-py3.11.egg-info running install_scripts + rm -rfv /builddir/build/BUILDROOT/python-pure-protobuf-2.0.1-1.oc9.noarch/usr/bin/__pycache__ + pushd /builddir/build/BUILDROOT/python-pure-protobuf-2.0.1-1.oc9.noarch/usr/lib/python3.11/site-packages/pure_protobuf/ ~/build/BUILDROOT/python-pure-protobuf-2.0.1-1.oc9.noarch/usr/lib/python3.11/site-packages/pure_protobuf ~/build/BUILD/protobuf-2.0.1 + chmod +x __init__.py dataclasses_.py + popd ~/build/BUILD/protobuf-2.0.1 + /usr/bin/find-debuginfo -j8 --strict-build-id -m -i --build-id-seed 2.0.1-1.oc9 --unique-debug-suffix -2.0.1-1.oc9.noarch --unique-debug-src-base python-pure-protobuf-2.0.1-1.oc9.noarch -S debugsourcefiles.list /builddir/build/BUILD/protobuf-2.0.1 find: 'debug': No such file or directory + /usr/lib/rpm/check-buildroot + /usr/lib/rpm/OpenCloudOS/brp-ldconfig + /usr/lib/rpm/brp-compress + /usr/lib/rpm/OpenCloudOS/brp-strip-lto /usr/bin/strip + /usr/lib/rpm/brp-strip-static-archive /usr/bin/strip + /usr/lib/rpm/check-rpaths + /usr/lib/rpm/OpenCloudOS/brp-mangle-shebangs + /usr/lib/rpm/OpenCloudOS/brp-python-bytecompile '' 1 0 Bytecompiling .py files below /builddir/build/BUILDROOT/python-pure-protobuf-2.0.1-1.oc9.noarch/usr/lib/python3.11 using python3.11 + /usr/lib/rpm/OpenCloudOS/brp-python-hardlink Executing(%check): /bin/sh -e /var/tmp/rpm-tmp.PbAusk + umask 022 + cd /builddir/build/BUILD + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection' + export CFLAGS + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -I/usr/lib/gfortran/modules' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -I/usr/lib/gfortran/modules' + export FCFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-ld -Wl,--build-id=sha1' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd protobuf-2.0.1 + /usr/bin/python3 -m pytest -v ============================= test session starts ============================== platform linux -- Python 3.11.6, pytest-7.4.0, pluggy-1.3.0 -- /usr/bin/python3 cachedir: .pytest_cache rootdir: /builddir/build/BUILD/protobuf-2.0.1 collecting ... collected 75 items tests/test_dataclasses.py::test_make_field[1-a-uint32-150-\x08\x96\x01] PASSED [ 1%] tests/test_dataclasses.py::test_make_field[1-a-List-value1-\n\x04\x01\x96\x01\x02] PASSED [ 2%] tests/test_dataclasses.py::test_make_field[1-a-List-value2-\n\x01B\n\x01C] PASSED [ 4%] tests/test_dataclasses.py::test_make_field[1-a-Optional-None-] PASSED [ 5%] tests/test_dataclasses.py::test_make_field[1-a-ByteString-Testing-\n\x07Testing] PASSED [ 6%] tests/test_dataclasses.py::test_make_field_value_error[1-a-uint32-None] PASSED [ 8%] tests/test_dataclasses.py::test_make_field_type_error[Tuple] PASSED [ 9%] tests/test_fields.py::test_non_repeated_field[testing-\n\x07testing] PASSED [ 10%] tests/test_fields.py::test_optional_non_repeated_field[1-\x08\x01] PASSED [ 12%] tests/test_fields.py::test_optional_non_repeated_field[None-] PASSED [ 13%] tests/test_fields.py::test_non_repeated_field_value_error[None] PASSED [ 14%] tests/test_fields.py::test_packed_repeated_field[value0-\n\x00] PASSED [ 16%] tests/test_fields.py::test_packed_repeated_field[value1-\n\x01\x03] PASSED [ 17%] tests/test_fields.py::test_packed_repeated_field[value2-\n\x02\x04\x05] PASSED [ 18%] tests/test_fields.py::test_unpacked_repeated_field_dumps[serializer0-value0-] PASSED [ 20%] tests/test_fields.py::test_unpacked_repeated_field_dumps[serializer1-value1-\x08\x03] PASSED [ 21%] tests/test_fields.py::test_unpacked_repeated_field_dumps[serializer2-value2-\x08\x04\x08\x05] PASSED [ 22%] tests/test_fields.py::test_unpacked_repeated_field_dumps[serializer3-value3-\n\x04None] PASSED [ 24%] tests/test_fields.py::test_unpacked_repeated_field_load[serializer0-value0-\x03] PASSED [ 25%] tests/test_fields.py::test_unpacked_repeated_field_load[serializer1-value1-\x04None] PASSED [ 26%] tests/test_readme.py::test_code_block[\nfrom dataclasses import dataclass\n\nfrom pure_protobuf.dataclasses_ import field, message\nfrom pure_protobuf.types import int32\n\n\n@message\n@dataclass\nclass SearchRequest:\n query: str = field(1, default='')\n page_number: int32 = field(2, default=int32(0))\n result_per_page: int32 = field(3, default=int32(0))\n \n\nassert SearchRequest(\n query='hello',\n page_number=int32(1),\n result_per_page=int32(10),\n).dumps() == b'\\x0A\\x05hello\\x10\\x01\\x18\\x0A'\n] PASSED [ 28%] tests/test_readme.py::test_code_block[\nfrom dataclasses import dataclass\nfrom typing import List\n\nfrom pure_protobuf.dataclasses_ import field, message\nfrom pure_protobuf.types import int32\n\n\n@message\n@dataclass\nclass Message:\n foo: List[int32] = field(1, default_factory=list)\n] PASSED [ 29%] tests/test_readme.py::test_code_block[\nfrom dataclasses import dataclass\nfrom typing import Optional\n\nfrom pure_protobuf.dataclasses_ import field, message\nfrom pure_protobuf.types import int32\n\n\n@message\n@dataclass\nclass Foo:\n bar: int32 = field(1, default=42)\n qux: Optional[int32] = field(2, default=None)\n\n\nassert Foo().dumps() == b'\\x08\\x2A'\nassert Foo.loads(b'') == Foo(bar=42)\n] PASSED [ 30%] tests/test_readme.py::test_code_block[\nfrom dataclasses import dataclass\nfrom typing import Optional\n\nfrom pure_protobuf.dataclasses_ import optional_field, message\nfrom pure_protobuf.types import int32\n\n\n@message\n@dataclass\nclass Foo:\n qux: Optional[int32] = optional_field(2)\n\n\nassert Foo().dumps() == b''\nassert Foo.loads(b'') == Foo(qux=None)\n] PASSED [ 32%] tests/test_readme.py::test_code_block[\nfrom dataclasses import dataclass\nfrom enum import IntEnum\n\nfrom pure_protobuf.dataclasses_ import field, message\n\n\nclass TestEnum(IntEnum):\n BAR = 1\n\n\n@message\n@dataclass\nclass Test:\n foo: TestEnum = field(1)\n\n\nassert Test(foo=TestEnum.BAR).dumps() == b'\\x08\\x01'\nassert Test.loads(b'\\x08\\x01') == Test(foo=TestEnum.BAR)\n] PASSED [ 33%] tests/test_readme.py::test_code_block[\nfrom dataclasses import dataclass\n\nfrom pure_protobuf.dataclasses_ import field, message\nfrom pure_protobuf.types import int32\n\n\n@message\n@dataclass\nclass Test1:\n a: int32 = field(1, default=0)\n\n\n@message\n@dataclass\nclass Test3:\n c: Test1 = field(3, default_factory=Test1)\n\n\nassert Test3(c=Test1(a=int32(150))).dumps() == b'\\x1A\\x03\\x08\\x96\\x01'\n] PASSED [ 34%] tests/test_readme.py::test_code_block[\nfrom dataclasses import dataclass\nfrom datetime import datetime\nfrom typing import Optional\n\nfrom pure_protobuf.dataclasses_ import field, message\n\n\n@message\n@dataclass\nclass Test:\n timestamp: Optional[datetime] = field(1, default=None)\n] PASSED [ 36%] tests/test_readme.py::test_code_block[\nfrom dataclasses import dataclass\nfrom typing import Any, Optional\n\nfrom pure_protobuf.dataclasses_ import field, message\nfrom pure_protobuf.types.google import Timestamp\n\n\n@message\n@dataclass\nclass Message:\n value: Optional[Any] = field(1)\n\n\n# Here `Timestamp` is used just as an example, in principle any importable user type works.\nmessage = Message(value=Timestamp(seconds=42))\nassert Message.loads(message.dumps()) == message\n] PASSED [ 37%] tests/test_serializers.py::test_serializer_value_error[SignedVarintSerializer-hello] PASSED [ 38%] tests/test_serializers.py::test_serializer_value_error[BytesSerializer-42] PASSED [ 40%] tests/test_serializers.py::test_serializer_value_error[StringSerializer-42] PASSED [ 41%] tests/test_serializers.py::test_serializer_value_error[UnsignedInt32Serializer-4294967296] PASSED [ 42%] tests/test_serializers.py::test_serializer_value_error[UnsignedInt64Serializer--1] PASSED [ 44%] tests/test_serializers.py::test_serializer_value_error[SignedInt32Serializer-2147483648] PASSED [ 45%] tests/test_serializers.py::test_serializer_value_error[SignedInt64Serializer-9223372036854775808] PASSED [ 46%] tests/test_serializers.py::test_serializer_value_error[BooleanSerializer-42] PASSED [ 48%] tests/test_serializers.py::test_serializer_value_error[SignedFixed32Serializer-hello] PASSED [ 49%] tests/test_serializers.py::test_serializer_value_error[UnsignedFixed32Serializer-hello] PASSED [ 50%] tests/test_serializers.py::test_serializer_value_error[SignedFixed64Serializer-hello] PASSED [ 52%] tests/test_serializers.py::test_serializer_value_error[UnsignedFixed64Serializer-hello] PASSED [ 53%] tests/test_serializers.py::test_serializer_value_error[FloatSerializer-hello] PASSED [ 54%] tests/test_serializers.py::test_serializer_value_error[DoubleSerializer-hello] PASSED [ 56%] tests/test_serializers.py::test_unsigned_varint_serializer[0-\x00] PASSED [ 57%] tests/test_serializers.py::test_unsigned_varint_serializer[3-\x03] PASSED [ 58%] tests/test_serializers.py::test_unsigned_varint_serializer[270-\x8e\x02] PASSED [ 60%] tests/test_serializers.py::test_unsigned_varint_serializer[86942-\x9e\xa7\x05] PASSED [ 61%] tests/test_serializers.py::test_signed_varint_serializer[0-\x00] PASSED [ 62%] tests/test_serializers.py::test_signed_varint_serializer[-1-\x01] PASSED [ 64%] tests/test_serializers.py::test_signed_varint_serializer[1-\x02] PASSED [ 65%] tests/test_serializers.py::test_signed_varint_serializer[-2-\x03] PASSED [ 66%] tests/test_serializers.py::test_bytes_serializer[testing-\x07testing] PASSED [ 68%] tests/test_serializers.py::test_bytes_serializer[value1-\x07testing] PASSED [ 69%] tests/test_serializers.py::test_bytes_serializer[value2-\x07testing] PASSED [ 70%] tests/test_serializers.py::test_string_serializer[\u041f\u0440\u0438\u0432\u0435\u0442-\x0c\xd0\x9f\xd1\x80\xd0\xb8\xd0\xb2\xd0\xb5\xd1\x82] PASSED [ 72%] tests/test_serializers.py::test_boolean_serializer[True-\x01] PASSED [ 73%] tests/test_serializers.py::test_boolean_serializer[False-\x00] PASSED [ 74%] tests/test_serializers.py::test_int_enum_serializer[0-\x00] PASSED [ 76%] tests/test_serializers.py::test_int_enum_serializer[1-\x01] PASSED [ 77%] tests/test_serializers.py::test_int_enum_serializer[2-\x02] PASSED [ 78%] tests/test_serializers.py::test_int_enum_serializer[5-\x05] PASSED [ 80%] tests/test_serializers.py::test_packing_serializer[2-\x01\x02] PASSED [ 81%] tests/test_serializers.py::test_packing_serializer[270-\x02\x8e\x02] PASSED [ 82%] tests/test_serializers.py::test_class_1 PASSED [ 84%] tests/test_serializers.py::test_class_1_unknown_field PASSED [ 85%] tests/test_serializers.py::test_class_2 PASSED [ 86%] tests/test_serializers.py::test_class_3 PASSED [ 88%] tests/test_serializers.py::test_merge_repeated_embedded_message PASSED [ 89%] tests/test_serializers.py::test_unpacked_as_packed PASSED [ 90%] tests/test_serializers.py::test_enum PASSED [ 92%] tests/types/test_google.py::test_type_url[Any_-type.googleapis.com/pure_protobuf.types.google.Any_] PASSED [ 93%] tests/types/test_google.py::test_type_url[Duration-type.googleapis.com/pure_protobuf.types.google.Duration] PASSED [ 94%] tests/types/test_google.py::test_type_url[Timestamp-type.googleapis.com/pure_protobuf.types.google.Timestamp] PASSED [ 96%] tests/types/test_google.py::test_datetime PASSED [ 97%] tests/types/test_google.py::test_timedelta PASSED [ 98%] tests/types/test_google.py::test_any PASSED [100%] ============================== 75 passed in 0.13s ============================== + RPM_EC=0 ++ jobs -p + exit 0 Processing files: python3-pure-protobuf-2.0.1-1.oc9.noarch Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.HswHKo + umask 022 + cd /builddir/build/BUILD + cd protobuf-2.0.1 + DOCDIR=/builddir/build/BUILDROOT/python-pure-protobuf-2.0.1-1.oc9.noarch/usr/share/doc/python3-pure-protobuf + export LC_ALL=C + LC_ALL=C + export DOCDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/python-pure-protobuf-2.0.1-1.oc9.noarch/usr/share/doc/python3-pure-protobuf + cp -pr README.md /builddir/build/BUILDROOT/python-pure-protobuf-2.0.1-1.oc9.noarch/usr/share/doc/python3-pure-protobuf + RPM_EC=0 ++ jobs -p + exit 0 Executing(%license): /bin/sh -e /var/tmp/rpm-tmp.b7TLUi + umask 022 + cd /builddir/build/BUILD + cd protobuf-2.0.1 + LICENSEDIR=/builddir/build/BUILDROOT/python-pure-protobuf-2.0.1-1.oc9.noarch/usr/share/licenses/python3-pure-protobuf + export LC_ALL=C + LC_ALL=C + export LICENSEDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/python-pure-protobuf-2.0.1-1.oc9.noarch/usr/share/licenses/python3-pure-protobuf + cp -pr LICENSE /builddir/build/BUILDROOT/python-pure-protobuf-2.0.1-1.oc9.noarch/usr/share/licenses/python3-pure-protobuf + RPM_EC=0 ++ jobs -p + exit 0 Provides: python-pure-protobuf = 2.0.1-1.oc9 python3-pure-protobuf = 2.0.1-1.oc9 python3.11-pure-protobuf = 2.0.1-1.oc9 python3.11dist(pure-protobuf) = 2.0.1 python3dist(pure-protobuf) = 2.0.1 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PartialHardlinkSets) <= 4.0.4-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires: /usr/bin/python3 python(abi) = 3.11 Obsoletes: python3.11-pure-protobuf < 2.0.1-1.oc9 Checking for unpackaged file(s): /usr/lib/rpm/check-files /builddir/build/BUILDROOT/python-pure-protobuf-2.0.1-1.oc9.noarch Wrote: /builddir/build/RPMS/python3-pure-protobuf-2.0.1-1.oc9.noarch.rpm Child return code was: 0