14
0
Files
python-Twisted/python-Twisted.spec

326 lines
11 KiB
RPMSpec
Raw Permalink Normal View History

- Update to version 0.11: Features: * The twistd man page now has a SIGNALS section. * reactor.spawnProcess now will not emit a PotentialZombieWarning when called before reactor.run, and there will be no potential for zombie processes in this case. * High-throughput applications based on Perspective Broker should now run noticably faster thanks to the use of a more efficient decoding function in Twisted Spread. * Documentation for trac-post-commit-hook functionality in svn-dev policy. * twisted.protocols.socks.SOCKSv4 now supports the SOCKSv4a protocol. * Trial can now output test results according to the subunit protocol, as long as Subunit is installed. * twisted.protocols.amp now provides a ListOf argument type which can be composed with some other argument types to create a zero or more element sequence of that type. * If returnValue is invoked outside of a function decorated with @inlineCallbacks, but causes a function thusly decorated to exit, a DeprecationWarning will be emitted explaining this potentially confusing behavior. In a future release, this will cause an exception. * twisted.python.logfile.BaseLogFile now has a reopen method allowing to use an external logrotate mechanism. Bugfixes: * FTP.ftp_NLST now handles requests on invalid paths in a way consistent with RFC 959. * twisted.python.util.initgroups now calls the low-level C initgroups by default if available: the python version can create lots of I/O with certain authentication setup to retrieve all the necessary information. * startLogging now does nothing on subsequent invocations, thus fixing a terrible infinite recursion bug that's only on edge case. * Stringify non-string data to NetstringReceiver.sendString before OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Twisted?expand=0&rev=1
2011-09-02 13:12:34 +00:00
#
# spec file for package python-Twisted
- Update to version 0.11: Features: * The twistd man page now has a SIGNALS section. * reactor.spawnProcess now will not emit a PotentialZombieWarning when called before reactor.run, and there will be no potential for zombie processes in this case. * High-throughput applications based on Perspective Broker should now run noticably faster thanks to the use of a more efficient decoding function in Twisted Spread. * Documentation for trac-post-commit-hook functionality in svn-dev policy. * twisted.protocols.socks.SOCKSv4 now supports the SOCKSv4a protocol. * Trial can now output test results according to the subunit protocol, as long as Subunit is installed. * twisted.protocols.amp now provides a ListOf argument type which can be composed with some other argument types to create a zero or more element sequence of that type. * If returnValue is invoked outside of a function decorated with @inlineCallbacks, but causes a function thusly decorated to exit, a DeprecationWarning will be emitted explaining this potentially confusing behavior. In a future release, this will cause an exception. * twisted.python.logfile.BaseLogFile now has a reopen method allowing to use an external logrotate mechanism. Bugfixes: * FTP.ftp_NLST now handles requests on invalid paths in a way consistent with RFC 959. * twisted.python.util.initgroups now calls the low-level C initgroups by default if available: the python version can create lots of I/O with certain authentication setup to retrieve all the necessary information. * startLogging now does nothing on subsequent invocations, thus fixing a terrible infinite recursion bug that's only on edge case. * Stringify non-string data to NetstringReceiver.sendString before OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Twisted?expand=0&rev=1
2011-09-02 13:12:34 +00:00
#
# Copyright (c) 2025 SUSE LLC
- Update to version 0.11: Features: * The twistd man page now has a SIGNALS section. * reactor.spawnProcess now will not emit a PotentialZombieWarning when called before reactor.run, and there will be no potential for zombie processes in this case. * High-throughput applications based on Perspective Broker should now run noticably faster thanks to the use of a more efficient decoding function in Twisted Spread. * Documentation for trac-post-commit-hook functionality in svn-dev policy. * twisted.protocols.socks.SOCKSv4 now supports the SOCKSv4a protocol. * Trial can now output test results according to the subunit protocol, as long as Subunit is installed. * twisted.protocols.amp now provides a ListOf argument type which can be composed with some other argument types to create a zero or more element sequence of that type. * If returnValue is invoked outside of a function decorated with @inlineCallbacks, but causes a function thusly decorated to exit, a DeprecationWarning will be emitted explaining this potentially confusing behavior. In a future release, this will cause an exception. * twisted.python.logfile.BaseLogFile now has a reopen method allowing to use an external logrotate mechanism. Bugfixes: * FTP.ftp_NLST now handles requests on invalid paths in a way consistent with RFC 959. * twisted.python.util.initgroups now calls the low-level C initgroups by default if available: the python version can create lots of I/O with certain authentication setup to retrieve all the necessary information. * startLogging now does nothing on subsequent invocations, thus fixing a terrible infinite recursion bug that's only on edge case. * Stringify non-string data to NetstringReceiver.sendString before OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Twisted?expand=0&rev=1
2011-09-02 13:12:34 +00:00
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
- Update to version 0.11: Features: * The twistd man page now has a SIGNALS section. * reactor.spawnProcess now will not emit a PotentialZombieWarning when called before reactor.run, and there will be no potential for zombie processes in this case. * High-throughput applications based on Perspective Broker should now run noticably faster thanks to the use of a more efficient decoding function in Twisted Spread. * Documentation for trac-post-commit-hook functionality in svn-dev policy. * twisted.protocols.socks.SOCKSv4 now supports the SOCKSv4a protocol. * Trial can now output test results according to the subunit protocol, as long as Subunit is installed. * twisted.protocols.amp now provides a ListOf argument type which can be composed with some other argument types to create a zero or more element sequence of that type. * If returnValue is invoked outside of a function decorated with @inlineCallbacks, but causes a function thusly decorated to exit, a DeprecationWarning will be emitted explaining this potentially confusing behavior. In a future release, this will cause an exception. * twisted.python.logfile.BaseLogFile now has a reopen method allowing to use an external logrotate mechanism. Bugfixes: * FTP.ftp_NLST now handles requests on invalid paths in a way consistent with RFC 959. * twisted.python.util.initgroups now calls the low-level C initgroups by default if available: the python version can create lots of I/O with certain authentication setup to retrieve all the necessary information. * startLogging now does nothing on subsequent invocations, thus fixing a terrible infinite recursion bug that's only on edge case. * Stringify non-string data to NetstringReceiver.sendString before OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Twisted?expand=0&rev=1
2011-09-02 13:12:34 +00:00
#
Accepting request 984263 from home:bnavigator:branches:devel:languages:python - 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 OBS-URL: https://build.opensuse.org/request/show/984263 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Twisted?expand=0&rev=123
2022-06-22 06:14:46 +00:00
%global flavor @BUILD_FLAVOR@%{nil}
%if "%{flavor}" == "test"
%define psuffix -test
%bcond_without test
Accepting request 984263 from home:bnavigator:branches:devel:languages:python - 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 OBS-URL: https://build.opensuse.org/request/show/984263 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Twisted?expand=0&rev=123
2022-06-22 06:14:46 +00:00
%else
%define psuffix %{nil}
%bcond_with test
Accepting request 984263 from home:bnavigator:branches:devel:languages:python - 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 OBS-URL: https://build.opensuse.org/request/show/984263 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Twisted?expand=0&rev=123
2022-06-22 06:14:46 +00:00
%endif
%if 0%{?suse_version} > 1500
%bcond_without libalternatives
%else
%bcond_with libalternatives
%endif
%{?sle15_python_module_pythons}
Accepting request 984263 from home:bnavigator:branches:devel:languages:python - 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 OBS-URL: https://build.opensuse.org/request/show/984263 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Twisted?expand=0&rev=123
2022-06-22 06:14:46 +00:00
Name: python-Twisted%{psuffix}
- update to 24.10.0: * Python 3.13 is now supported. * twisted.internet.defer.succeed() is significantly faster, and awaiting Deferred has also been sped up. * twisted.python.failure.Failure creation no longer records the place where it was created. This reduces creation time by 60% at least, thereby speeding up Deferred error handling. * twisted.internet.defer.Deferred no longer removes the traceback object from Failures. This may result in more objects staying in memory if you don't clean up failed Deferreds, but it speeds up error handling and enables improvements to traceback reporting. * twisted.internet.defer APIs are 2%-4% faster in many cases. * twisted.internet.defer.Deferred runs callbacks with chained Deferreds a little faster. * The reactor now will use a little less CPU when events have been scheduled with callLater(). * Creation of twisted.python.failure.Failure is now faster. * Fixed unreleased regression caused by PR 12109. * twisted.logger.eventAsText can now format the output having types/classes as input. This was a regression introduced in Twisted 24.3.0. * twisted.internet.endpoints.clientFromString for TLS endpoints with "bindAddress=" no longer crashes during connect. twisted.internet.endpoints.HostnameEndpoint() no longer crashes when given a bindAddress= argument that is just a string, and that argument now accepts either address strings or (address, port) tuples. * The URLs from README and pyproject.toml were updated. * #11236, #12060, #12062, #12099, #12219, #12290, #12296, OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Twisted?expand=0&rev=157
2024-10-29 18:01:24 +00:00
Version: 24.10.0
- Update to version 0.11: Features: * The twistd man page now has a SIGNALS section. * reactor.spawnProcess now will not emit a PotentialZombieWarning when called before reactor.run, and there will be no potential for zombie processes in this case. * High-throughput applications based on Perspective Broker should now run noticably faster thanks to the use of a more efficient decoding function in Twisted Spread. * Documentation for trac-post-commit-hook functionality in svn-dev policy. * twisted.protocols.socks.SOCKSv4 now supports the SOCKSv4a protocol. * Trial can now output test results according to the subunit protocol, as long as Subunit is installed. * twisted.protocols.amp now provides a ListOf argument type which can be composed with some other argument types to create a zero or more element sequence of that type. * If returnValue is invoked outside of a function decorated with @inlineCallbacks, but causes a function thusly decorated to exit, a DeprecationWarning will be emitted explaining this potentially confusing behavior. In a future release, this will cause an exception. * twisted.python.logfile.BaseLogFile now has a reopen method allowing to use an external logrotate mechanism. Bugfixes: * FTP.ftp_NLST now handles requests on invalid paths in a way consistent with RFC 959. * twisted.python.util.initgroups now calls the low-level C initgroups by default if available: the python version can create lots of I/O with certain authentication setup to retrieve all the necessary information. * startLogging now does nothing on subsequent invocations, thus fixing a terrible infinite recursion bug that's only on edge case. * Stringify non-string data to NetstringReceiver.sendString before OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Twisted?expand=0&rev=1
2011-09-02 13:12:34 +00:00
Release: 0
Summary: An asynchronous networking framework written in Python
License: MIT
URL: https://twisted.org
Accepting request 1128275 from home:mcalabkova:branches:devel:languages:python:numeric - Update to 23.10.0 * reactor.spawnProcess() now uses posix_spawnp when possible, making it much more efficient (#5710) * Twisted now officially supports Python 3.11. (#10343) * twisted.internet.defer.race has been added as a way to get the first available result from a list of Deferreds. (#11817) * The CI suite was updated to execute the tests using a Python 3.12 pre-release (#11857) * PyAsn1 has been removed as a conch dependency. * Due to changes in the way raw private key byte serialization are handled in Cryptography, and widespread support for Ed25519 in current versions of OpenSSL, we no longer support PyNaCl as a fallback for Ed25519 keys in Conch. (#11871) * In Twisted 16.3.0, we changed twisted.web to stop dispatching HTTP/1.1 pipelined requests to application code. There was a bug in this change which still allowed clients which could send multiple full HTTP requests in a single TCP segment to trigger asynchronous processing of later requests, which could lead to out-of-order responses. This has now been corrected and twisted.web should never process a pipelined request over HTTP/1.1 until the previous request has fully completed. (CVE-2023-46137, GHSA-cq7q-gv5w-rwx2) (#11976) * Drop support for Python 3.7. Remove twisted[contextvars] extra (contextvars are always available in Python 3.7+) (#11913) * When using CPython, functions wrapped by twisted.internet.defer.inlineCallbacks can have their arguments and return values freed immediately after completion (due to there no longer being circular references). (#11885) - Delete merged patches: * regenerate-cert-to-work-with-latest-service-identity.patch * no-pygtkcompat.patch * support-new-glibc.patch * CVE-2023-46137-HTTP-pipeline-response.patch * remove-pynacl-optional-dependency.patch * py311-tests-compat.patch OBS-URL: https://build.opensuse.org/request/show/1128275 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Twisted?expand=0&rev=143
2023-11-23 16:03:01 +00:00
Source0: https://files.pythonhosted.org/packages/source/t/twisted/twisted-%{version}.tar.gz
Source99: python-Twisted.rpmlintrc
- Update to 21.2.0: * Features + The enableSessions argument to twisted.internet.ssl.CertificateOptions now + actually enables/disables OpenSSL's session cache. Also, due to + session-related bugs, it defaults to False. (#9583) + twisted.internet.defer.inlineCallbacks and ensureDeferred will now associate a contextvars.Context with the coroutines they run, meaning that ContextVar objects will maintain their value within the same coroutine, similarly to asyncio Tasks. This functionality requires Python 3.7+, or the contextvars PyPI backport to be installed for Python 3.5-3.6. (#9719, #9826) + twisted.internet.defer.Deferred.fromCoroutine has been added. This is similar to the existing ensureDeferred function, but is named more consistently inside Twisted and does not pass through Deferreds. (#9825) + trial now allows the @unittest.skipIf decorator to specify that an entire test class should be skipped. (#9829) + The twisted.python.deprecate.deprecatedKeywordParameter decorator can be used to mark a keyword paramater of a function or method as deprecated. (#9844) + Projects using Twisted can now perform type checking against a Twisted + installation, for example using mypy. (#9908) + twisted.python.util.InsensitiveDict now fully implements MutableMapping. (#9919) + Python 3.8 is now tested and supported. (#9955) + Support a coroutine function in twisted.internet.task.react (#9974) + PyPy 3.7 is now tested and supported. (#10093) * Bugfixes + twisted.web.twcgi.CGIProcessProtocol.processEnded(...) now handles an already-finished request, for example when request.connectionLost(...) was called previously. (#9468) + Twisted's dependency on PyHamcrest has been moved from the base package to the new "test" extra. Consequently the test extra must be installed for Twisted's test suite to pass. (#9509) + Fixed serialization of timedelta, date, and time objects in twisted.spread. (#9716) + twisted.internet.asyncioreactor.AsyncioSelectorReactor now raises an exception if instantiated with an event loop which is not compatible with asyncio.SelectorEventLoop. This fixes the AsyncioSelectorReactor in Python 3.8+ on Windows, where in bp-34687 the default Windows asyncio event loop was changed to ProactorEventLoop. Applications that use AsyncioSelectorReactor on Windows with Python 3.8+ must call asyncio.set_event_loop_policy(asyncio.WindowsSelectorEventLoopPolicy()) before instantiating and running AsyncioSelectorReactor. (#9766) + twisted.internet.process.registerReapProcessHandler and ._BaseProcess.reapProcess will no longer raise a TypeError when processing a None PID (#9775) + INotify will close its file descriptor if a directory is automatically removed by twisted from the watchlist because it's deleted, avoiding orphaned filedescriptors. (#9777) + DelayedCall.reset() is now working properly with asyncioreactor (#9780) + AsyncioSelectorReactor.seconds() now correctly returns an epoch time. (#9787) + The _connDone parameter has been removed from twisted.internet.abstract.FileDescriptor.loseConnection()'s signature in order to match the signature in the base class twisted.internet._newtls.ConnectionMixin loseConnection(). (#9849) + The Gtk3 reactor now runs on Wayland-only sessions (#9904) + Descriptive error messages from twisted.internet.error are now present when running with 'python -OO'. (#9918) + Comparator methods such as eq() now always return NotImplemented for uncomparable types. (#9919) + When installing Twisted it now requires a minimum Python 3.5.4 version to match the version used with automated testing. This is the minimum Python version that we know that Twisted works with. (#10098) - Drop patches no-pygtkcompat.patch, python-38-hmac-digestmod.patch, python-38-no-cgi-parseqs.patch, twisted-pr1369-remove-pyopenssl-npn.patch & twisted-pr1487-increase-ffdh-keysize.patch, they have been merged. - Refresh other patches. - Add no-cython_test_exception_raiser.patch to avoid another dependency. - Update URL and make use of sitelib, not sitearch macros OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Twisted?expand=0&rev=102
2021-03-10 10:15:47 +00:00
Patch0: skip_MultiCast.patch
# PATCH-FIX-UPSTREAM no-test_successResultOfWithFailureHasTraceback.patch https://twistedmatrix.com/trac/ticket/9665 mcepl@suse.com
# skip over the test test_successResultOfWithFailureHasTraceback
- Update to 21.2.0: * Features + The enableSessions argument to twisted.internet.ssl.CertificateOptions now + actually enables/disables OpenSSL's session cache. Also, due to + session-related bugs, it defaults to False. (#9583) + twisted.internet.defer.inlineCallbacks and ensureDeferred will now associate a contextvars.Context with the coroutines they run, meaning that ContextVar objects will maintain their value within the same coroutine, similarly to asyncio Tasks. This functionality requires Python 3.7+, or the contextvars PyPI backport to be installed for Python 3.5-3.6. (#9719, #9826) + twisted.internet.defer.Deferred.fromCoroutine has been added. This is similar to the existing ensureDeferred function, but is named more consistently inside Twisted and does not pass through Deferreds. (#9825) + trial now allows the @unittest.skipIf decorator to specify that an entire test class should be skipped. (#9829) + The twisted.python.deprecate.deprecatedKeywordParameter decorator can be used to mark a keyword paramater of a function or method as deprecated. (#9844) + Projects using Twisted can now perform type checking against a Twisted + installation, for example using mypy. (#9908) + twisted.python.util.InsensitiveDict now fully implements MutableMapping. (#9919) + Python 3.8 is now tested and supported. (#9955) + Support a coroutine function in twisted.internet.task.react (#9974) + PyPy 3.7 is now tested and supported. (#10093) * Bugfixes + twisted.web.twcgi.CGIProcessProtocol.processEnded(...) now handles an already-finished request, for example when request.connectionLost(...) was called previously. (#9468) + Twisted's dependency on PyHamcrest has been moved from the base package to the new "test" extra. Consequently the test extra must be installed for Twisted's test suite to pass. (#9509) + Fixed serialization of timedelta, date, and time objects in twisted.spread. (#9716) + twisted.internet.asyncioreactor.AsyncioSelectorReactor now raises an exception if instantiated with an event loop which is not compatible with asyncio.SelectorEventLoop. This fixes the AsyncioSelectorReactor in Python 3.8+ on Windows, where in bp-34687 the default Windows asyncio event loop was changed to ProactorEventLoop. Applications that use AsyncioSelectorReactor on Windows with Python 3.8+ must call asyncio.set_event_loop_policy(asyncio.WindowsSelectorEventLoopPolicy()) before instantiating and running AsyncioSelectorReactor. (#9766) + twisted.internet.process.registerReapProcessHandler and ._BaseProcess.reapProcess will no longer raise a TypeError when processing a None PID (#9775) + INotify will close its file descriptor if a directory is automatically removed by twisted from the watchlist because it's deleted, avoiding orphaned filedescriptors. (#9777) + DelayedCall.reset() is now working properly with asyncioreactor (#9780) + AsyncioSelectorReactor.seconds() now correctly returns an epoch time. (#9787) + The _connDone parameter has been removed from twisted.internet.abstract.FileDescriptor.loseConnection()'s signature in order to match the signature in the base class twisted.internet._newtls.ConnectionMixin loseConnection(). (#9849) + The Gtk3 reactor now runs on Wayland-only sessions (#9904) + Descriptive error messages from twisted.internet.error are now present when running with 'python -OO'. (#9918) + Comparator methods such as eq() now always return NotImplemented for uncomparable types. (#9919) + When installing Twisted it now requires a minimum Python 3.5.4 version to match the version used with automated testing. This is the minimum Python version that we know that Twisted works with. (#10098) - Drop patches no-pygtkcompat.patch, python-38-hmac-digestmod.patch, python-38-no-cgi-parseqs.patch, twisted-pr1369-remove-pyopenssl-npn.patch & twisted-pr1487-increase-ffdh-keysize.patch, they have been merged. - Refresh other patches. - Add no-cython_test_exception_raiser.patch to avoid another dependency. - Update URL and make use of sitelib, not sitearch macros OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Twisted?expand=0&rev=102
2021-03-10 10:15:47 +00:00
Patch2: no-test_successResultOfWithFailureHasTraceback.patch
# PATCH-FIX-UPSTREAM 1521_delegate_parseqs_stdlib_bpo42967.patch https://twistedmatrix.com/trac/ticket/10096 mcepl@suse.com
# overcome incompatibility with the solution for bpo#42967.
- Update to 21.2.0: * Features + The enableSessions argument to twisted.internet.ssl.CertificateOptions now + actually enables/disables OpenSSL's session cache. Also, due to + session-related bugs, it defaults to False. (#9583) + twisted.internet.defer.inlineCallbacks and ensureDeferred will now associate a contextvars.Context with the coroutines they run, meaning that ContextVar objects will maintain their value within the same coroutine, similarly to asyncio Tasks. This functionality requires Python 3.7+, or the contextvars PyPI backport to be installed for Python 3.5-3.6. (#9719, #9826) + twisted.internet.defer.Deferred.fromCoroutine has been added. This is similar to the existing ensureDeferred function, but is named more consistently inside Twisted and does not pass through Deferreds. (#9825) + trial now allows the @unittest.skipIf decorator to specify that an entire test class should be skipped. (#9829) + The twisted.python.deprecate.deprecatedKeywordParameter decorator can be used to mark a keyword paramater of a function or method as deprecated. (#9844) + Projects using Twisted can now perform type checking against a Twisted + installation, for example using mypy. (#9908) + twisted.python.util.InsensitiveDict now fully implements MutableMapping. (#9919) + Python 3.8 is now tested and supported. (#9955) + Support a coroutine function in twisted.internet.task.react (#9974) + PyPy 3.7 is now tested and supported. (#10093) * Bugfixes + twisted.web.twcgi.CGIProcessProtocol.processEnded(...) now handles an already-finished request, for example when request.connectionLost(...) was called previously. (#9468) + Twisted's dependency on PyHamcrest has been moved from the base package to the new "test" extra. Consequently the test extra must be installed for Twisted's test suite to pass. (#9509) + Fixed serialization of timedelta, date, and time objects in twisted.spread. (#9716) + twisted.internet.asyncioreactor.AsyncioSelectorReactor now raises an exception if instantiated with an event loop which is not compatible with asyncio.SelectorEventLoop. This fixes the AsyncioSelectorReactor in Python 3.8+ on Windows, where in bp-34687 the default Windows asyncio event loop was changed to ProactorEventLoop. Applications that use AsyncioSelectorReactor on Windows with Python 3.8+ must call asyncio.set_event_loop_policy(asyncio.WindowsSelectorEventLoopPolicy()) before instantiating and running AsyncioSelectorReactor. (#9766) + twisted.internet.process.registerReapProcessHandler and ._BaseProcess.reapProcess will no longer raise a TypeError when processing a None PID (#9775) + INotify will close its file descriptor if a directory is automatically removed by twisted from the watchlist because it's deleted, avoiding orphaned filedescriptors. (#9777) + DelayedCall.reset() is now working properly with asyncioreactor (#9780) + AsyncioSelectorReactor.seconds() now correctly returns an epoch time. (#9787) + The _connDone parameter has been removed from twisted.internet.abstract.FileDescriptor.loseConnection()'s signature in order to match the signature in the base class twisted.internet._newtls.ConnectionMixin loseConnection(). (#9849) + The Gtk3 reactor now runs on Wayland-only sessions (#9904) + Descriptive error messages from twisted.internet.error are now present when running with 'python -OO'. (#9918) + Comparator methods such as eq() now always return NotImplemented for uncomparable types. (#9919) + When installing Twisted it now requires a minimum Python 3.5.4 version to match the version used with automated testing. This is the minimum Python version that we know that Twisted works with. (#10098) - Drop patches no-pygtkcompat.patch, python-38-hmac-digestmod.patch, python-38-no-cgi-parseqs.patch, twisted-pr1369-remove-pyopenssl-npn.patch & twisted-pr1487-increase-ffdh-keysize.patch, they have been merged. - Refresh other patches. - Add no-cython_test_exception_raiser.patch to avoid another dependency. - Update URL and make use of sitelib, not sitearch macros OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Twisted?expand=0&rev=102
2021-03-10 10:15:47 +00:00
Patch3: 1521_delegate_parseqs_stdlib_bpo42967.patch
# PATCH-FIX-OPENSUSE We don't want to package yet another module, and it is easily skippable
Patch5: no-cython_test_exception_raiser.patch
# PATCH-FIX-OPENSUSE remove-dependency-version-upper-bounds.patch boo#1190036 -- run with h2 >= 4.0.0 and priority >= 2.0
Patch6: remove-dependency-version-upper-bounds.patch
Accepting request 1128275 from home:mcalabkova:branches:devel:languages:python:numeric - Update to 23.10.0 * reactor.spawnProcess() now uses posix_spawnp when possible, making it much more efficient (#5710) * Twisted now officially supports Python 3.11. (#10343) * twisted.internet.defer.race has been added as a way to get the first available result from a list of Deferreds. (#11817) * The CI suite was updated to execute the tests using a Python 3.12 pre-release (#11857) * PyAsn1 has been removed as a conch dependency. * Due to changes in the way raw private key byte serialization are handled in Cryptography, and widespread support for Ed25519 in current versions of OpenSSL, we no longer support PyNaCl as a fallback for Ed25519 keys in Conch. (#11871) * In Twisted 16.3.0, we changed twisted.web to stop dispatching HTTP/1.1 pipelined requests to application code. There was a bug in this change which still allowed clients which could send multiple full HTTP requests in a single TCP segment to trigger asynchronous processing of later requests, which could lead to out-of-order responses. This has now been corrected and twisted.web should never process a pipelined request over HTTP/1.1 until the previous request has fully completed. (CVE-2023-46137, GHSA-cq7q-gv5w-rwx2) (#11976) * Drop support for Python 3.7. Remove twisted[contextvars] extra (contextvars are always available in Python 3.7+) (#11913) * When using CPython, functions wrapped by twisted.internet.defer.inlineCallbacks can have their arguments and return values freed immediately after completion (due to there no longer being circular references). (#11885) - Delete merged patches: * regenerate-cert-to-work-with-latest-service-identity.patch * no-pygtkcompat.patch * support-new-glibc.patch * CVE-2023-46137-HTTP-pipeline-response.patch * remove-pynacl-optional-dependency.patch * py311-tests-compat.patch OBS-URL: https://build.opensuse.org/request/show/1128275 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Twisted?expand=0&rev=143
2023-11-23 16:03:01 +00:00
BuildRequires: %{python_module hatch-fancy-pypi-readme}
BuildRequires: %{python_module hatchling}
Accepting request 1199704 from home:glaubitz:branches:devel:languages:python - Update to 24.7.0 * 24.7.0.rc2 fixed an unreleased regression caused by PR 12109. (#12279) * twisted.web.util.redirectTo now HTML-escapes the provided URL in the fallback response body it returns (GHSA-cf56-g6w6-pqq2, CVE-2024-41810). (#9839) * The HTTP 1.0 and 1.1 server provided by twisted.web could process pipelined HTTP requests out-of-order, possibly resulting in information disclosure (CVE-2024-41671/GHSA-c8m8-j448-xjx7) (#12248) * twisted.protocols.ftp now supports the IPv6 extensions defined in RFC 2428. (#9645) * twisted.internet.defer.inlineCallbacks can now yield a coroutine. (#9972) * twisted.python._shellcomp.ZshArgumentsGenerator was updated for Python 3.13. (#12065) * twisted.web.wsgi request environment now contains the peer port number as `REMOTE_PORT`. (#12096) * twisted.internet.defer.Deferred.callback() and twisted.internet.defer.Deferred.addCallbacks() no longer use `assert` to check the type of the arguments. You should now use type checking to validate your code. These changes were done to reduce the CPU usage. (#12122) * Added two new methods, twisted.logger.Logger.failuresHandled and twisted.logger.Logger.\ failureHandler, which allow for more concise and convenient handling of exceptions when dispatching out to application code. The former can arbitrarily customize failure handling at the call site, and the latter can be used for performance-sensitive cases where no additional information needs to be logged. (#12188) * twisted.internet.defer.Deferred.addCallback now runs about 10% faster. (#12223) * twisted.internet.defer.Deferred error handling is now faster, taking 40% less time to run. (#12227) * twisted.internet.ssl.Certificate.__repr__ can now handle certificates without a common name (CN) in the certificate itself or the signing CA. (#5851) * Type annotations have been added to twisted.conch.interfaces.IKnownHostEntry and its implementations, twisted.conch.client.knownhosts.PlainHost and twisted.conch.client.knownhosts.HashedHost, correcting a variety of type confusion issues throughout the conch client code. (#9713) * twisted.python.failure.Failure once again utilizes the custom pickling logic it used to in the past. (#12112) * twisted.conch.client.knownhosts.KnownHostsFile.verifyHostKey no longer logs OBS-URL: https://build.opensuse.org/request/show/1199704 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Twisted?expand=0&rev=154
2024-09-20 21:39:51 +00:00
BuildRequires: %{python_module incremental >= 24.7.0}
Accepting request 1128275 from home:mcalabkova:branches:devel:languages:python:numeric - Update to 23.10.0 * reactor.spawnProcess() now uses posix_spawnp when possible, making it much more efficient (#5710) * Twisted now officially supports Python 3.11. (#10343) * twisted.internet.defer.race has been added as a way to get the first available result from a list of Deferreds. (#11817) * The CI suite was updated to execute the tests using a Python 3.12 pre-release (#11857) * PyAsn1 has been removed as a conch dependency. * Due to changes in the way raw private key byte serialization are handled in Cryptography, and widespread support for Ed25519 in current versions of OpenSSL, we no longer support PyNaCl as a fallback for Ed25519 keys in Conch. (#11871) * In Twisted 16.3.0, we changed twisted.web to stop dispatching HTTP/1.1 pipelined requests to application code. There was a bug in this change which still allowed clients which could send multiple full HTTP requests in a single TCP segment to trigger asynchronous processing of later requests, which could lead to out-of-order responses. This has now been corrected and twisted.web should never process a pipelined request over HTTP/1.1 until the previous request has fully completed. (CVE-2023-46137, GHSA-cq7q-gv5w-rwx2) (#11976) * Drop support for Python 3.7. Remove twisted[contextvars] extra (contextvars are always available in Python 3.7+) (#11913) * When using CPython, functions wrapped by twisted.internet.defer.inlineCallbacks can have their arguments and return values freed immediately after completion (due to there no longer being circular references). (#11885) - Delete merged patches: * regenerate-cert-to-work-with-latest-service-identity.patch * no-pygtkcompat.patch * support-new-glibc.patch * CVE-2023-46137-HTTP-pipeline-response.patch * remove-pynacl-optional-dependency.patch * py311-tests-compat.patch OBS-URL: https://build.opensuse.org/request/show/1128275 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Twisted?expand=0&rev=143
2023-11-23 16:03:01 +00:00
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools}
Accepting request 1128275 from home:mcalabkova:branches:devel:languages:python:numeric - Update to 23.10.0 * reactor.spawnProcess() now uses posix_spawnp when possible, making it much more efficient (#5710) * Twisted now officially supports Python 3.11. (#10343) * twisted.internet.defer.race has been added as a way to get the first available result from a list of Deferreds. (#11817) * The CI suite was updated to execute the tests using a Python 3.12 pre-release (#11857) * PyAsn1 has been removed as a conch dependency. * Due to changes in the way raw private key byte serialization are handled in Cryptography, and widespread support for Ed25519 in current versions of OpenSSL, we no longer support PyNaCl as a fallback for Ed25519 keys in Conch. (#11871) * In Twisted 16.3.0, we changed twisted.web to stop dispatching HTTP/1.1 pipelined requests to application code. There was a bug in this change which still allowed clients which could send multiple full HTTP requests in a single TCP segment to trigger asynchronous processing of later requests, which could lead to out-of-order responses. This has now been corrected and twisted.web should never process a pipelined request over HTTP/1.1 until the previous request has fully completed. (CVE-2023-46137, GHSA-cq7q-gv5w-rwx2) (#11976) * Drop support for Python 3.7. Remove twisted[contextvars] extra (contextvars are always available in Python 3.7+) (#11913) * When using CPython, functions wrapped by twisted.internet.defer.inlineCallbacks can have their arguments and return values freed immediately after completion (due to there no longer being circular references). (#11885) - Delete merged patches: * regenerate-cert-to-work-with-latest-service-identity.patch * no-pygtkcompat.patch * support-new-glibc.patch * CVE-2023-46137-HTTP-pipeline-response.patch * remove-pynacl-optional-dependency.patch * py311-tests-compat.patch OBS-URL: https://build.opensuse.org/request/show/1128275 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Twisted?expand=0&rev=143
2023-11-23 16:03:01 +00:00
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
- Update to 21.2.0: * Features + The enableSessions argument to twisted.internet.ssl.CertificateOptions now + actually enables/disables OpenSSL's session cache. Also, due to + session-related bugs, it defaults to False. (#9583) + twisted.internet.defer.inlineCallbacks and ensureDeferred will now associate a contextvars.Context with the coroutines they run, meaning that ContextVar objects will maintain their value within the same coroutine, similarly to asyncio Tasks. This functionality requires Python 3.7+, or the contextvars PyPI backport to be installed for Python 3.5-3.6. (#9719, #9826) + twisted.internet.defer.Deferred.fromCoroutine has been added. This is similar to the existing ensureDeferred function, but is named more consistently inside Twisted and does not pass through Deferreds. (#9825) + trial now allows the @unittest.skipIf decorator to specify that an entire test class should be skipped. (#9829) + The twisted.python.deprecate.deprecatedKeywordParameter decorator can be used to mark a keyword paramater of a function or method as deprecated. (#9844) + Projects using Twisted can now perform type checking against a Twisted + installation, for example using mypy. (#9908) + twisted.python.util.InsensitiveDict now fully implements MutableMapping. (#9919) + Python 3.8 is now tested and supported. (#9955) + Support a coroutine function in twisted.internet.task.react (#9974) + PyPy 3.7 is now tested and supported. (#10093) * Bugfixes + twisted.web.twcgi.CGIProcessProtocol.processEnded(...) now handles an already-finished request, for example when request.connectionLost(...) was called previously. (#9468) + Twisted's dependency on PyHamcrest has been moved from the base package to the new "test" extra. Consequently the test extra must be installed for Twisted's test suite to pass. (#9509) + Fixed serialization of timedelta, date, and time objects in twisted.spread. (#9716) + twisted.internet.asyncioreactor.AsyncioSelectorReactor now raises an exception if instantiated with an event loop which is not compatible with asyncio.SelectorEventLoop. This fixes the AsyncioSelectorReactor in Python 3.8+ on Windows, where in bp-34687 the default Windows asyncio event loop was changed to ProactorEventLoop. Applications that use AsyncioSelectorReactor on Windows with Python 3.8+ must call asyncio.set_event_loop_policy(asyncio.WindowsSelectorEventLoopPolicy()) before instantiating and running AsyncioSelectorReactor. (#9766) + twisted.internet.process.registerReapProcessHandler and ._BaseProcess.reapProcess will no longer raise a TypeError when processing a None PID (#9775) + INotify will close its file descriptor if a directory is automatically removed by twisted from the watchlist because it's deleted, avoiding orphaned filedescriptors. (#9777) + DelayedCall.reset() is now working properly with asyncioreactor (#9780) + AsyncioSelectorReactor.seconds() now correctly returns an epoch time. (#9787) + The _connDone parameter has been removed from twisted.internet.abstract.FileDescriptor.loseConnection()'s signature in order to match the signature in the base class twisted.internet._newtls.ConnectionMixin loseConnection(). (#9849) + The Gtk3 reactor now runs on Wayland-only sessions (#9904) + Descriptive error messages from twisted.internet.error are now present when running with 'python -OO'. (#9918) + Comparator methods such as eq() now always return NotImplemented for uncomparable types. (#9919) + When installing Twisted it now requires a minimum Python 3.5.4 version to match the version used with automated testing. This is the minimum Python version that we know that Twisted works with. (#10098) - Drop patches no-pygtkcompat.patch, python-38-hmac-digestmod.patch, python-38-no-cgi-parseqs.patch, twisted-pr1369-remove-pyopenssl-npn.patch & twisted-pr1487-increase-ffdh-keysize.patch, they have been merged. - Refresh other patches. - Add no-cython_test_exception_raiser.patch to avoid another dependency. - Update URL and make use of sitelib, not sitearch macros OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Twisted?expand=0&rev=102
2021-03-10 10:15:47 +00:00
BuildRequires: git-core
BuildRequires: python-rpm-macros
# twisted[tls] is so common, let's keep it tied to the main package for the time being.
Requires: python-Twisted-tls = %{version}
BuildArch: noarch
Accepting request 984263 from home:bnavigator:branches:devel:languages:python - 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 OBS-URL: https://build.opensuse.org/request/show/984263 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Twisted?expand=0&rev=123
2022-06-22 06:14:46 +00:00
# SECTION install requires
- Update to 21.2.0: * Features + The enableSessions argument to twisted.internet.ssl.CertificateOptions now + actually enables/disables OpenSSL's session cache. Also, due to + session-related bugs, it defaults to False. (#9583) + twisted.internet.defer.inlineCallbacks and ensureDeferred will now associate a contextvars.Context with the coroutines they run, meaning that ContextVar objects will maintain their value within the same coroutine, similarly to asyncio Tasks. This functionality requires Python 3.7+, or the contextvars PyPI backport to be installed for Python 3.5-3.6. (#9719, #9826) + twisted.internet.defer.Deferred.fromCoroutine has been added. This is similar to the existing ensureDeferred function, but is named more consistently inside Twisted and does not pass through Deferreds. (#9825) + trial now allows the @unittest.skipIf decorator to specify that an entire test class should be skipped. (#9829) + The twisted.python.deprecate.deprecatedKeywordParameter decorator can be used to mark a keyword paramater of a function or method as deprecated. (#9844) + Projects using Twisted can now perform type checking against a Twisted + installation, for example using mypy. (#9908) + twisted.python.util.InsensitiveDict now fully implements MutableMapping. (#9919) + Python 3.8 is now tested and supported. (#9955) + Support a coroutine function in twisted.internet.task.react (#9974) + PyPy 3.7 is now tested and supported. (#10093) * Bugfixes + twisted.web.twcgi.CGIProcessProtocol.processEnded(...) now handles an already-finished request, for example when request.connectionLost(...) was called previously. (#9468) + Twisted's dependency on PyHamcrest has been moved from the base package to the new "test" extra. Consequently the test extra must be installed for Twisted's test suite to pass. (#9509) + Fixed serialization of timedelta, date, and time objects in twisted.spread. (#9716) + twisted.internet.asyncioreactor.AsyncioSelectorReactor now raises an exception if instantiated with an event loop which is not compatible with asyncio.SelectorEventLoop. This fixes the AsyncioSelectorReactor in Python 3.8+ on Windows, where in bp-34687 the default Windows asyncio event loop was changed to ProactorEventLoop. Applications that use AsyncioSelectorReactor on Windows with Python 3.8+ must call asyncio.set_event_loop_policy(asyncio.WindowsSelectorEventLoopPolicy()) before instantiating and running AsyncioSelectorReactor. (#9766) + twisted.internet.process.registerReapProcessHandler and ._BaseProcess.reapProcess will no longer raise a TypeError when processing a None PID (#9775) + INotify will close its file descriptor if a directory is automatically removed by twisted from the watchlist because it's deleted, avoiding orphaned filedescriptors. (#9777) + DelayedCall.reset() is now working properly with asyncioreactor (#9780) + AsyncioSelectorReactor.seconds() now correctly returns an epoch time. (#9787) + The _connDone parameter has been removed from twisted.internet.abstract.FileDescriptor.loseConnection()'s signature in order to match the signature in the base class twisted.internet._newtls.ConnectionMixin loseConnection(). (#9849) + The Gtk3 reactor now runs on Wayland-only sessions (#9904) + Descriptive error messages from twisted.internet.error are now present when running with 'python -OO'. (#9918) + Comparator methods such as eq() now always return NotImplemented for uncomparable types. (#9919) + When installing Twisted it now requires a minimum Python 3.5.4 version to match the version used with automated testing. This is the minimum Python version that we know that Twisted works with. (#10098) - Drop patches no-pygtkcompat.patch, python-38-hmac-digestmod.patch, python-38-no-cgi-parseqs.patch, twisted-pr1369-remove-pyopenssl-npn.patch & twisted-pr1487-increase-ffdh-keysize.patch, they have been merged. - Refresh other patches. - Add no-cython_test_exception_raiser.patch to avoid another dependency. - Update URL and make use of sitelib, not sitearch macros OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Twisted?expand=0&rev=102
2021-03-10 10:15:47 +00:00
Requires: python-Automat >= 0.8.0
Requires: python-attrs >= 19.2.0
Requires: python-constantly >= 15.1
Requires: python-hyperlink >= 17.1.1
Accepting request 1199704 from home:glaubitz:branches:devel:languages:python - Update to 24.7.0 * 24.7.0.rc2 fixed an unreleased regression caused by PR 12109. (#12279) * twisted.web.util.redirectTo now HTML-escapes the provided URL in the fallback response body it returns (GHSA-cf56-g6w6-pqq2, CVE-2024-41810). (#9839) * The HTTP 1.0 and 1.1 server provided by twisted.web could process pipelined HTTP requests out-of-order, possibly resulting in information disclosure (CVE-2024-41671/GHSA-c8m8-j448-xjx7) (#12248) * twisted.protocols.ftp now supports the IPv6 extensions defined in RFC 2428. (#9645) * twisted.internet.defer.inlineCallbacks can now yield a coroutine. (#9972) * twisted.python._shellcomp.ZshArgumentsGenerator was updated for Python 3.13. (#12065) * twisted.web.wsgi request environment now contains the peer port number as `REMOTE_PORT`. (#12096) * twisted.internet.defer.Deferred.callback() and twisted.internet.defer.Deferred.addCallbacks() no longer use `assert` to check the type of the arguments. You should now use type checking to validate your code. These changes were done to reduce the CPU usage. (#12122) * Added two new methods, twisted.logger.Logger.failuresHandled and twisted.logger.Logger.\ failureHandler, which allow for more concise and convenient handling of exceptions when dispatching out to application code. The former can arbitrarily customize failure handling at the call site, and the latter can be used for performance-sensitive cases where no additional information needs to be logged. (#12188) * twisted.internet.defer.Deferred.addCallback now runs about 10% faster. (#12223) * twisted.internet.defer.Deferred error handling is now faster, taking 40% less time to run. (#12227) * twisted.internet.ssl.Certificate.__repr__ can now handle certificates without a common name (CN) in the certificate itself or the signing CA. (#5851) * Type annotations have been added to twisted.conch.interfaces.IKnownHostEntry and its implementations, twisted.conch.client.knownhosts.PlainHost and twisted.conch.client.knownhosts.HashedHost, correcting a variety of type confusion issues throughout the conch client code. (#9713) * twisted.python.failure.Failure once again utilizes the custom pickling logic it used to in the past. (#12112) * twisted.conch.client.knownhosts.KnownHostsFile.verifyHostKey no longer logs OBS-URL: https://build.opensuse.org/request/show/1199704 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Twisted?expand=0&rev=154
2024-09-20 21:39:51 +00:00
Requires: python-incremental >= 24.7.0
Requires: python-typing_extensions >= 3.6.5
Requires: python-zope.interface >= 4.4.2
Accepting request 984263 from home:bnavigator:branches:devel:languages:python - 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 OBS-URL: https://build.opensuse.org/request/show/984263 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Twisted?expand=0&rev=123
2022-06-22 06:14:46 +00:00
# /SECTION
%if %{with libalternatives}
BuildRequires: alts
Requires: alts
%else
Requires(post): update-alternatives
Requires(postun): update-alternatives
%endif
Accepting request 984263 from home:bnavigator:branches:devel:languages:python - 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 OBS-URL: https://build.opensuse.org/request/show/984263 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Twisted?expand=0&rev=123
2022-06-22 06:14:46 +00:00
%if %{with test}
BuildRequires: %{python_module Twisted-all_non_platform = %{version}}
BuildRequires: %{python_module Twisted-conch_nacl = %{version}}
BuildRequires: %{python_module httpx}
BuildRequires: %{python_module hypothesis}
Accepting request 984263 from home:bnavigator:branches:devel:languages:python - 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 OBS-URL: https://build.opensuse.org/request/show/984263 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Twisted?expand=0&rev=123
2022-06-22 06:14:46 +00:00
# declared nowhere but required to pass 8 tests with timezone checks
BuildRequires: %{python_module pytz}
%endif
%python_subpackages
- Update to version 0.11: Features: * The twistd man page now has a SIGNALS section. * reactor.spawnProcess now will not emit a PotentialZombieWarning when called before reactor.run, and there will be no potential for zombie processes in this case. * High-throughput applications based on Perspective Broker should now run noticably faster thanks to the use of a more efficient decoding function in Twisted Spread. * Documentation for trac-post-commit-hook functionality in svn-dev policy. * twisted.protocols.socks.SOCKSv4 now supports the SOCKSv4a protocol. * Trial can now output test results according to the subunit protocol, as long as Subunit is installed. * twisted.protocols.amp now provides a ListOf argument type which can be composed with some other argument types to create a zero or more element sequence of that type. * If returnValue is invoked outside of a function decorated with @inlineCallbacks, but causes a function thusly decorated to exit, a DeprecationWarning will be emitted explaining this potentially confusing behavior. In a future release, this will cause an exception. * twisted.python.logfile.BaseLogFile now has a reopen method allowing to use an external logrotate mechanism. Bugfixes: * FTP.ftp_NLST now handles requests on invalid paths in a way consistent with RFC 959. * twisted.python.util.initgroups now calls the low-level C initgroups by default if available: the python version can create lots of I/O with certain authentication setup to retrieve all the necessary information. * startLogging now does nothing on subsequent invocations, thus fixing a terrible infinite recursion bug that's only on edge case. * Stringify non-string data to NetstringReceiver.sendString before OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Twisted?expand=0&rev=1
2011-09-02 13:12:34 +00:00
%description
An extensible framework for Python programming, with special focus
on event-based network programming and multiprotocol integration.
%if 0%{?suse_version} > 1500
%package -n %{name}-doc
- Update to version 0.11: Features: * The twistd man page now has a SIGNALS section. * reactor.spawnProcess now will not emit a PotentialZombieWarning when called before reactor.run, and there will be no potential for zombie processes in this case. * High-throughput applications based on Perspective Broker should now run noticably faster thanks to the use of a more efficient decoding function in Twisted Spread. * Documentation for trac-post-commit-hook functionality in svn-dev policy. * twisted.protocols.socks.SOCKSv4 now supports the SOCKSv4a protocol. * Trial can now output test results according to the subunit protocol, as long as Subunit is installed. * twisted.protocols.amp now provides a ListOf argument type which can be composed with some other argument types to create a zero or more element sequence of that type. * If returnValue is invoked outside of a function decorated with @inlineCallbacks, but causes a function thusly decorated to exit, a DeprecationWarning will be emitted explaining this potentially confusing behavior. In a future release, this will cause an exception. * twisted.python.logfile.BaseLogFile now has a reopen method allowing to use an external logrotate mechanism. Bugfixes: * FTP.ftp_NLST now handles requests on invalid paths in a way consistent with RFC 959. * twisted.python.util.initgroups now calls the low-level C initgroups by default if available: the python version can create lots of I/O with certain authentication setup to retrieve all the necessary information. * startLogging now does nothing on subsequent invocations, thus fixing a terrible infinite recursion bug that's only on edge case. * Stringify non-string data to NetstringReceiver.sendString before OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Twisted?expand=0&rev=1
2011-09-02 13:12:34 +00:00
Summary: An asynchronous networking framework written in Python - Documentation
%description -n %{name}-doc
- Update to version 0.11: Features: * The twistd man page now has a SIGNALS section. * reactor.spawnProcess now will not emit a PotentialZombieWarning when called before reactor.run, and there will be no potential for zombie processes in this case. * High-throughput applications based on Perspective Broker should now run noticably faster thanks to the use of a more efficient decoding function in Twisted Spread. * Documentation for trac-post-commit-hook functionality in svn-dev policy. * twisted.protocols.socks.SOCKSv4 now supports the SOCKSv4a protocol. * Trial can now output test results according to the subunit protocol, as long as Subunit is installed. * twisted.protocols.amp now provides a ListOf argument type which can be composed with some other argument types to create a zero or more element sequence of that type. * If returnValue is invoked outside of a function decorated with @inlineCallbacks, but causes a function thusly decorated to exit, a DeprecationWarning will be emitted explaining this potentially confusing behavior. In a future release, this will cause an exception. * twisted.python.logfile.BaseLogFile now has a reopen method allowing to use an external logrotate mechanism. Bugfixes: * FTP.ftp_NLST now handles requests on invalid paths in a way consistent with RFC 959. * twisted.python.util.initgroups now calls the low-level C initgroups by default if available: the python version can create lots of I/O with certain authentication setup to retrieve all the necessary information. * startLogging now does nothing on subsequent invocations, thus fixing a terrible infinite recursion bug that's only on edge case. * Stringify non-string data to NetstringReceiver.sendString before OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Twisted?expand=0&rev=1
2011-09-02 13:12:34 +00:00
An extensible framework for Python programming, with special focus
on event-based network programming and multiprotocol integration.
This package contains the documentation for python-Twisted
%endif
- Update to version 0.11: Features: * The twistd man page now has a SIGNALS section. * reactor.spawnProcess now will not emit a PotentialZombieWarning when called before reactor.run, and there will be no potential for zombie processes in this case. * High-throughput applications based on Perspective Broker should now run noticably faster thanks to the use of a more efficient decoding function in Twisted Spread. * Documentation for trac-post-commit-hook functionality in svn-dev policy. * twisted.protocols.socks.SOCKSv4 now supports the SOCKSv4a protocol. * Trial can now output test results according to the subunit protocol, as long as Subunit is installed. * twisted.protocols.amp now provides a ListOf argument type which can be composed with some other argument types to create a zero or more element sequence of that type. * If returnValue is invoked outside of a function decorated with @inlineCallbacks, but causes a function thusly decorated to exit, a DeprecationWarning will be emitted explaining this potentially confusing behavior. In a future release, this will cause an exception. * twisted.python.logfile.BaseLogFile now has a reopen method allowing to use an external logrotate mechanism. Bugfixes: * FTP.ftp_NLST now handles requests on invalid paths in a way consistent with RFC 959. * twisted.python.util.initgroups now calls the low-level C initgroups by default if available: the python version can create lots of I/O with certain authentication setup to retrieve all the necessary information. * startLogging now does nothing on subsequent invocations, thus fixing a terrible infinite recursion bug that's only on edge case. * Stringify non-string data to NetstringReceiver.sendString before OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Twisted?expand=0&rev=1
2011-09-02 13:12:34 +00:00
Accepting request 984263 from home:bnavigator:branches:devel:languages:python - 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 OBS-URL: https://build.opensuse.org/request/show/984263 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Twisted?expand=0&rev=123
2022-06-22 06:14:46 +00:00
%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
%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-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.
%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}
%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
- Update to version 0.11: Features: * The twistd man page now has a SIGNALS section. * reactor.spawnProcess now will not emit a PotentialZombieWarning when called before reactor.run, and there will be no potential for zombie processes in this case. * High-throughput applications based on Perspective Broker should now run noticably faster thanks to the use of a more efficient decoding function in Twisted Spread. * Documentation for trac-post-commit-hook functionality in svn-dev policy. * twisted.protocols.socks.SOCKSv4 now supports the SOCKSv4a protocol. * Trial can now output test results according to the subunit protocol, as long as Subunit is installed. * twisted.protocols.amp now provides a ListOf argument type which can be composed with some other argument types to create a zero or more element sequence of that type. * If returnValue is invoked outside of a function decorated with @inlineCallbacks, but causes a function thusly decorated to exit, a DeprecationWarning will be emitted explaining this potentially confusing behavior. In a future release, this will cause an exception. * twisted.python.logfile.BaseLogFile now has a reopen method allowing to use an external logrotate mechanism. Bugfixes: * FTP.ftp_NLST now handles requests on invalid paths in a way consistent with RFC 959. * twisted.python.util.initgroups now calls the low-level C initgroups by default if available: the python version can create lots of I/O with certain authentication setup to retrieve all the necessary information. * startLogging now does nothing on subsequent invocations, thus fixing a terrible infinite recursion bug that's only on edge case. * Stringify non-string data to NetstringReceiver.sendString before OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Twisted?expand=0&rev=1
2011-09-02 13:12:34 +00:00
%prep
Accepting request 1128275 from home:mcalabkova:branches:devel:languages:python:numeric - Update to 23.10.0 * reactor.spawnProcess() now uses posix_spawnp when possible, making it much more efficient (#5710) * Twisted now officially supports Python 3.11. (#10343) * twisted.internet.defer.race has been added as a way to get the first available result from a list of Deferreds. (#11817) * The CI suite was updated to execute the tests using a Python 3.12 pre-release (#11857) * PyAsn1 has been removed as a conch dependency. * Due to changes in the way raw private key byte serialization are handled in Cryptography, and widespread support for Ed25519 in current versions of OpenSSL, we no longer support PyNaCl as a fallback for Ed25519 keys in Conch. (#11871) * In Twisted 16.3.0, we changed twisted.web to stop dispatching HTTP/1.1 pipelined requests to application code. There was a bug in this change which still allowed clients which could send multiple full HTTP requests in a single TCP segment to trigger asynchronous processing of later requests, which could lead to out-of-order responses. This has now been corrected and twisted.web should never process a pipelined request over HTTP/1.1 until the previous request has fully completed. (CVE-2023-46137, GHSA-cq7q-gv5w-rwx2) (#11976) * Drop support for Python 3.7. Remove twisted[contextvars] extra (contextvars are always available in Python 3.7+) (#11913) * When using CPython, functions wrapped by twisted.internet.defer.inlineCallbacks can have their arguments and return values freed immediately after completion (due to there no longer being circular references). (#11885) - Delete merged patches: * regenerate-cert-to-work-with-latest-service-identity.patch * no-pygtkcompat.patch * support-new-glibc.patch * CVE-2023-46137-HTTP-pipeline-response.patch * remove-pynacl-optional-dependency.patch * py311-tests-compat.patch OBS-URL: https://build.opensuse.org/request/show/1128275 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Twisted?expand=0&rev=143
2023-11-23 16:03:01 +00:00
%autosetup -p1 -n twisted-%{version}
sed -i '1{/env python/d}' src/twisted/mail/test/pop3testserver.py src/twisted/trial/test/scripttest.py
find src/twisted -name .gitignore -delete
find src/twisted -name '*.misc' -size 0 -delete
- Update to version 0.11: Features: * The twistd man page now has a SIGNALS section. * reactor.spawnProcess now will not emit a PotentialZombieWarning when called before reactor.run, and there will be no potential for zombie processes in this case. * High-throughput applications based on Perspective Broker should now run noticably faster thanks to the use of a more efficient decoding function in Twisted Spread. * Documentation for trac-post-commit-hook functionality in svn-dev policy. * twisted.protocols.socks.SOCKSv4 now supports the SOCKSv4a protocol. * Trial can now output test results according to the subunit protocol, as long as Subunit is installed. * twisted.protocols.amp now provides a ListOf argument type which can be composed with some other argument types to create a zero or more element sequence of that type. * If returnValue is invoked outside of a function decorated with @inlineCallbacks, but causes a function thusly decorated to exit, a DeprecationWarning will be emitted explaining this potentially confusing behavior. In a future release, this will cause an exception. * twisted.python.logfile.BaseLogFile now has a reopen method allowing to use an external logrotate mechanism. Bugfixes: * FTP.ftp_NLST now handles requests on invalid paths in a way consistent with RFC 959. * twisted.python.util.initgroups now calls the low-level C initgroups by default if available: the python version can create lots of I/O with certain authentication setup to retrieve all the necessary information. * startLogging now does nothing on subsequent invocations, thus fixing a terrible infinite recursion bug that's only on edge case. * Stringify non-string data to NetstringReceiver.sendString before OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Twisted?expand=0&rev=1
2011-09-02 13:12:34 +00:00
Accepting request 984263 from home:bnavigator:branches:devel:languages:python - 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 OBS-URL: https://build.opensuse.org/request/show/984263 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Twisted?expand=0&rev=123
2022-06-22 06:14:46 +00:00
%if ! %{with test}
- Update to version 0.11: Features: * The twistd man page now has a SIGNALS section. * reactor.spawnProcess now will not emit a PotentialZombieWarning when called before reactor.run, and there will be no potential for zombie processes in this case. * High-throughput applications based on Perspective Broker should now run noticably faster thanks to the use of a more efficient decoding function in Twisted Spread. * Documentation for trac-post-commit-hook functionality in svn-dev policy. * twisted.protocols.socks.SOCKSv4 now supports the SOCKSv4a protocol. * Trial can now output test results according to the subunit protocol, as long as Subunit is installed. * twisted.protocols.amp now provides a ListOf argument type which can be composed with some other argument types to create a zero or more element sequence of that type. * If returnValue is invoked outside of a function decorated with @inlineCallbacks, but causes a function thusly decorated to exit, a DeprecationWarning will be emitted explaining this potentially confusing behavior. In a future release, this will cause an exception. * twisted.python.logfile.BaseLogFile now has a reopen method allowing to use an external logrotate mechanism. Bugfixes: * FTP.ftp_NLST now handles requests on invalid paths in a way consistent with RFC 959. * twisted.python.util.initgroups now calls the low-level C initgroups by default if available: the python version can create lots of I/O with certain authentication setup to retrieve all the necessary information. * startLogging now does nothing on subsequent invocations, thus fixing a terrible infinite recursion bug that's only on edge case. * Stringify non-string data to NetstringReceiver.sendString before OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Twisted?expand=0&rev=1
2011-09-02 13:12:34 +00:00
%build
Accepting request 1128275 from home:mcalabkova:branches:devel:languages:python:numeric - Update to 23.10.0 * reactor.spawnProcess() now uses posix_spawnp when possible, making it much more efficient (#5710) * Twisted now officially supports Python 3.11. (#10343) * twisted.internet.defer.race has been added as a way to get the first available result from a list of Deferreds. (#11817) * The CI suite was updated to execute the tests using a Python 3.12 pre-release (#11857) * PyAsn1 has been removed as a conch dependency. * Due to changes in the way raw private key byte serialization are handled in Cryptography, and widespread support for Ed25519 in current versions of OpenSSL, we no longer support PyNaCl as a fallback for Ed25519 keys in Conch. (#11871) * In Twisted 16.3.0, we changed twisted.web to stop dispatching HTTP/1.1 pipelined requests to application code. There was a bug in this change which still allowed clients which could send multiple full HTTP requests in a single TCP segment to trigger asynchronous processing of later requests, which could lead to out-of-order responses. This has now been corrected and twisted.web should never process a pipelined request over HTTP/1.1 until the previous request has fully completed. (CVE-2023-46137, GHSA-cq7q-gv5w-rwx2) (#11976) * Drop support for Python 3.7. Remove twisted[contextvars] extra (contextvars are always available in Python 3.7+) (#11913) * When using CPython, functions wrapped by twisted.internet.defer.inlineCallbacks can have their arguments and return values freed immediately after completion (due to there no longer being circular references). (#11885) - Delete merged patches: * regenerate-cert-to-work-with-latest-service-identity.patch * no-pygtkcompat.patch * support-new-glibc.patch * CVE-2023-46137-HTTP-pipeline-response.patch * remove-pynacl-optional-dependency.patch * py311-tests-compat.patch OBS-URL: https://build.opensuse.org/request/show/1128275 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Twisted?expand=0&rev=143
2023-11-23 16:03:01 +00:00
%pyproject_wheel
# empty files
rm docs/{fun/Twisted.Quotes,_static/.placeholder,_templates/.placeholder}
%fdupes docs
Accepting request 984263 from home:bnavigator:branches:devel:languages:python - 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 OBS-URL: https://build.opensuse.org/request/show/984263 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Twisted?expand=0&rev=123
2022-06-22 06:14:46 +00:00
%endif
- Update to version 0.11: Features: * The twistd man page now has a SIGNALS section. * reactor.spawnProcess now will not emit a PotentialZombieWarning when called before reactor.run, and there will be no potential for zombie processes in this case. * High-throughput applications based on Perspective Broker should now run noticably faster thanks to the use of a more efficient decoding function in Twisted Spread. * Documentation for trac-post-commit-hook functionality in svn-dev policy. * twisted.protocols.socks.SOCKSv4 now supports the SOCKSv4a protocol. * Trial can now output test results according to the subunit protocol, as long as Subunit is installed. * twisted.protocols.amp now provides a ListOf argument type which can be composed with some other argument types to create a zero or more element sequence of that type. * If returnValue is invoked outside of a function decorated with @inlineCallbacks, but causes a function thusly decorated to exit, a DeprecationWarning will be emitted explaining this potentially confusing behavior. In a future release, this will cause an exception. * twisted.python.logfile.BaseLogFile now has a reopen method allowing to use an external logrotate mechanism. Bugfixes: * FTP.ftp_NLST now handles requests on invalid paths in a way consistent with RFC 959. * twisted.python.util.initgroups now calls the low-level C initgroups by default if available: the python version can create lots of I/O with certain authentication setup to retrieve all the necessary information. * startLogging now does nothing on subsequent invocations, thus fixing a terrible infinite recursion bug that's only on edge case. * Stringify non-string data to NetstringReceiver.sendString before OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Twisted?expand=0&rev=1
2011-09-02 13:12:34 +00:00
Accepting request 984263 from home:bnavigator:branches:devel:languages:python - 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 OBS-URL: https://build.opensuse.org/request/show/984263 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Twisted?expand=0&rev=123
2022-06-22 06:14:46 +00:00
%if ! %{with test}
- Update to version 0.11: Features: * The twistd man page now has a SIGNALS section. * reactor.spawnProcess now will not emit a PotentialZombieWarning when called before reactor.run, and there will be no potential for zombie processes in this case. * High-throughput applications based on Perspective Broker should now run noticably faster thanks to the use of a more efficient decoding function in Twisted Spread. * Documentation for trac-post-commit-hook functionality in svn-dev policy. * twisted.protocols.socks.SOCKSv4 now supports the SOCKSv4a protocol. * Trial can now output test results according to the subunit protocol, as long as Subunit is installed. * twisted.protocols.amp now provides a ListOf argument type which can be composed with some other argument types to create a zero or more element sequence of that type. * If returnValue is invoked outside of a function decorated with @inlineCallbacks, but causes a function thusly decorated to exit, a DeprecationWarning will be emitted explaining this potentially confusing behavior. In a future release, this will cause an exception. * twisted.python.logfile.BaseLogFile now has a reopen method allowing to use an external logrotate mechanism. Bugfixes: * FTP.ftp_NLST now handles requests on invalid paths in a way consistent with RFC 959. * twisted.python.util.initgroups now calls the low-level C initgroups by default if available: the python version can create lots of I/O with certain authentication setup to retrieve all the necessary information. * startLogging now does nothing on subsequent invocations, thus fixing a terrible infinite recursion bug that's only on edge case. * Stringify non-string data to NetstringReceiver.sendString before OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Twisted?expand=0&rev=1
2011-09-02 13:12:34 +00:00
%install
Accepting request 1128275 from home:mcalabkova:branches:devel:languages:python:numeric - Update to 23.10.0 * reactor.spawnProcess() now uses posix_spawnp when possible, making it much more efficient (#5710) * Twisted now officially supports Python 3.11. (#10343) * twisted.internet.defer.race has been added as a way to get the first available result from a list of Deferreds. (#11817) * The CI suite was updated to execute the tests using a Python 3.12 pre-release (#11857) * PyAsn1 has been removed as a conch dependency. * Due to changes in the way raw private key byte serialization are handled in Cryptography, and widespread support for Ed25519 in current versions of OpenSSL, we no longer support PyNaCl as a fallback for Ed25519 keys in Conch. (#11871) * In Twisted 16.3.0, we changed twisted.web to stop dispatching HTTP/1.1 pipelined requests to application code. There was a bug in this change which still allowed clients which could send multiple full HTTP requests in a single TCP segment to trigger asynchronous processing of later requests, which could lead to out-of-order responses. This has now been corrected and twisted.web should never process a pipelined request over HTTP/1.1 until the previous request has fully completed. (CVE-2023-46137, GHSA-cq7q-gv5w-rwx2) (#11976) * Drop support for Python 3.7. Remove twisted[contextvars] extra (contextvars are always available in Python 3.7+) (#11913) * When using CPython, functions wrapped by twisted.internet.defer.inlineCallbacks can have their arguments and return values freed immediately after completion (due to there no longer being circular references). (#11885) - Delete merged patches: * regenerate-cert-to-work-with-latest-service-identity.patch * no-pygtkcompat.patch * support-new-glibc.patch * CVE-2023-46137-HTTP-pipeline-response.patch * remove-pynacl-optional-dependency.patch * py311-tests-compat.patch OBS-URL: https://build.opensuse.org/request/show/1128275 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Twisted?expand=0&rev=143
2023-11-23 16:03:01 +00:00
%pyproject_install
find %{buildroot} -regex '.*\.[ch]' -exec rm {} ";" # Remove leftover C sources
install -dm0755 %{buildroot}%{_mandir}/man1/
install -m0644 docs/*/man/*.1 %{buildroot}%{_mandir}/man1/ # Install man pages
find docs -type f -print0 | xargs -0 chmod a-x # Fix doc-file dependency by removing x flags
#sed -i "s/\r//" docs/core/howto/listings/udp/{MulticastClient,MulticastServer}.py
- Update to 21.7.0: - Python 3.10 beta is now a supported platform and should be ready for the final 3.10 release. - twisted.web.template.renderElement() now accepts any IRequest implementer instead of only twisted.web.server.Request. Add type hints to twisted.web.template. (#10184) - Type hinting was added to twisted.internet.defer, making this the first release of Twisted where you might reasonably be able to use mypy without your own custom stub files. (#10017) - Patch incremental-21.patch removed, because included in the upstream tarball. - The enableSessions argument to twisted.internet.ssl.CertificateOptions now - actually enables/disables OpenSSL's session cache. Also, due to - session-related bugs, it defaults to False. (#9583) - twisted.internet.defer.inlineCallbacks and ensureDeferred will now associate a contextvars.Context with the coroutines they run, meaning that ContextVar objects will maintain their value within the same coroutine, similarly to asyncio Tasks. This functionality requires Python 3.7+, or the contextvars PyPI backport to be installed for Python 3.5-3.6. (#9719, #9826) - twisted.internet.defer.Deferred.fromCoroutine has been added. This is similar to the existing ensureDeferred function, but is named more consistently inside Twisted and does not pass through Deferreds. (#9825) - trial now allows the @unittest.skipIf decorator to specify that an entire test class should be skipped. (#9829) - The twisted.python.deprecate.deprecatedKeywordParameter decorator can be used to mark a keyword paramater of a function or method as deprecated. (#9844) OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Twisted?expand=0&rev=107
2021-07-31 06:18:53 +00:00
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%if 0%{?suse_version} > 1500
mkdir -p %{buildroot}%{_docdir}/%{name}-doc
cp -r docs/* %{buildroot}%{_docdir}/%{name}-doc
%fdupes %{buildroot}%{_docdir}/%{name}-doc
%endif
- Update to version 0.11: Features: * The twistd man page now has a SIGNALS section. * reactor.spawnProcess now will not emit a PotentialZombieWarning when called before reactor.run, and there will be no potential for zombie processes in this case. * High-throughput applications based on Perspective Broker should now run noticably faster thanks to the use of a more efficient decoding function in Twisted Spread. * Documentation for trac-post-commit-hook functionality in svn-dev policy. * twisted.protocols.socks.SOCKSv4 now supports the SOCKSv4a protocol. * Trial can now output test results according to the subunit protocol, as long as Subunit is installed. * twisted.protocols.amp now provides a ListOf argument type which can be composed with some other argument types to create a zero or more element sequence of that type. * If returnValue is invoked outside of a function decorated with @inlineCallbacks, but causes a function thusly decorated to exit, a DeprecationWarning will be emitted explaining this potentially confusing behavior. In a future release, this will cause an exception. * twisted.python.logfile.BaseLogFile now has a reopen method allowing to use an external logrotate mechanism. Bugfixes: * FTP.ftp_NLST now handles requests on invalid paths in a way consistent with RFC 959. * twisted.python.util.initgroups now calls the low-level C initgroups by default if available: the python version can create lots of I/O with certain authentication setup to retrieve all the necessary information. * startLogging now does nothing on subsequent invocations, thus fixing a terrible infinite recursion bug that's only on edge case. * Stringify non-string data to NetstringReceiver.sendString before OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Twisted?expand=0&rev=1
2011-09-02 13:12:34 +00:00
# Prepare for update-alternatives usage
for p in twistd cftp ckeygen conch pyhtmlizer tkconch trial ; do
%python_clone -a %{buildroot}%{_bindir}/$p
%python_clone -a %{buildroot}%{_mandir}/man1/$p.1
done
# mailmail is useful only on Python 2
rm %{buildroot}%{_bindir}/mailmail %{buildroot}%{_mandir}/man1/mailmail.1
# no manpage for twist yet:
%python_clone -a %{buildroot}%{_bindir}/twist
# group all the alternatives under one master
%python_group_libalternatives twistd cftp ckeygen conch pyhtmlizer tkconch trial twist
Accepting request 984263 from home:bnavigator:branches:devel:languages:python - 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 OBS-URL: https://build.opensuse.org/request/show/984263 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Twisted?expand=0&rev=123
2022-06-22 06:14:46 +00:00
%endif
Accepting request 984263 from home:bnavigator:branches:devel:languages:python - 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 OBS-URL: https://build.opensuse.org/request/show/984263 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Twisted?expand=0&rev=123
2022-06-22 06:14:46 +00:00
%if %{with test}
%check
export LANG=en_US.UTF-8
export PYTHONDONTWRITEBYTECODE=1
Accepting request 984263 from home:bnavigator:branches:devel:languages:python - 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 OBS-URL: https://build.opensuse.org/request/show/984263 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Twisted?expand=0&rev=123
2022-06-22 06:14:46 +00:00
%{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}})
done
}
export PATH=$PWD/build/bin/:$PATH
# Relax the crypto policies for the test-suite
export OPENSSL_SYSTEM_CIPHERS_OVERRIDE=xyz_nonexistent_file
export OPENSSL_CONF=''
- Update to 21.2.0: * Features + The enableSessions argument to twisted.internet.ssl.CertificateOptions now + actually enables/disables OpenSSL's session cache. Also, due to + session-related bugs, it defaults to False. (#9583) + twisted.internet.defer.inlineCallbacks and ensureDeferred will now associate a contextvars.Context with the coroutines they run, meaning that ContextVar objects will maintain their value within the same coroutine, similarly to asyncio Tasks. This functionality requires Python 3.7+, or the contextvars PyPI backport to be installed for Python 3.5-3.6. (#9719, #9826) + twisted.internet.defer.Deferred.fromCoroutine has been added. This is similar to the existing ensureDeferred function, but is named more consistently inside Twisted and does not pass through Deferreds. (#9825) + trial now allows the @unittest.skipIf decorator to specify that an entire test class should be skipped. (#9829) + The twisted.python.deprecate.deprecatedKeywordParameter decorator can be used to mark a keyword paramater of a function or method as deprecated. (#9844) + Projects using Twisted can now perform type checking against a Twisted + installation, for example using mypy. (#9908) + twisted.python.util.InsensitiveDict now fully implements MutableMapping. (#9919) + Python 3.8 is now tested and supported. (#9955) + Support a coroutine function in twisted.internet.task.react (#9974) + PyPy 3.7 is now tested and supported. (#10093) * Bugfixes + twisted.web.twcgi.CGIProcessProtocol.processEnded(...) now handles an already-finished request, for example when request.connectionLost(...) was called previously. (#9468) + Twisted's dependency on PyHamcrest has been moved from the base package to the new "test" extra. Consequently the test extra must be installed for Twisted's test suite to pass. (#9509) + Fixed serialization of timedelta, date, and time objects in twisted.spread. (#9716) + twisted.internet.asyncioreactor.AsyncioSelectorReactor now raises an exception if instantiated with an event loop which is not compatible with asyncio.SelectorEventLoop. This fixes the AsyncioSelectorReactor in Python 3.8+ on Windows, where in bp-34687 the default Windows asyncio event loop was changed to ProactorEventLoop. Applications that use AsyncioSelectorReactor on Windows with Python 3.8+ must call asyncio.set_event_loop_policy(asyncio.WindowsSelectorEventLoopPolicy()) before instantiating and running AsyncioSelectorReactor. (#9766) + twisted.internet.process.registerReapProcessHandler and ._BaseProcess.reapProcess will no longer raise a TypeError when processing a None PID (#9775) + INotify will close its file descriptor if a directory is automatically removed by twisted from the watchlist because it's deleted, avoiding orphaned filedescriptors. (#9777) + DelayedCall.reset() is now working properly with asyncioreactor (#9780) + AsyncioSelectorReactor.seconds() now correctly returns an epoch time. (#9787) + The _connDone parameter has been removed from twisted.internet.abstract.FileDescriptor.loseConnection()'s signature in order to match the signature in the base class twisted.internet._newtls.ConnectionMixin loseConnection(). (#9849) + The Gtk3 reactor now runs on Wayland-only sessions (#9904) + Descriptive error messages from twisted.internet.error are now present when running with 'python -OO'. (#9918) + Comparator methods such as eq() now always return NotImplemented for uncomparable types. (#9919) + When installing Twisted it now requires a minimum Python 3.5.4 version to match the version used with automated testing. This is the minimum Python version that we know that Twisted works with. (#10098) - Drop patches no-pygtkcompat.patch, python-38-hmac-digestmod.patch, python-38-no-cgi-parseqs.patch, twisted-pr1369-remove-pyopenssl-npn.patch & twisted-pr1487-increase-ffdh-keysize.patch, they have been merged. - Refresh other patches. - Add no-cython_test_exception_raiser.patch to avoid another dependency. - Update URL and make use of sitelib, not sitearch macros OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Twisted?expand=0&rev=102
2021-03-10 10:15:47 +00:00
%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} $python -m twisted.trial twisted
Accepting request 984263 from home:bnavigator:branches:devel:languages:python - 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 OBS-URL: https://build.opensuse.org/request/show/984263 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Twisted?expand=0&rev=123
2022-06-22 06:14:46 +00:00
%endif
%pre
%python_libalternatives_reset_alternative twistd
# these were master alternatives until Dec 2020
for f in cftp ckeygen conch pyhtmlizer tkconch trial twist; do
%python_libalternatives_reset_alternative $f
done
%post
%if !%{with libalternatives}
# these were master alternatives until Dec 2020. Remove before the install as slave links
for f in cftp ckeygen conch pyhtmlizer tkconch trial twist; do
(update-alternatives --quiet --list $f 2>&1 >/dev/null) && update-alternatives --quiet --remove-all $f
done
%endif
%{python_install_alternative twistd cftp ckeygen conch pyhtmlizer tkconch trial twist
twistd.1 cftp.1 ckeygen.1 conch.1 pyhtmlizer.1 tkconch.1 trial.1}
%postun
%python_uninstall_alternative twistd
Accepting request 984263 from home:bnavigator:branches:devel:languages:python - 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 OBS-URL: https://build.opensuse.org/request/show/984263 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Twisted?expand=0&rev=123
2022-06-22 06:14:46 +00:00
%if ! %{with test}
%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
Accepting request 984263 from home:bnavigator:branches:devel:languages:python - 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 OBS-URL: https://build.opensuse.org/request/show/984263 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Twisted?expand=0&rev=123
2022-06-22 06:14:46 +00:00
%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}/pyhtmlizer
%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/pyhtmlizer.1%{?ext_man}
%python_alternative %{_mandir}/man1/trial.1%{?ext_man}
- Update to 21.2.0: * Features + The enableSessions argument to twisted.internet.ssl.CertificateOptions now + actually enables/disables OpenSSL's session cache. Also, due to + session-related bugs, it defaults to False. (#9583) + twisted.internet.defer.inlineCallbacks and ensureDeferred will now associate a contextvars.Context with the coroutines they run, meaning that ContextVar objects will maintain their value within the same coroutine, similarly to asyncio Tasks. This functionality requires Python 3.7+, or the contextvars PyPI backport to be installed for Python 3.5-3.6. (#9719, #9826) + twisted.internet.defer.Deferred.fromCoroutine has been added. This is similar to the existing ensureDeferred function, but is named more consistently inside Twisted and does not pass through Deferreds. (#9825) + trial now allows the @unittest.skipIf decorator to specify that an entire test class should be skipped. (#9829) + The twisted.python.deprecate.deprecatedKeywordParameter decorator can be used to mark a keyword paramater of a function or method as deprecated. (#9844) + Projects using Twisted can now perform type checking against a Twisted + installation, for example using mypy. (#9908) + twisted.python.util.InsensitiveDict now fully implements MutableMapping. (#9919) + Python 3.8 is now tested and supported. (#9955) + Support a coroutine function in twisted.internet.task.react (#9974) + PyPy 3.7 is now tested and supported. (#10093) * Bugfixes + twisted.web.twcgi.CGIProcessProtocol.processEnded(...) now handles an already-finished request, for example when request.connectionLost(...) was called previously. (#9468) + Twisted's dependency on PyHamcrest has been moved from the base package to the new "test" extra. Consequently the test extra must be installed for Twisted's test suite to pass. (#9509) + Fixed serialization of timedelta, date, and time objects in twisted.spread. (#9716) + twisted.internet.asyncioreactor.AsyncioSelectorReactor now raises an exception if instantiated with an event loop which is not compatible with asyncio.SelectorEventLoop. This fixes the AsyncioSelectorReactor in Python 3.8+ on Windows, where in bp-34687 the default Windows asyncio event loop was changed to ProactorEventLoop. Applications that use AsyncioSelectorReactor on Windows with Python 3.8+ must call asyncio.set_event_loop_policy(asyncio.WindowsSelectorEventLoopPolicy()) before instantiating and running AsyncioSelectorReactor. (#9766) + twisted.internet.process.registerReapProcessHandler and ._BaseProcess.reapProcess will no longer raise a TypeError when processing a None PID (#9775) + INotify will close its file descriptor if a directory is automatically removed by twisted from the watchlist because it's deleted, avoiding orphaned filedescriptors. (#9777) + DelayedCall.reset() is now working properly with asyncioreactor (#9780) + AsyncioSelectorReactor.seconds() now correctly returns an epoch time. (#9787) + The _connDone parameter has been removed from twisted.internet.abstract.FileDescriptor.loseConnection()'s signature in order to match the signature in the base class twisted.internet._newtls.ConnectionMixin loseConnection(). (#9849) + The Gtk3 reactor now runs on Wayland-only sessions (#9904) + Descriptive error messages from twisted.internet.error are now present when running with 'python -OO'. (#9918) + Comparator methods such as eq() now always return NotImplemented for uncomparable types. (#9919) + When installing Twisted it now requires a minimum Python 3.5.4 version to match the version used with automated testing. This is the minimum Python version that we know that Twisted works with. (#10098) - Drop patches no-pygtkcompat.patch, python-38-hmac-digestmod.patch, python-38-no-cgi-parseqs.patch, twisted-pr1369-remove-pyopenssl-npn.patch & twisted-pr1487-increase-ffdh-keysize.patch, they have been merged. - Refresh other patches. - Add no-cython_test_exception_raiser.patch to avoid another dependency. - Update URL and make use of sitelib, not sitearch macros OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Twisted?expand=0&rev=102
2021-03-10 10:15:47 +00:00
%{python_sitelib}/twisted
Accepting request 1128275 from home:mcalabkova:branches:devel:languages:python:numeric - Update to 23.10.0 * reactor.spawnProcess() now uses posix_spawnp when possible, making it much more efficient (#5710) * Twisted now officially supports Python 3.11. (#10343) * twisted.internet.defer.race has been added as a way to get the first available result from a list of Deferreds. (#11817) * The CI suite was updated to execute the tests using a Python 3.12 pre-release (#11857) * PyAsn1 has been removed as a conch dependency. * Due to changes in the way raw private key byte serialization are handled in Cryptography, and widespread support for Ed25519 in current versions of OpenSSL, we no longer support PyNaCl as a fallback for Ed25519 keys in Conch. (#11871) * In Twisted 16.3.0, we changed twisted.web to stop dispatching HTTP/1.1 pipelined requests to application code. There was a bug in this change which still allowed clients which could send multiple full HTTP requests in a single TCP segment to trigger asynchronous processing of later requests, which could lead to out-of-order responses. This has now been corrected and twisted.web should never process a pipelined request over HTTP/1.1 until the previous request has fully completed. (CVE-2023-46137, GHSA-cq7q-gv5w-rwx2) (#11976) * Drop support for Python 3.7. Remove twisted[contextvars] extra (contextvars are always available in Python 3.7+) (#11913) * When using CPython, functions wrapped by twisted.internet.defer.inlineCallbacks can have their arguments and return values freed immediately after completion (due to there no longer being circular references). (#11885) - Delete merged patches: * regenerate-cert-to-work-with-latest-service-identity.patch * no-pygtkcompat.patch * support-new-glibc.patch * CVE-2023-46137-HTTP-pipeline-response.patch * remove-pynacl-optional-dependency.patch * py311-tests-compat.patch OBS-URL: https://build.opensuse.org/request/show/1128275 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Twisted?expand=0&rev=143
2023-11-23 16:03:01 +00:00
%{python_sitelib}/twisted-%{version}*-info
%if 0%{?suse_version} > 1500
%files -n %{name}-doc
%doc %{_docdir}/%{name}-doc
%else
%doc docs/
%endif
Accepting request 984263 from home:bnavigator:branches:devel:languages:python - 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 OBS-URL: https://build.opensuse.org/request/show/984263 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Twisted?expand=0&rev=123
2022-06-22 06:14:46 +00:00
%endif
- Update to version 0.11: Features: * The twistd man page now has a SIGNALS section. * reactor.spawnProcess now will not emit a PotentialZombieWarning when called before reactor.run, and there will be no potential for zombie processes in this case. * High-throughput applications based on Perspective Broker should now run noticably faster thanks to the use of a more efficient decoding function in Twisted Spread. * Documentation for trac-post-commit-hook functionality in svn-dev policy. * twisted.protocols.socks.SOCKSv4 now supports the SOCKSv4a protocol. * Trial can now output test results according to the subunit protocol, as long as Subunit is installed. * twisted.protocols.amp now provides a ListOf argument type which can be composed with some other argument types to create a zero or more element sequence of that type. * If returnValue is invoked outside of a function decorated with @inlineCallbacks, but causes a function thusly decorated to exit, a DeprecationWarning will be emitted explaining this potentially confusing behavior. In a future release, this will cause an exception. * twisted.python.logfile.BaseLogFile now has a reopen method allowing to use an external logrotate mechanism. Bugfixes: * FTP.ftp_NLST now handles requests on invalid paths in a way consistent with RFC 959. * twisted.python.util.initgroups now calls the low-level C initgroups by default if available: the python version can create lots of I/O with certain authentication setup to retrieve all the necessary information. * startLogging now does nothing on subsequent invocations, thus fixing a terrible infinite recursion bug that's only on edge case. * Stringify non-string data to NetstringReceiver.sendString before OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Twisted?expand=0&rev=1
2011-09-02 13:12:34 +00:00
%changelog