Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-Twisted for openSUSE:Factory checked in at 2022-06-24 08:45:13 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-Twisted (Old) and /work/SRC/openSUSE:Factory/.python-Twisted.new.1548 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-Twisted" Fri Jun 24 08:45:13 2022 rev:56 rq:984316 version:22.4.0 Changes: -------- --- /work/SRC/openSUSE:Factory/python-Twisted/python-Twisted.changes 2022-06-07 11:45:26.507255890 +0200 +++ /work/SRC/openSUSE:Factory/.python-Twisted.new.1548/python-Twisted.changes 2022-06-24 08:45:27.707149342 +0200 @@ -1,0 +2,50 @@ +Tue Jun 21 18:08:20 UTC 2022 - Ben Greiner <c...@bnavigator.de> + +- Update to 22.4.0 + * twisted.python.failure.Failure tracebacks now capture module + information, improving compatibility with the Raven Sentry + client. (#7796) + * twisted.python.failure.Failure objects are now compatible with + dis.distb, improving compatibility with post-mortem debuggers. + (#9599) + * twisted.internet.interfaces.IReactorSSL.listenSSL now has + correct type annotations. (#10274) + * twisted.internet.test.test_glibbase.GlibReactorBaseTests now + passes. (#10317) + * Conch + - twisted.conch.ssh now supports using RSA keys with SHA-2 + signatures (RFC 8332) when acting as a server. The + rsa-sha2-512 and rsa-sha2-256 public key signature algorithms + are automatically preferred over ssh-rsa if the client + advertises support for them; the actual public keys do not + need to change. (#9765) + - twisted.conch.ssh now has an alternative Ed25519 + implementation using PyNaCl, in order to support platforms + that lack OpenSSL >= 1.1.1b. The new "conch_nacl" extra has + the necessary dependency. (#10208) + * Web + - Twisted is now compatible with h2 4.x.x. (#10182) + - twisted.web.http had several several defects in HTTP request + parsing that could permit HTTP request smuggling. It now + disallows signed Content-Length headers, forbids illegal + characters in chunked extensions, forbids a ``0x`` prefix to + chunk lengths, and only strips spaces and horizontal tab + characters from header values. These changes address + CVE-2022-24801 and GHSA-c2jg-hw38-jrqq. (#10323) + * Mail + - twisted.mail.pop3.APOPCredentials is now correctly marked as + implementing twisted.cred.credentials.IUsernamHashedPassword, + rather than IUsernamePassword. (#10305) + * Trial + - `trial --until-failure --jobs=N` now reports the number of + each test pass as it begins. (#10312) + - twisted.trial.unittest.TestCase now discards cleanup + functions after running them. Notably, this prevents them + from being run an ever growing number of times with trial -u + .... (#10320) +- Drop CVE-2022-24801-http-1.1-leniency.patch fixed upstream +- Refresh remove-dependency-version-upper-bounds.patch +- Move extra_requires optional dependencies to meta sub packages +- Create :test multibuild flavor + +------------------------------------------------------------------- Old: ---- CVE-2022-24801-http-1.1-leniency.patch Twisted-22.2.0.tar.gz python-Twisted-rpmlintrc New: ---- Twisted-22.4.0.tar.gz _multibuild ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-Twisted.spec ++++++ --- /var/tmp/diff_new_pack.tUMAbx/_old 2022-06-24 08:45:28.479150206 +0200 +++ /var/tmp/diff_new_pack.tUMAbx/_new 2022-06-24 08:45:28.483150211 +0200 @@ -1,5 +1,5 @@ # -# spec file for package python-Twisted +# spec file # # Copyright (c) 2022 SUSE LLC # @@ -16,16 +16,24 @@ # +%global flavor @BUILD_FLAVOR@%{nil} +%if "%{flavor}" == "test" +%bcond_without test +%define psuffix -test +%else +%bcond_with test +%define psuffix %{nil} +%endif + %{?!python_module:%define python_module() python3-%{**}} %define skip_python2 1 -Name: python-Twisted -Version: 22.2.0 +Name: python-Twisted%{psuffix} +Version: 22.4.0 Release: 0 Summary: An asynchronous networking framework written in Python License: MIT URL: https://twistedmatrix.com/ Source0: https://files.pythonhosted.org/packages/source/T/Twisted/Twisted-%{version}.tar.gz -Source99: python-Twisted-rpmlintrc Patch0: skip_MultiCast.patch # PATCH-FIX-UPSTREAM no-test_successResultOfWithFailureHasTraceback.patch https://twistedmatrix.com/trac/ticket/9665 mc...@suse.com # skip over the test test_successResultOfWithFailureHasTraceback @@ -41,53 +49,31 @@ Patch6: remove-dependency-version-upper-bounds.patch # PATCH-FIX-OPENSUSE Skip test that is broken with Expat >= 2.4.5 Patch7: skip-namespacewithwhitespace.patch -# PATCH-FIX-UPSTREAM Address CVE-2022-24801, can be dropped next upstream release -Patch8: CVE-2022-24801-http-1.1-leniency.patch -BuildRequires: %{python_module Automat >= 0.8.0} -BuildRequires: %{python_module PyHamcrest >= 1.9.0} -BuildRequires: %{python_module appdirs >= 1.4.0} -BuildRequires: %{python_module attrs >= 19.2.0} -BuildRequires: %{python_module bcrypt >= 3.0.0} -BuildRequires: %{python_module constantly >= 15.1} -BuildRequires: %{python_module cryptography >= 2.6} -BuildRequires: %{python_module devel} -BuildRequires: %{python_module h2 >= 3.0} -BuildRequires: %{python_module hyperlink >= 17.1.1} -BuildRequires: %{python_module idna >= 2.4} BuildRequires: %{python_module incremental >= 21.3.0} -BuildRequires: %{python_module pyOpenSSL >= 16.0.0} -BuildRequires: %{python_module pyasn1} -BuildRequires: %{python_module pyserial >= 3.0} -BuildRequires: %{python_module pyserial} -BuildRequires: %{python_module pytest} -BuildRequires: %{python_module python-subunit} -BuildRequires: %{python_module pytz} -BuildRequires: %{python_module service_identity >= 18.1.0} BuildRequires: %{python_module setuptools} -BuildRequires: %{python_module typing_extensions >= 3.6.5} -BuildRequires: %{python_module zope.interface >= 4.4.2} BuildRequires: fdupes BuildRequires: git-core BuildRequires: python-rpm-macros +Requires(post): update-alternatives +Requires(postun):update-alternatives +# SECTION install requires Requires: python-Automat >= 0.8.0 -Requires: python-PyHamcrest >= 1.9.0 -Requires: python-appdirs >= 1.4.0 Requires: python-attrs >= 19.2.0 -Requires: python-bcrypt >= 3.0.0 Requires: python-constantly >= 15.1 -Requires: python-cryptography >= 2.6 -Requires: python-h2 >= 3.0 Requires: python-hyperlink >= 17.1.1 -Requires: python-idna >= 2.4 Requires: python-incremental >= 21.3.0 -Requires: python-pyOpenSSL >= 16.0.0 -Requires: python-pyasn1 -Requires: python-pyserial >= 3.0 -Requires: python-service_identity >= 18.1.0 Requires: python-typing_extensions >= 3.6.5 Requires: python-zope.interface >= 4.4.2 -Requires(post): update-alternatives -Requires(postun):update-alternatives +# /SECTION +# twisted[tls] is so common, let's keep it tied to the main package for the time being. +Requires: python-Twisted-tls = %{version} +%if %{with test} +BuildRequires: %{python_module Twisted-all_non_platform = %{version}} +BuildRequires: %{python_module Twisted-conch_nacl = %{version}} +# declared nowhere but required to pass 8 tests with timezone checks +BuildRequires: %{python_module pytz} +%endif +BuildArch: noarch %python_subpackages %description @@ -103,13 +89,105 @@ This package contains the documentation for python-Twisted +%package tls +Summary: TLS support for Twisted +Requires: python-Twisted = %{version} +Requires: python-idna >= 2.4 +Requires: python-pyOpenSSL >= 16.0.0 +Requires: python-service_identity >= 18.1.0 + +%description tls +Twisted is an extensible framework for Python programming, with special focus +on event-based network programming and multiprotocol integration. + +This metapackage is for the optional feature tls + +%package conch +Summary: Conch for Twisted +Requires: python-Twisted = %{version} +Requires: python-appdirs >= 1.4.0 +Requires: python-bcrypt >= 3.0.0 +Requires: python-cryptography >= 2.6 +Requires: python-pyasn1 + +%description conch +Twisted is an extensible framework for Python programming, with special focus +on event-based network programming and multiprotocol integration. + +Twisted Conch: The Twisted Shell. Terminal emulation, SSHv2 and telnet. + +%package conch_nacl +Summary: Conch w/ NaCl for Twisted +Requires: python-PyNaCl +Requires: python-Twisted-conch = %{version} + +%description conch_nacl +Twisted is an extensible framework for Python programming, with special focus +on event-based network programming and multiprotocol integration. + +This metapackage is for the optional feature Conch with NaCl + +%package serial +Summary: Serial support for Twisted +Requires: python-Twisted = %{version} +Requires: python-pyserial >= 3.0 + +%description serial +Twisted is an extensible framework for Python programming, with special focus +on event-based network programming and multiprotocol integration. + +This metapackage is for the optional feature serial + +%package http2 +Summary: HTTP/2 support for Twisted +Requires: python-Twisted = %{version} +Requires: python-h2 >= 3.0 +Requires: python-priority >= 1.1.0 + +%description http2 +Twisted is an extensible framework for Python programming, with special focus +on event-based network programming and multiprotocol integration. + +This metapackage is for the optional feature http2 + +%package contextvars +Summary: Contextvars extra for Twisted +Requires: python-Twisted = %{version} +%if 0%{?python_version_nodots} < 37 +Requires: python-contextvars >= 2.4 +%endif + +%description contextvars +Twisted is an extensible framework for Python programming, with special focus +on event-based network programming and multiprotocol integration. + +This metapackage is for the optional dependency contextvars + +%package all_non_platform +Summary: The all_non_platform dependency extra for Twisted +Requires: python-PyHamcrest >= 1.9.0 +Requires: python-Twisted-conch = %{version} +Requires: python-Twisted-contextvars = %{version} +Requires: python-Twisted-http2 = %{version} +Requires: python-Twisted-serial = %{version} +Requires: python-Twisted-tls = %{version} + +%description all_non_platform +Twisted is an extensible framework for Python programming, with special focus +on event-based network programming and multiprotocol integration. + +This metapackage is for the optional dependency all_non_platform + %prep %autosetup -p1 -n Twisted-%{version} sed -i '1{/env python/d}' src/twisted/mail/test/pop3testserver.py src/twisted/trial/test/scripttest.py +%if ! %{with test} %build %python_build +%endif +%if ! %{with test} %install %python_install find %{buildroot} -regex '.*\.[ch]' -exec rm {} ";" # Remove leftover C sources @@ -136,12 +214,15 @@ # empty files rm %{buildroot}%{_docdir}/%{name}-doc/{fun/Twisted.Quotes,_static/.placeholder,_templates/.placeholder} %fdupes %{buildroot}%{_docdir}/%{name}-doc +%endif +%if %{with test} %check export LANG=en_US.UTF-8 export PYTHONDONTWRITEBYTECODE=1 -%{python_expand # provide flavored commands for testing (=not yet available python_flavored_alternatives from gh#openSUSE/python-rpm-macros#120) +%{python_expand # provide flavored commands for testing +# (= python_flavored_alternatives from gh#openSUSE/python-rpm-macros#120, but sadly not available for non-TW) mkdir -p build/bin/ for f in %{buildroot}%{_bindir}/*-%{$python_bin_suffix}; do ln -s $f build/bin/$(basename ${f%%%%-%{$python_bin_suffix}}) @@ -154,6 +235,7 @@ export OPENSSL_CONF='' %python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} $python -m twisted.trial twisted +%endif %post # these were master alternatives until Dec 2020. Remove before the install as slave links @@ -166,28 +248,51 @@ %postun %python_uninstall_alternative twistd +%if ! %{with test} %files -n %{name}-doc %doc %{_docdir}/%{name}-doc +%files %{python_files tls} +%license LICENSE + +%files %{python_files conch} +%license LICENSE + +%files %{python_files conch_nacl} +%license LICENSE + +%files %{python_files serial} +%license LICENSE + +%files %{python_files http2} +%license LICENSE + +%files %{python_files contextvars} +%license LICENSE + +%files %{python_files all_non_platform} +%license LICENSE + %files %{python_files} %license LICENSE %doc NEWS.rst README.rst +%python_alternative %{_bindir}/conch +%python_alternative %{_bindir}/tkconch +%python_alternative %{_mandir}/man1/conch.1%{?ext_man} +%python_alternative %{_mandir}/man1/tkconch.1%{?ext_man} %python_alternative %{_bindir}/twistd %python_alternative %{_bindir}/cftp %python_alternative %{_bindir}/ckeygen -%python_alternative %{_bindir}/conch %python_alternative %{_bindir}/pyhtmlizer -%python_alternative %{_bindir}/tkconch %python_alternative %{_bindir}/trial %python_alternative %{_bindir}/twist %python_alternative %{_mandir}/man1/twistd.1%{?ext_man} %python_alternative %{_mandir}/man1/cftp.1%{?ext_man} %python_alternative %{_mandir}/man1/ckeygen.1%{?ext_man} -%python_alternative %{_mandir}/man1/conch.1%{?ext_man} %python_alternative %{_mandir}/man1/pyhtmlizer.1%{?ext_man} -%python_alternative %{_mandir}/man1/tkconch.1%{?ext_man} %python_alternative %{_mandir}/man1/trial.1%{?ext_man} %{python_sitelib}/twisted %{python_sitelib}/Twisted-%{version}*-info +%endif %changelog ++++++ Twisted-22.2.0.tar.gz -> Twisted-22.4.0.tar.gz ++++++ ++++ 2827 lines of diff (skipped) ++++++ _multibuild ++++++ <multibuild> <package>test</package> </multibuild> ++++++ remove-dependency-version-upper-bounds.patch ++++++ --- /var/tmp/diff_new_pack.tUMAbx/_old 2022-06-24 08:45:29.291151116 +0200 +++ /var/tmp/diff_new_pack.tUMAbx/_new 2022-06-24 08:45:29.291151116 +0200 @@ -1,16 +1,19 @@ -Index: Twisted-22.1.0/setup.cfg +Index: Twisted-22.4.0/setup.cfg =================================================================== ---- Twisted-22.1.0.orig/setup.cfg -+++ Twisted-22.1.0/setup.cfg -@@ -69,8 +69,8 @@ serial = +--- Twisted-22.4.0.orig/setup.cfg ++++ Twisted-22.4.0/setup.cfg +@@ -72,10 +72,10 @@ serial = pyserial >= 3.0 pywin32 != 226; platform_system == "Windows" http2 = -- h2 >= 3.0, < 4.0 +- h2 >= 3.0, < 5.0 - priority >= 1.1.0, < 2.0 + h2 >= 3.0 + priority >= 1.1.0 contextvars = - contextvars >= 2.4, < 3; python_version < "3.7" +- contextvars >= 2.4, < 3; python_version < "3.7" ++ contextvars >= 2.4; python_version < "3.7" all_non_platform = + %(test)s + %(tls)s