Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-pycapnp for openSUSE:Factory checked in at 2023-08-14 22:35:30 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-pycapnp (Old) and /work/SRC/openSUSE:Factory/.python-pycapnp.new.11712 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-pycapnp" Mon Aug 14 22:35:30 2023 rev:5 rq:1103726 version:1.3.0 Changes: -------- --- /work/SRC/openSUSE:Factory/python-pycapnp/python-pycapnp.changes 2022-12-08 16:51:56.983717773 +0100 +++ /work/SRC/openSUSE:Factory/.python-pycapnp.new.11712/python-pycapnp.changes 2023-08-14 22:35:37.364363874 +0200 @@ -1,0 +2,8 @@ +Sun Aug 13 19:51:17 UTC 2023 - Dirk Müller <[email protected]> + +- update to 1.3.0: + * Update to bundled capnproto-0.10.3 + * Add Python 3.11 + * Prevent race condition in example code (#305) + +------------------------------------------------------------------- Old: ---- pycapnp-1.2.2.tar.gz New: ---- pycapnp-1.3.0.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-pycapnp.spec ++++++ --- /var/tmp/diff_new_pack.O0jnK7/_old 2023-08-14 22:35:38.796372979 +0200 +++ /var/tmp/diff_new_pack.O0jnK7/_new 2023-08-14 22:35:38.804373030 +0200 @@ -1,7 +1,7 @@ # # spec file for package python-pycapnp # -# Copyright (c) 2022 SUSE LLC +# Copyright (c) 2023 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,17 +16,17 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} -%define skip_python2 1 +%{?sle15_python_module_pythons} Name: python-pycapnp -Version: 1.2.2 +Version: 1.3.0 Release: 0 Summary: Cython wrapping of the C++ Cap'n Proto library License: BSD-2-Clause URL: https://github.com/capnproto/pycapnp Source: https://github.com/capnproto/pycapnp/archive/refs/tags/v%{version}.tar.gz#/pycapnp-%{version}.tar.gz -BuildRequires: %{python_module Cython} +BuildRequires: %{python_module Cython with %python-Cython < 3} BuildRequires: %{python_module Jinja2} +BuildRequires: %{python_module base >= 3.7} BuildRequires: %{python_module pkgconfig} BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} ++++++ pycapnp-1.2.2.tar.gz -> pycapnp-1.3.0.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pycapnp-1.2.2/.github/workflows/manylinux2010.yml new/pycapnp-1.3.0/.github/workflows/manylinux2010.yml --- old/pycapnp-1.2.2/.github/workflows/manylinux2010.yml 2022-12-02 06:58:30.000000000 +0100 +++ new/pycapnp-1.3.0/.github/workflows/manylinux2010.yml 1970-01-01 01:00:00.000000000 +0100 @@ -1,77 +0,0 @@ -name: manylinux2010 - -on: [push, pull_request] - -jobs: - manylinux2010: - - runs-on: ubuntu-latest - container: ${{ matrix.container-image }} - strategy: - max-parallel: 99 - matrix: - python-version: ['cp37-cp37m', 'cp38-cp38', 'cp39-cp39', 'cp310-cp310'] - container-image: ['quay.io/pypa/manylinux2010_x86_64', 'quay.io/pypa/manylinux2010_i686'] - - steps: - # NOTE: Cannot use checkout@v2 as it requires a newer version glibc, but that's not possible with manylinux without a secondary sysroot - - uses: actions/checkout@v1 - # capnproto build requires cmake 3+, CentOS 6 (manylinux2010) defaults to cmake 2.8 - - name: Install dependencies - run: | - yum install -y cmake3 ninja-build - ln -sf /usr/bin/cmake3 /usr/local/bin/cmake - ln -s /usr/bin/ninja-build /usr/local/bin/ninja - /opt/python/${{ matrix.python-version }}/bin/python -m pip install -r requirements.txt - /opt/python/${{ matrix.python-version }}/bin/python -m pip install auditwheel - - name: Build pycapnp and install - env: - LDFLAGS: -Wl,--no-as-needed -lrt - run: | - /opt/python/${{ matrix.python-version }}/bin/python setup.py build - - name: Packaging - run: | - /opt/python/${{ matrix.python-version }}/bin/python setup.py bdist_wheel - /opt/python/${{ matrix.python-version }}/bin/python setup.py sdist - /opt/python/${{ matrix.python-version }}/bin/auditwheel repair dist/*linux_*.whl - - uses: actions/[email protected] - with: - name: manylinux2010_dist - path: wheelhouse - - manylinux2014: - name: "manylinux2014( ${{ matrix.python-version }}, quay.io/pypa/manylinux2014_aarch64)" - runs-on: ubuntu-latest - strategy: - max-parallel: 99 - matrix: - python-version: ['cp37-cp37m', 'cp38-cp38', 'cp39-cp39', 'cp310-cp310'] - fail-fast: false - env: - py: /opt/python/${{ matrix.python-version }}/bin/python - img: quay.io/pypa/manylinux2014_aarch64 - steps: - - uses: actions/checkout@v1 - - name: Set up QEMU - id: qemu - uses: docker/setup-qemu-action@v1 - - name: Building pycapnp and packaging - run: | - docker run --rm -v ${{ github.workspace }}:/ws:rw --workdir=/ws \ - ${{ env.img }} \ - bash -exc '${{ env.py }} -m venv .env && \ - source .env/bin/activate && \ - echo "Install Dependencies" && \ - python -m pip install -r requirements.txt && \ - python -m pip install auditwheel && \ - echo "Build pycapnp and install" && \ - python setup.py build && \ - echo "Packaging" && \ - python setup.py bdist_wheel && \ - python setup.py sdist && \ - auditwheel repair dist/*linux_*.whl && \ - deactivate' - - uses: actions/[email protected] - with: - name: manylinux2014_dist - path: wheelhouse diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pycapnp-1.2.2/.github/workflows/manylinux2014.yml new/pycapnp-1.3.0/.github/workflows/manylinux2014.yml --- old/pycapnp-1.2.2/.github/workflows/manylinux2014.yml 1970-01-01 01:00:00.000000000 +0100 +++ new/pycapnp-1.3.0/.github/workflows/manylinux2014.yml 2023-01-27 01:43:40.000000000 +0100 @@ -0,0 +1,41 @@ +name: manylinux2014 + +on: [push, pull_request] + +jobs: + manylinux2014: + name: "manylinux2014( ${{ matrix.python-version }}, ${{ matrix.container-image }})" + runs-on: ubuntu-latest + strategy: + max-parallel: 99 + matrix: + python-version: ['cp37-cp37m', 'cp38-cp38', 'cp39-cp39', 'cp310-cp310', 'cp311-cp311'] + container-image: ['quay.io/pypa/manylinux2014_aarch64', 'quay.io/pypa/manylinux2014_x86_64', 'quay.io/pypa/manylinux2014_i686'] + fail-fast: false + env: + py: /opt/python/${{ matrix.python-version }}/bin/python + steps: + - uses: actions/checkout@v1 + - name: Set up QEMU + id: qemu + uses: docker/setup-qemu-action@v1 + - name: Building pycapnp and packaging + run: | + docker run --rm -v ${{ github.workspace }}:/ws:rw --workdir=/ws \ + ${{ matrix.container-image }} \ + bash -exc '${{ env.py }} -m venv .env && \ + source .env/bin/activate && \ + echo "Install Dependencies" && \ + python -m pip install -r requirements.txt && \ + python -m pip install auditwheel && \ + echo "Build pycapnp and install" && \ + python setup.py build && \ + echo "Packaging" && \ + python setup.py bdist_wheel && \ + python setup.py sdist && \ + auditwheel repair dist/*linux_*.whl && \ + deactivate' + - uses: actions/[email protected] + with: + name: manylinux2014_dist + path: wheelhouse diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pycapnp-1.2.2/.github/workflows/packagingtest.yml new/pycapnp-1.3.0/.github/workflows/packagingtest.yml --- old/pycapnp-1.2.2/.github/workflows/packagingtest.yml 2022-12-02 06:58:30.000000000 +0100 +++ new/pycapnp-1.3.0/.github/workflows/packagingtest.yml 2023-01-27 01:43:40.000000000 +0100 @@ -12,7 +12,7 @@ matrix: # Some asyncio commands require 3.7+ # It may be possible to use 3.6 and maybe 3.5; however, this will take some patching to get examples to work - python-version: [3.7, 3.8, 3.9, "3.10"] + python-version: [3.7, 3.8, 3.9, "3.10", "3.11"] os: [ubuntu-latest, macOS-latest, windows-2019] arch: ["x86_64"] include: @@ -28,6 +28,9 @@ - python-version: "3.10" os: macOS-latest arch: arm64 + - python-version: "3.11" + os: macOS-latest + arch: arm64 steps: - uses: actions/checkout@v2 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pycapnp-1.2.2/CHANGELOG.md new/pycapnp-1.3.0/CHANGELOG.md --- old/pycapnp-1.2.2/CHANGELOG.md 2022-12-02 06:58:30.000000000 +0100 +++ new/pycapnp-1.3.0/CHANGELOG.md 2023-01-27 01:43:40.000000000 +0100 @@ -1,3 +1,13 @@ +## v1.3.0 (2023-01-26) +- Update to bundled capnproto-0.10.3 +- Add Python 3.11 to Github Actions builds (#306) +- Prevent race condition in example code (#305) + +## v1.2.2 (2022-12-01) +- Update bundled bundled capnp to 0.8.1 due to CVE-2022-46149 +- Bundle lib/capnp_api.h and helpers/capabilityHelper.cpp (#301) +- Avoid reading random values for reader options from dangling reference (#300) + ## v1.2.1 (2022-09-11) - Fix packaging for Apple Silicon diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pycapnp-1.2.2/buildutils/bundle.py new/pycapnp-1.3.0/buildutils/bundle.py --- old/pycapnp-1.2.2/buildutils/bundle.py 2022-12-02 06:58:30.000000000 +0100 +++ new/pycapnp-1.3.0/buildutils/bundle.py 2023-01-27 01:43:40.000000000 +0100 @@ -26,7 +26,7 @@ # -bundled_version = (0, 8, 1) +bundled_version = (0, 10, 3) libcapnp_name = "capnproto-c++-%i.%i.%i.tar.gz" % (bundled_version) libcapnp_url = "https://capnproto.org/" + libcapnp_name diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pycapnp-1.2.2/docs/quickstart.rst new/pycapnp-1.3.0/docs/quickstart.rst --- old/pycapnp-1.2.2/docs/quickstart.rst 2022-12-02 06:58:30.000000000 +0100 +++ new/pycapnp-1.3.0/docs/quickstart.rst 2023-01-27 01:43:40.000000000 +0100 @@ -550,35 +550,21 @@ class Server: async def myreader(self): - while self.retry: + while self.retry and not self.reader.at_eof(): try: - # Must be a wait_for so we don't block on read() - data = await asyncio.wait_for( - self.reader.read(4096), - timeout=0.1 - ) - except asyncio.TimeoutError: - print("myreader timeout.") - continue + data = await self.reader.read(4096) + await self.server.write(data) except Exception as err: print("Unknown myreader err: %s", err) return False - await self.server.write(data) print("myreader done.") return True async def mywriter(self): while self.retry: try: - # Must be a wait_for so we don't block on read() - data = await asyncio.wait_for( - self.server.read(4096), - timeout=0.1 - ) + data = await self.server.read(4096) self.writer.write(data.tobytes()) - except asyncio.TimeoutError: - print("mywriter timeout.") - continue except Exception as err: print("Unknown mywriter err: %s", err) return False diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pycapnp-1.2.2/setup.py new/pycapnp-1.3.0/setup.py --- old/pycapnp-1.2.2/setup.py 2022-12-02 06:58:30.000000000 +0100 +++ new/pycapnp-1.3.0/setup.py 2023-01-27 01:43:40.000000000 +0100 @@ -21,8 +21,8 @@ _this_dir = os.path.dirname(__file__) MAJOR = 1 -MINOR = 2 -MICRO = 2 +MINOR = 3 +MICRO = 0 TAG = "" VERSION = "%d.%d.%d%s" % (MAJOR, MINOR, MICRO, TAG)
