instance_id
stringlengths
10
57
file_changes
listlengths
1
15
repo
stringlengths
7
53
base_commit
stringlengths
40
40
problem_statement
stringlengths
11
52.5k
patch
stringlengths
251
7.06M
agronholm__anyio-227
[ { "changes": { "added_entities": [ "src/anyio/_backends/_asyncio.py:find_root_task", "src/anyio/_backends/_asyncio.py:_thread_pool_worker", "src/anyio/_backends/_asyncio.py:_loop_shutdown_callback" ], "added_modules": [ "src/anyio/_backends/_asyncio.py:find_root...
agronholm/anyio
8c136ffff989fb12c738bf87183046285b738a63
Use thread pools in run_sync_in_worker_thread() Right now, the asyncio implementation of this starts a new thread every time this function is called. We should be using thread pools instead, like trio does.
diff --git a/docs/versionhistory.rst b/docs/versionhistory.rst index b9fa806..466bc78 100644 --- a/docs/versionhistory.rst +++ b/docs/versionhistory.rst @@ -54,6 +54,7 @@ This library adheres to `Semantic Versioning 2.0 <http://semver.org/>`_. - Added the ``run_sync_from_thread()`` function - Added ``UNIXSocketStream...
agronholm__anyio-268
[ { "changes": { "added_entities": [ "src/anyio/_backends/_asyncio.py:_get_task_callbacks", "src/anyio/_backends/_asyncio.py:WorkerThread.__init__", "src/anyio/_backends/_asyncio.py:WorkerThread.run", "src/anyio/_backends/_asyncio.py:WorkerThread.stop" ], "added_m...
agronholm/anyio
5169f1d1d3812cd63109fb5be7a661b6f0f42cf2
to_thread.run_sync() doesn't work with the tornado event loop Hi there! [jupyter_server](https://github.com/jupyter-server/jupyter_server) uses the anyio v2 `run_sync_in_worker_thread` function , and I noticed a possible bug after upgrading to anyio v3. This is the error I see when using `to_thread.run_sync()`:...
diff --git a/docs/synchronization.rst b/docs/synchronization.rst index e5400df..b737b54 100644 --- a/docs/synchronization.rst +++ b/docs/synchronization.rst @@ -119,15 +119,15 @@ Example:: await sleep(1) async with condition: - await condition.notify(1) + condit...
agronholm__anyio-273
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "src/anyio/_backends/_asyncio.py:find_root_task" ], "edited_modules": [ "src/anyio/_backends/_asyncio.py:find_root_task" ] }, "file": "src/anyio/_backends/_asyncio.py" ...
agronholm/anyio
72baca901c599e7fdf22c2777b9b6a304ddd975d
Handle partial asyncio future callbacks As discussed on gitter, ``` def find_root_task() -> asyncio.Task: try: root_task = _root_task.get() except LookupError: for task in all_tasks(): if task._callbacks: for cb in _get_task_callb...
diff --git a/src/anyio/_backends/_asyncio.py b/src/anyio/_backends/_asyncio.py index 02053e4..7a7eaaf 100644 --- a/src/anyio/_backends/_asyncio.py +++ b/src/anyio/_backends/_asyncio.py @@ -141,7 +141,8 @@ def find_root_task() -> asyncio.Task: for task in all_tasks(): if task._callbacks: ...
agronholm__anyio-307
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "src/anyio/_backends/_asyncio.py:find_root_task", "src/anyio/_backends/_asyncio.py:run_sync_in_worker_thread" ], "edited_modules": [ "src/anyio/_backends/_asyncio.py:find_root...
agronholm/anyio
99ec00e67c533d4b12d2a2aff8cb6aa2b0f0344f
`anyio.to_thread.run_sync()` hangs IPython when using top-level await expressions Not sure if this is a problem with IPython, `anyio` or something else. If you launch a IPython shell, like so: ```bash $ ipython Python 3.10.0b2+ (heads/3.10:9c89d62, Jun 2 2021, 20:22:16) [GCC 10.3.0] Type 'copyright', 'credits' ...
diff --git a/docs/versionhistory.rst b/docs/versionhistory.rst index 5fa0671..74435e1 100644 --- a/docs/versionhistory.rst +++ b/docs/versionhistory.rst @@ -5,6 +5,8 @@ This library adheres to `Semantic Versioning 2.0 <http://semver.org/>`_. **UNRELEASED** +- Fixed ``to_thread.run_sync()`` hanging on the second ca...
agronholm__anyio-319
[ { "changes": { "added_entities": [ "src/anyio/_backends/_asyncio.py:WorkerThread._report_result" ], "added_modules": null, "edited_entities": [ "src/anyio/_backends/_asyncio.py:WorkerThread.run", "src/anyio/_backends/_asyncio.py:run_sync_in_worker_thread" ],...
agronholm/anyio
01374b8994e4f9d2012b3509717f4281e6392131
asyncio worker threads are prematurely shut-down on SIGINT ```python import anyio import time def thread(): print("thread start", time.time()) time.sleep(5) print("thread end", time.time()) async def main(): async with anyio.create_task_group() as tg: tg.start_soon(anyio.to_thread.r...
diff --git a/docs/versionhistory.rst b/docs/versionhistory.rst index 57e4e92..509bd8b 100644 --- a/docs/versionhistory.rst +++ b/docs/versionhistory.rst @@ -10,6 +10,8 @@ This library adheres to `Semantic Versioning 2.0 <http://semver.org/>`_. synchronous context manager) - Fixed ``to_thread.run_sync()`` hanging on...
agronholm__anyio-371
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "src/anyio/_backends/_asyncio.py:CancelScope._deliver_cancellation_to_parent" ], "edited_modules": [ "src/anyio/_backends/_asyncio.py:CancelScope" ] }, "file": "src/anyi...
agronholm/anyio
9ad5e71e71d414d7775de20cc747961708afdc24
CancelScope.cancel() does not work as expected if called within move_on_after() context I ran this: ```python from anyio import move_on_after, sleep, run, CancelScope result1 = 0 result2 = 0 async def main1(): global result1 with CancelScope() as ascope: with move_on_after(1, shield=True) ...
diff --git a/docs/versionhistory.rst b/docs/versionhistory.rst index 8614af4..4c86183 100644 --- a/docs/versionhistory.rst +++ b/docs/versionhistory.rst @@ -3,6 +3,12 @@ Version history This library adheres to `Semantic Versioning 2.0 <http://semver.org/>`_. +**UNRELEASED** + +- Fixed cancellation problem on async...
agronholm__anyio-388
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "src/anyio/_core/_synchronization.py:Lock.acquire", "src/anyio/_core/_synchronization.py:Semaphore.acquire" ], "edited_modules": [ "src/anyio/_core/_synchronization.py:Lock", ...
agronholm/anyio
2fcfe886735f790f07e72673e74e24b3a4673a7d
Potential race condition in `Lock` Hello! I'm trying to debug an issue we sometimes hit in production through httpx. We're not using anyio ourselves directly (it's regular asyncio), but httpx is based on it. I'm not 100% sure the scenario I'm documenting here is the exact issue we're seeing, but there's a good ch...
diff --git a/docs/versionhistory.rst b/docs/versionhistory.rst index d198c4b..d129ca3 100644 --- a/docs/versionhistory.rst +++ b/docs/versionhistory.rst @@ -3,6 +3,12 @@ Version history This library adheres to `Semantic Versioning 2.0 <http://semver.org/>`_. +**UNRELEASED** + +- Fixed race condition in ``Lock`` an...
agronholm__anyio-390
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "src/anyio/_backends/_asyncio.py:_AsyncioTaskStatus.__init__", "src/anyio/_backends/_asyncio.py:_AsyncioTaskStatus.started", "src/anyio/_backends/_asyncio.py:TaskGroup._spawn", "s...
agronholm/anyio
cc6a7bac1aecf1ba3b0fb200e6ecada4641f48a3
to/from_thread and contextvars The behavior of how contextvars are propagated through `to`/`from_thread` differs depending on which backend you use. With `asyncio`, they inherit the context of the calling thread; in `trio` they inherit the context of the system task group. ```py import contextvars import anyio va...
diff --git a/docs/subprocesses.rst b/docs/subprocesses.rst index 0b38821..cb3cd82 100644 --- a/docs/subprocesses.rst +++ b/docs/subprocesses.rst @@ -108,7 +108,7 @@ Other considerations: * If a cancellable call is cancelled during execution on the worker process, the worker process will be killed * The worker proc...
agronholm__anyio-393
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "src/anyio/_backends/_asyncio.py:_AsyncioTaskStatus.__init__", "src/anyio/_backends/_asyncio.py:_AsyncioTaskStatus.started", "src/anyio/_backends/_asyncio.py:TaskGroup._spawn" ], ...
agronholm/anyio
cc6a7bac1aecf1ba3b0fb200e6ecada4641f48a3
parentage of `await tg.start(` tasks incorrect on asyncio backend demo program: ```python import anyio import trio.lowlevel def print_parent_task(): try: print(f"{trio.lowlevel.current_task().parent_nursery.parent_task=}") except RuntimeError: pass async def server(*, task_status)...
diff --git a/docs/versionhistory.rst b/docs/versionhistory.rst index d43a3f1..c07f26f 100644 --- a/docs/versionhistory.rst +++ b/docs/versionhistory.rst @@ -12,6 +12,7 @@ This library adheres to `Semantic Versioning 2.0 <http://semver.org/>`_. ``BlockingPortal.wrap_async_context_manager()`` if the host task is cance...
agronholm__anyio-399
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "src/anyio/_backends/_asyncio.py:CapacityLimiter.acquire_on_behalf_of" ], "edited_modules": [ "src/anyio/_backends/_asyncio.py:CapacityLimiter" ] }, "file": "src/anyio/_...
agronholm/anyio
cb5b64cfb31af68325d94c591a04d16bae2a8d70
Deadlock in anyio.Lock Related to this issue in httpcore: https://github.com/encode/httpcore/issues/454 TL;DR: With the right timing, the lock **acquire** step can be cancelled and the lock remain locked for other tasks because when using the lock context manager, if the task is cancelled during the `__aenter__` , `...
diff --git a/docs/versionhistory.rst b/docs/versionhistory.rst index d275dab..df01fcf 100644 --- a/docs/versionhistory.rst +++ b/docs/versionhistory.rst @@ -3,6 +3,12 @@ Version history This library adheres to `Semantic Versioning 2.0 <http://semver.org/>`_. +**UNRELEASED** + +- Fixed deadlock in synchronization p...
agronholm__anyio-402
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "src/anyio/_backends/_asyncio.py:open_process" ], "edited_modules": [ "src/anyio/_backends/_asyncio.py:open_process" ] }, "file": "src/anyio/_backends/_asyncio.py" }, ...
agronholm/anyio
59ae37602bf0b26f069bc9b7e997af3574ee877a
Sub-processes get SIGINT before cancellation when signal receiver is used Maybe I'm doing something very silly here. What I'm trying to do is catch SIGINT and schedule cancellation of tasks (some running sub-processes) later. My example script below runs `bash -c "trap 'echo SIGINT CAUGHT' INT; sleep 100"` so that ...
diff --git a/docs/versionhistory.rst b/docs/versionhistory.rst index df01fcf..afc4b92 100644 --- a/docs/versionhistory.rst +++ b/docs/versionhistory.rst @@ -5,6 +5,7 @@ This library adheres to `Semantic Versioning 2.0 <http://semver.org/>`_. **UNRELEASED** +- Added ``start_new_session`` keyword argument to ``run_p...
agronholm__anyio-435
[ { "changes": { "added_entities": [ "src/anyio/_backends/_asyncio.py:TestRunner._exception_handler", "src/anyio/_backends/_asyncio.py:TestRunner._raise_async_exceptions", "src/anyio/_backends/_asyncio.py:TestRunner.run_asyncgen_fixture", "src/anyio/_backends/_asyncio.py:Test...
agronholm/anyio
e7daba4f498c6d59f8b381bf59308a2071468ed2
support for taskgroups and cancelscopes in fixtures Currently documented as not supported https://github.com/anyio/pull/76#issue-323360850 But pytest-trio has recently gained support for these https://pytest-trio.readthedocs.io/en/stable/reference.html#an-important-note-about-yield-fixtures This could be done wi...
diff --git a/docs/versionhistory.rst b/docs/versionhistory.rst index e734f37..0d19b1a 100644 --- a/docs/versionhistory.rst +++ b/docs/versionhistory.rst @@ -5,9 +5,11 @@ This library adheres to `Semantic Versioning 2.0 <http://semver.org/>`_. **UNRELEASED** -* **BACKWARDS INCOMPATIBLE** Replaced AnyIO's own ``Exce...
agronholm__anyio-604
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "src/anyio/to_process.py:run_sync" ], "edited_modules": [ "src/anyio/to_process.py:run_sync" ] }, "file": "src/anyio/to_process.py" } ]
agronholm/anyio
969f1884a335057c83ac2d5b59e4fa853f1f2491
to_process.run_sync() causing high memory usage and exceeding defined process limit ### Things to check first - [X] I have searched the existing issues and didn't find my bug already reported there - [X] I have checked that my bug is still present in the latest release ### AnyIO version 3.7.0 ### Pytho...
diff --git a/docs/versionhistory.rst b/docs/versionhistory.rst index 5ed601d..a7c5073 100644 --- a/docs/versionhistory.rst +++ b/docs/versionhistory.rst @@ -18,6 +18,10 @@ This library adheres to `Semantic Versioning 2.0 <http://semver.org/>`_. - Re-added the ``item_type`` argument to ``create_memory_object_stream()``...
agronholm__anyio-639
[ { "changes": { "added_entities": [ "src/anyio/_backends/_asyncio.py:iterate_exceptions" ], "added_modules": [ "src/anyio/_backends/_asyncio.py:iterate_exceptions" ], "edited_entities": [ "src/anyio/_backends/_asyncio.py:CancelScope.__exit__", "src/an...
agronholm/anyio
523381a131e5dd040d7e86fcf83286c3e6abf315
Re-raising a CancelledError after catching it in an ExceptionGroup confuses asyncio backend ### Things to check first - [X] I have searched the existing issues and didn't find my bug already reported there - [X] I have checked that my bug is still present in the latest release ### AnyIO version 4.0.0 ### Python ...
diff --git a/docs/versionhistory.rst b/docs/versionhistory.rst index 020c473..b7432df 100644 --- a/docs/versionhistory.rst +++ b/docs/versionhistory.rst @@ -14,6 +14,8 @@ This library adheres to `Semantic Versioning 2.0 <http://semver.org/>`_. - Exposed the ``ResourceGuard`` class in the public API - Fixed ``RuntimeE...
agronholm__anyio-647
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "src/anyio/_backends/_asyncio.py:Runner.run", "src/anyio/_backends/_asyncio.py:AsyncIOBackend.run" ], "edited_modules": [ "src/anyio/_backends/_asyncio.py:Runner", "sr...
agronholm/anyio
b429c1a3202dd3eff2eaad0124b327b3cad15b01
Backend specific options don't appear to be used ### Things to check first - [X] I have searched the existing issues and didn't find my bug already reported there - [X] I have checked that my bug is still present in the latest release ### AnyIO version 4.1.0 ### Python version 3.11 ### What happe...
diff --git a/docs/versionhistory.rst b/docs/versionhistory.rst index af625fd..78ef510 100644 --- a/docs/versionhistory.rst +++ b/docs/versionhistory.rst @@ -11,6 +11,8 @@ This library adheres to `Semantic Versioning 2.0 <http://semver.org/>`_. - Fixed adjusting the total number of tokens in a ``CapacityLimiter`` on as...
agronholm__anyio-648
[ { "changes": { "added_entities": [ "src/anyio/_backends/_asyncio.py:CancelScope._restart_cancellation_in_parent" ], "added_modules": null, "edited_entities": [ "src/anyio/_backends/_asyncio.py:CancelScope.__init__", "src/anyio/_backends/_asyncio.py:CancelScope.__e...
agronholm/anyio
3ea17f9f43a7b7078fcb597246dfbc1889a530cc
Opening a CancelScope with shield=True also shields sibling tasks on asyncio backend ### Things to check first - [X] I have searched the existing issues and didn't find my bug already reported there - [X] I have checked that my bug is still present in the latest release ### AnyIO version 4.1.0 ### Python version ...
diff --git a/docs/versionhistory.rst b/docs/versionhistory.rst index 78ef510..94eaf15 100644 --- a/docs/versionhistory.rst +++ b/docs/versionhistory.rst @@ -13,6 +13,9 @@ This library adheres to `Semantic Versioning 2.0 <http://semver.org/>`_. from Egor Blagov) - Fixed ``loop_factory`` and ``use_uvloop`` options no...
agronholm__anyio-666
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "src/anyio/_backends/_trio.py:CapacityLimiter.__new__", "src/anyio/_backends/_trio.py:CapacityLimiter.__init__" ], "edited_modules": [ "src/anyio/_backends/_trio.py:CapacityLi...
agronholm/anyio
6c70118450b97b6088046d5e71f6a90836ddbc04
On `trio` backend, `CapacityLimiter` does not take keyword arguments MWE: ``` import anyio async def test(): lim = anyio.CapacityLimiter(total_tokens=1) async with lim: await anyio.sleep(0.5) with anyio.start_blocking_portal(backend="trio") as portal: portal.start_task_soon(test)...
diff --git a/docs/versionhistory.rst b/docs/versionhistory.rst index 5f6500b..5d39e45 100644 --- a/docs/versionhistory.rst +++ b/docs/versionhistory.rst @@ -7,6 +7,9 @@ This library adheres to `Semantic Versioning 2.0 <http://semver.org/>`_. - Added support for the Python 3.12 ``walk_up`` keyword argument in ``an...
agronholm__anyio-703
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "src/anyio/_backends/_asyncio.py:StreamProtocol.eof_received", "src/anyio/_backends/_asyncio.py:SocketStream.receive" ], "edited_modules": [ "src/anyio/_backends/_asyncio.py:S...
agronholm/anyio
9f021d51ca14427783a5558e97c473b8b1fea23d
TCP listener handler does not disconnect on EOF (netcat -N) ### Things to check first - [X] I have searched the existing issues and didn't find my bug already reported there - [X] I have checked that my bug is still present in the latest release ### AnyIO version 4.3.0 ### Python version 3.11.8 #...
diff --git a/docs/versionhistory.rst b/docs/versionhistory.rst index c813367..f07c289 100644 --- a/docs/versionhistory.rst +++ b/docs/versionhistory.rst @@ -9,6 +9,8 @@ This library adheres to `Semantic Versioning 2.0 <http://semver.org/>`_. ``KeyError`` - Fixed the asyncio backend not respecting the ``PYTHONASYNCI...
agronholm__anyio-707
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "src/anyio/_backends/_asyncio.py:_AsyncioTaskStatus.started" ], "edited_modules": [ "src/anyio/_backends/_asyncio.py:_AsyncioTaskStatus" ] }, "file": "src/anyio/_backend...
agronholm/anyio
30c0e683b0518e10c1eb636dcb94674b306232be
Raising an error inside a task of a task group can produce: `RuntimeError: called 'started' twice on the same task status` ### Things to check first - [X] I have searched the existing issues and didn't find my bug already reported there - [X] I have checked that my bug is still present in the latest release ...
diff --git a/docs/versionhistory.rst b/docs/versionhistory.rst index f07c289..f0dcfdb 100644 --- a/docs/versionhistory.rst +++ b/docs/versionhistory.rst @@ -5,6 +5,10 @@ This library adheres to `Semantic Versioning 2.0 <http://semver.org/>`_. **UNRELEASED** +- Fixed erroneous ``RuntimeError: called 'started' twice...
agronholm__anyio-717
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "src/anyio/_backends/_asyncio.py:TaskGroup._spawn" ], "edited_modules": [ "src/anyio/_backends/_asyncio.py:TaskGroup" ] }, "file": "src/anyio/_backends/_asyncio.py" } ...
agronholm/anyio
8b648bc213a85613b9441913b82a14d9cd839048
Cancelling a TaskGroup in which a task is starting all also cancel the TaskGroup in which it is due to run ### Things to check first - [X] I have searched the existing issues and didn't find my bug already reported there - [X] I have checked that my bug is still present in the latest release ### AnyIO version 4.2 ...
diff --git a/docs/versionhistory.rst b/docs/versionhistory.rst index 0102869..2ecec4b 100644 --- a/docs/versionhistory.rst +++ b/docs/versionhistory.rst @@ -10,14 +10,19 @@ This library adheres to `Semantic Versioning 2.0 <http://semver.org/>`_. portals - Added ``__slots__`` to ``AsyncResource`` so that child class...
agronholm__anyio-732
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "src/anyio/streams/memory.py:MemoryObjectSendStream.send" ], "edited_modules": [ "src/anyio/streams/memory.py:MemoryObjectSendStream" ] }, "file": "src/anyio/streams/mem...
agronholm/anyio
4b3de9737672df67b691f38543427e4869639f45
`MemoryObjectSendStream.send(item)` doesn't raise `BrokenResourceError` when the last receive stream is closed if `item` is falsey ### Things to check first - [X] I have searched the existing issues and didn't find my bug already reported there - [X] I have checked that my bug is still present in the latest relea...
diff --git a/docs/versionhistory.rst b/docs/versionhistory.rst index b6f0b7a..7c020e0 100644 --- a/docs/versionhistory.rst +++ b/docs/versionhistory.rst @@ -12,6 +12,8 @@ This library adheres to `Semantic Versioning 2.0 <http://semver.org/>`_. - Added the ``BlockingPortalProvider`` class to aid with constructing synch...
agronholm__anyio-735
[ { "changes": { "added_entities": [ "src/anyio/_backends/_asyncio.py:AsyncIOTaskInfo.__init__", "src/anyio/_backends/_asyncio.py:AsyncIOTaskInfo.has_pending_cancellation" ], "added_modules": [ "src/anyio/_backends/_asyncio.py:AsyncIOTaskInfo" ], "edited_entit...
agronholm/anyio
9f5f14b3eb57f6965fc2c16879df93263bb020ea
MemoryObjectStream can drop items when the receiving end is cancelled ### Things to check first - [X] I have searched the existing issues and didn't find my bug already reported there - [X] I have checked that my bug is still present in the latest release ### AnyIO version 4.3.0 ### Python version 3...
diff --git a/docs/versionhistory.rst b/docs/versionhistory.rst index 2ecec4b..e288b7d 100644 --- a/docs/versionhistory.rst +++ b/docs/versionhistory.rst @@ -10,6 +10,11 @@ This library adheres to `Semantic Versioning 2.0 <http://semver.org/>`_. portals - Added ``__slots__`` to ``AsyncResource`` so that child classe...
agronholm__anyio-744
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "src/anyio/to_process.py:process_worker" ], "edited_modules": [ "src/anyio/to_process.py:process_worker" ] }, "file": "src/anyio/to_process.py" } ]
agronholm/anyio
7b4f94ea2812edc85f388afa271bab4f15b8b608
run_process fails when running from .exe console_script entrypoint on windows ### Things to check first - [X] I have searched the existing issues and didn't find my bug already reported there - [X] I have checked that my bug is still present in the latest release ### AnyIO version 4.3.0 ### Python vers...
diff --git a/docs/versionhistory.rst b/docs/versionhistory.rst index f157acc..6904718 100644 --- a/docs/versionhistory.rst +++ b/docs/versionhistory.rst @@ -9,6 +9,9 @@ This library adheres to `Semantic Versioning 2.0 <http://semver.org/>`_. in ``anyio.Path``, newly added in Python 3.13 - Changed the ``ResourceWarn...
agronholm__anyio-749
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "src/anyio/_backends/_asyncio.py:AsyncIOBackend.open_process" ], "edited_modules": [ "src/anyio/_backends/_asyncio.py:AsyncIOBackend" ] }, "file": "src/anyio/_backends/_...
agronholm/anyio
bc962eff735025481f40c475928ea25a96c53275
Allow passing kwargs to anyio.open_process and anyio.run_process ### Things to check first - [X] I have searched the existing issues and didn't find my feature already requested there ### Feature description Accept `**kwargs` in `anyio.run_process` and `anyio.open_process` and pass those to underlying `asyncio.crea...
diff --git a/docs/versionhistory.rst b/docs/versionhistory.rst index 73463d9..2eb72bc 100644 --- a/docs/versionhistory.rst +++ b/docs/versionhistory.rst @@ -10,6 +10,12 @@ This library adheres to `Semantic Versioning 2.0 <http://semver.org/>`_. - Added support for the ``from_uri()``, ``full_match()``, ``parser`` metho...
agronholm__anyio-752
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "src/anyio/_backends/_asyncio.py:StreamReaderWrapper.aclose" ], "edited_modules": [ "src/anyio/_backends/_asyncio.py:StreamReaderWrapper" ] }, "file": "src/anyio/_backen...
agronholm/anyio
38890e607c726be6ea29ea2af445e8df43df5725
Closing a process's stdout when there's more data to be read results in internal asyncio error When using anyio with asyncio (This works fine with trio), if a subprocess is started with piped stdout and the stdout is closed (either explicitly or via context manager) before all data is read, asyncio will crash with a ho...
diff --git a/docs/versionhistory.rst b/docs/versionhistory.rst index 72903ae..d99d30a 100644 --- a/docs/versionhistory.rst +++ b/docs/versionhistory.rst @@ -29,6 +29,9 @@ This library adheres to `Semantic Versioning 2.0 <http://semver.org/>`_. - Fixed ``to_process.run_sync()`` failing to initialize if ``__main__.__fil...
agronholm__anyio-772
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "src/anyio/_backends/_asyncio.py:AsyncIOTaskInfo.has_pending_cancellation" ], "edited_modules": [ "src/anyio/_backends/_asyncio.py:AsyncIOTaskInfo" ] }, "file": "src/any...
agronholm/anyio
439951d9babf7615f0720fd43c93c2a695549bd4
Memory object streams deadlock on asyncio ### Things to check first - [X] I have searched the existing issues and didn't find my bug already reported there - [X] I have checked that my bug is still present in the latest release ### AnyIO version master (439951d9babf7615f0720fd43c93c2a695549bd4) ### Pyt...
diff --git a/docs/versionhistory.rst b/docs/versionhistory.rst index 5a42d0b..f6cbf14 100644 --- a/docs/versionhistory.rst +++ b/docs/versionhistory.rst @@ -16,6 +16,8 @@ This library adheres to `Semantic Versioning 2.0 <http://semver.org/>`_. - Fixed ``to_process.run_sync()`` failing to initialize if ``__main__.__fil...
agronholm__anyio-774
[ { "changes": { "added_entities": [ "src/anyio/_backends/_asyncio.py:is_anyio_cancellation", "src/anyio/_backends/_asyncio.py:CancelScope._effectively_cancelled", "src/anyio/_backends/_asyncio.py:CancelScope._parent_cancellation_is_visible_to_us" ], "added_modules": [ ...
agronholm/anyio
7f35ce79e3eb9db2a2731619b48fe289d8dd872f
100% CPU load after cancel ### Things to check first - [X] I have searched the existing issues and didn't find my bug already reported there - [X] I have checked that my bug is still present in the latest release ### AnyIO version 4.3.0 ### Python version 3.9.2, 3.12.1 ### What happened? After Ctrl+C the progr...
diff --git a/docs/versionhistory.rst b/docs/versionhistory.rst index 81da27e..ef7ac30 100644 --- a/docs/versionhistory.rst +++ b/docs/versionhistory.rst @@ -3,6 +3,22 @@ Version history This library adheres to `Semantic Versioning 2.0 <http://semver.org/>`_. +**UNRELEASED** + +- Dropped support for Python 3.8 + (...
agronholm__anyio-782
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "src/anyio/_core/_sockets.py:setup_unix_local_socket" ], "edited_modules": [ "src/anyio/_core/_sockets.py:setup_unix_local_socket" ] }, "file": "src/anyio/_core/_sockets...
agronholm/anyio
0c8ad519e136c4b136b51333863966a445080a97
create_unix_listener doesn't accept abstract namespace sockets ### Things to check first - [X] I have searched the existing issues and didn't find my bug already reported there - [X] I have checked that my bug is still present in the latest release ### AnyIO version 4.4.0 ### Python version 3.10 ### What happen...
diff --git a/docs/versionhistory.rst b/docs/versionhistory.rst index b2d8785..72903ae 100644 --- a/docs/versionhistory.rst +++ b/docs/versionhistory.rst @@ -37,6 +37,8 @@ This library adheres to `Semantic Versioning 2.0 <http://semver.org/>`_. - Fixed quitting the debugger in a pytest test session while in an active t...
agronholm__anyio-812
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "src/anyio/_core/_sockets.py:connect_tcp" ], "edited_modules": [ "src/anyio/_core/_sockets.py:connect_tcp" ] }, "file": "src/anyio/_core/_sockets.py" } ]
agronholm/anyio
c4844254e6db0cb804c240ba07405db73d810e0b
DNS timeouts have a traceback that is confusing for users. ### Discussed in https://github.com/agronholm/anyio/discussions/580 <div type='discussions-op-text'> <sup>Originally posted by **tomchristie** June 26, 2023</sup> Prompted by this user comment... https://github.com/encode/httpx/discussions/2167#discussio...
diff --git a/docs/versionhistory.rst b/docs/versionhistory.rst index 9c22867..761be04 100644 --- a/docs/versionhistory.rst +++ b/docs/versionhistory.rst @@ -3,6 +3,11 @@ Version history This library adheres to `Semantic Versioning 2.0 <http://semver.org/>`_. +**UNRELEASED** + +- Fixed a misleading ``ValueError`` i...
agronholm__anyio-835
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "src/anyio/_core/_synchronization.py:EventAdapter.set", "src/anyio/_core/_synchronization.py:EventAdapter.is_set", "src/anyio/_core/_synchronization.py:EventAdapter._event" ], ...
agronholm/anyio
93a57466c3b226ef2bc6fb2f0d361ed9ce8f707c
Event.set() with an `EventAdapter` does not work unless already running in an async event loop ### Things to check first - [X] I have searched the existing issues and didn't find my bug already reported there - [X] I have checked that my bug is still present in the latest release ### AnyIO version 4.6.2 ### Pytho...
diff --git a/docs/versionhistory.rst b/docs/versionhistory.rst index 1485a7d..e8bef59 100644 --- a/docs/versionhistory.rst +++ b/docs/versionhistory.rst @@ -13,6 +13,9 @@ This library adheres to `Semantic Versioning 2.0 <http://semver.org/>`_. an object with a ``.fileno()`` method or an integer handle, and deprecate...
agronholm__anyio-841
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "src/anyio/_backends/_asyncio.py:TaskStateStore.__init__", "src/anyio/_backends/_asyncio.py:TaskStateStore.__getitem__", "src/anyio/_backends/_asyncio.py:TaskStateStore.__setitem__", ...
agronholm/anyio
d14f005c9649a42019f0d3fd4394d1fd66d54d18
Assertion error when `current_task()` returns an instance of `_asyncio.Task` ### Things to check first - [X] I have searched the existing issues and didn't find my bug already reported there - [X] I have checked that my bug is still present in the latest release ### AnyIO version 4.7.0 ### Python version 3.12.8 ...
diff --git a/docs/versionhistory.rst b/docs/versionhistory.rst index 518aef8..4901da4 100644 --- a/docs/versionhistory.rst +++ b/docs/versionhistory.rst @@ -9,6 +9,8 @@ This library adheres to `Semantic Versioning 2.0 <http://semver.org/>`_. thread waker socket pair. This should improve the performance of ``wait_rea...
agronholm__anyio-864
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "src/anyio/_backends/_asyncio.py:TaskGroup.__aexit__" ], "edited_modules": [ "src/anyio/_backends/_asyncio.py:TaskGroup" ] }, "file": "src/anyio/_backends/_asyncio.py" ...
agronholm/anyio
a5b4e55f984ceeff916a3fb386f9119ba5e70b97
Quadratic traceback-growth in TaskGroup nesting-level on asyncio backend ### Things to check first - [x] I have searched the existing issues and didn't find my bug already reported there - [x] I have checked that my bug is still present in the latest release ### AnyIO version 4.8.0 ### Python version 3.11 ### W...
diff --git a/docs/versionhistory.rst b/docs/versionhistory.rst index 5c75f28..afb390c 100644 --- a/docs/versionhistory.rst +++ b/docs/versionhistory.rst @@ -3,6 +3,13 @@ Version history This library adheres to `Semantic Versioning 2.0 <http://semver.org/>`_. + **UNRELEASED** + +- Fixed traceback formatting growing...
agronholm__apscheduler-258
[ { "changes": { "added_entities": [ "apscheduler/triggers/base.py:BaseTrigger._apply_jitter" ], "added_modules": null, "edited_entities": null, "edited_modules": [ "apscheduler/triggers/base.py:BaseTrigger" ] }, "file": "apscheduler/triggers/base.py" ...
agronholm/apscheduler
c6c5031276c3b864e127c637d2bdd48138a0b426
Feature request: allow interval jobs to be offset by a random value When jobs are configured to execute at certain times, they tend to coalesce at one particular time. For example, executing 10 jobs at the top of the hour, another 10 once in at noon and once at midnight, and a third job that executes every minute will ...
diff --git a/apscheduler/triggers/base.py b/apscheduler/triggers/base.py index ba98632..ce2526a 100644 --- a/apscheduler/triggers/base.py +++ b/apscheduler/triggers/base.py @@ -1,4 +1,6 @@ from abc import ABCMeta, abstractmethod +from datetime import timedelta +import random import six @@ -17,3 +19,30 @@ class Ba...
agronholm__apscheduler-898
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "src/apscheduler/triggers/calendarinterval.py:CalendarIntervalTrigger.next" ], "edited_modules": [ "src/apscheduler/triggers/calendarinterval.py:CalendarIntervalTrigger" ] }...
agronholm/apscheduler
d9df12332b3f395f6ad3085a5baf7320de1db7a7
Infinite loop in CalendarIntervalTrigger with UTC timezone ### Things to check first - [X] I have checked that my issue does not already have a solution in the [FAQ](https://apscheduler.readthedocs.io/en/master/faq.html) - [X] I have searched the existing issues and didn't find my bug already reported there - [X] I ...
diff --git a/docs/versionhistory.rst b/docs/versionhistory.rst index 4d164a4..22bf8ef 100644 --- a/docs/versionhistory.rst +++ b/docs/versionhistory.rst @@ -20,6 +20,7 @@ APScheduler, see the :doc:`migration section <migration>`. - Fixed JSON serialization of triggers that had been used at least once - Fixed dialect ...
agronholm__exceptiongroup-22
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": null, "edited_modules": null }, "file": "src/exceptiongroup/__init__.py" }, { "changes": { "added_entities": [ "src/exceptiongroup/_formatting.py:PatchedTracebackException.__ini...
agronholm/exceptiongroup
d8a89ae3c4c5a492982453b8737a9401bde7bfdc
Document how to print an exceptiongroup traceback when the monkey patching doesn't work / is not applied. First, thanks for working on this project. I updated to the latest `cattr 22.1.0` from @Tinche who started to use the `exceptiongroup` backport to report various errors occurring while "structuring" objects. Al...
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 19143ad..55d6f93 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,5 +1,3 @@ -exclude: ^src/wheel/vendored - repos: - repo: https://github.com/pre-commit/pre-commit-hooks rev: v4.3.0 @@ -26,7 +24,7 @@ repos: rev: v2.37.3...
agronholm__exceptiongroup-3
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "src/exceptiongroup/_exceptions.py:BaseExceptionGroup.__init__", "src/exceptiongroup/_exceptions.py:BaseExceptionGroup.derive" ], "edited_modules": [ "src/exceptiongroup/_exce...
agronholm/exceptiongroup
6497dd07a4971a9e4f8f21d141c01bfc138d3acd
Display `__note__` from monkeypatched `TracebackException` type :wave: [PEP-678](https://www.python.org/dev/peps/pep-0678/) author here - I've been looking at how to port Hypothesis over to use `ExceptionGroup` (https://github.com/HypothesisWorks/hypothesis/pull/3191). If this backport started displaying the `__note__...
diff --git a/README.rst b/README.rst index 30fcdf5..c98ba00 100644 --- a/README.rst +++ b/README.rst @@ -19,9 +19,6 @@ It contains the following: * An exception hook that handles formatting of exception groups through ``TracebackException`` (installed on import) -The only difference with the Python 3.11 standard ...
agronholm__exceptiongroup-34
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "src/exceptiongroup/_formatting.py:PatchedTracebackException.__init__", "src/exceptiongroup/_formatting.py:format_exception" ], "edited_modules": [ "src/exceptiongroup/_format...
agronholm/exceptiongroup
91931b8284a141f3c2107d6ea87b457fa1025503
Bizarre error in `sys.excepthook` with recursive calls ```python-traceback Error in sys.excepthook: Traceback (most recent call last): File "/root/.pyenv/versions/3.10.4/lib/python3.10/site-packages/exceptiongroup/_formatting.py", line 71, in exceptiongroup_excepthook sys.stderr.write("".join(traceback.format...
diff --git a/CHANGES.rst b/CHANGES.rst index 0c11a2c..8a847a8 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -3,6 +3,16 @@ Version history This library adheres to `Semantic Versioning 2.0 <http://semver.org/>`_. +**UNRELEASED** + +- Fixed + ``AttributeError: 'PatchedTracebackException' object has no attribute '__c...
agronholm__exceptiongroup-51
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "src/exceptiongroup/_exceptions.py:BaseExceptionGroup.__new__", "src/exceptiongroup/_exceptions.py:ExceptionGroup.__new__" ], "edited_modules": [ "src/exceptiongroup/_exceptio...
agronholm/exceptiongroup
6abcee5c4177a09fac1bd0bc82ecba33e7d99478
Needs update for 3.11.1 3.11.1 merged a fix to https://github.com/python/cpython/issues/99553 (PR: https://github.com/python/cpython/pull/99572) which included a change in behaviour. Currently `test_EG_subclass_wraps_anything` is broken, when run on 3.11.1.
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 038c6c8..14901c8 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -21,13 +21,13 @@ repos: - id: isort - repo: https://github.com/asottile/pyupgrade - rev: v3.3.0 + rev: v3.3.1 hooks: - id: pyupgrade args: ["--py...
agronholm__exceptiongroup-69
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "src/exceptiongroup/_catch.py:_Catcher.handle_exception" ], "edited_modules": [ "src/exceptiongroup/_catch.py:_Catcher" ] }, "file": "src/exceptiongroup/_catch.py" } ]
agronholm/exceptiongroup
84b41345df273dac2ed3db0784d23af32482e319
`with exceptiongroup.catch({Exception: async_fn}):` is a tempting and silent footgun It's surprisingly easy to write a handler which silently discards exceptions that you thought were handled: ```python import asyncio from exceptiongroup import ExceptionGroup, catch async def handler(eg): # Log some stuff,...
diff --git a/CHANGES.rst b/CHANGES.rst index 040c6f9..eccb5b3 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -3,6 +3,11 @@ Version history This library adheres to `Semantic Versioning 2.0 <http://semver.org/>`_. +**UNRELEASED** +- `catch()` now raises a `TypeError` if passed an async exception handler instead of + ...
agronholm__smtpproto-2
[ { "changes": { "added_entities": [ "src/smtpproto/protocol.py:SMTPClientProtocol._encode_address" ], "added_modules": null, "edited_entities": [ "src/smtpproto/protocol.py:SMTPClientProtocol._send_command", "src/smtpproto/protocol.py:SMTPClientProtocol.mail", ...
agronholm/smtpproto
dce2522587bfd0790837843e1fb5b9c6e9d83b3b
SMTPUTF8 mail command handling It looks like smtpproto correctly handles the message body when the SMTPUTF8 extension is available. However, [per the spec](https://tools.ietf.org/html/rfc6531#section-3.4), the `MAIL FROM` command should include the `SMTPUTF8` option in that case. Currently there's no way to pass an...
diff --git a/docs/versionhistory.rst b/docs/versionhistory.rst index 2bc4d25..459ca8b 100644 --- a/docs/versionhistory.rst +++ b/docs/versionhistory.rst @@ -7,6 +7,8 @@ This library adheres to `Semantic Versioning 2.0 <http://semver.org/>`_. - Added missing ``authorization_id`` parameter to ``PlainAuthenticator`` (a...
agronholm__sphinx-autodoc-typehints-64
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "sphinx_autodoc_typehints.py:format_annotation" ], "edited_modules": [ "sphinx_autodoc_typehints.py:format_annotation" ] }, "file": "sphinx_autodoc_typehints.py" } ]
agronholm/sphinx-autodoc-typehints
c6895fa568c7ad7fd8ade90eab5fce14c612902b
Types created with NewType are rendered poorly. If I have code like: ``` Foo = typing.NewType('Foo', str) def bar(x: Foo): pass ``` then its parameter gets documented as: ``` x (<function NewType.<locals>.new_type at 0x7f644b4c6488>) ``` I was expecting something like one of the following:...
diff --git a/sphinx_autodoc_typehints.py b/sphinx_autodoc_typehints.py index e7f8f4a..3eafe5b 100644 --- a/sphinx_autodoc_typehints.py +++ b/sphinx_autodoc_typehints.py @@ -117,6 +117,10 @@ def format_annotation(annotation): return '{}`~{}.{}`{}'.format(prefix, module, class_name, extra) elif annotation i...
agronholm__sqlacodegen-368
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "src/sqlacodegen/generators.py:TablesGenerator.render_column_type", "src/sqlacodegen/generators.py:TablesGenerator.get_adapted_type" ], "edited_modules": [ "src/sqlacodegen/ge...
agronholm/sqlacodegen
13d37018d9e55423fa3f771b12f574b6bc44651e
ENUM name is not correct for first entry ### Things to check first - [x] I have searched the existing issues and didn't find my bug already reported there - [x] I have checked that my bug is still present in the latest release ### Sqlacodegen version 3.0.0rc5 ### SQLAlchemy version 2.0.37 ### RDBMS vendor Post...
diff --git a/CHANGES.rst b/CHANGES.rst index c4cefca..9d88a67 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -4,6 +4,8 @@ Version history **UNRELEASED** - Dropped support for Python 3.8 +- Fixed two rendering issues in ``ENUM`` columns when a non-default schema is used: an + unwarranted positional argument and miss...
agronholm__sqlacodegen-370
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "src/sqlacodegen/generators.py:DeclarativeGenerator.render_relationship" ], "edited_modules": [ "src/sqlacodegen/generators.py:DeclarativeGenerator" ] }, "file": "src/sq...
agronholm/sqlacodegen
0b404d2c690abe11b45fa9e073ef55a9e2ec4f4a
Nullable relationships require `Optional` ### Things to check first - [X] I have searched the existing issues and didn't find my bug already reported there - [X] I have checked that my bug is still present in the latest release ### Sqlacodegen version master (https://github.com/agronholm/sqlacodegen/commit/66a88dc...
diff --git a/CHANGES.rst b/CHANGES.rst index 652b6f2..6c2e045 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -3,6 +3,7 @@ Version history **UNRELEASED** +- Changed nullable relationships to include ``Optional`` in their type annotations - Dropped support for Python 3.8 - Fixed SQLModel code generation - Fixed tw...
agronholm__sqlacodegen-371
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "src/sqlacodegen/generators.py:TablesGenerator.get_adapted_type" ], "edited_modules": [ "src/sqlacodegen/generators.py:TablesGenerator" ] }, "file": "src/sqlacodegen/gen...
agronholm/sqlacodegen
6da9a0b293461b42991413e3a3ec4dbf45b42701
MySQL DOUBLE(11,2) is converted to Double(11, True) ### Things to check first - [X] I have searched the existing issues and didn't find my bug already reported there - [X] I have checked that my bug is still present in the latest release ### Sqlacodegen version 3.0.0rc5 ### SQLAlchemy version 2.0.29 ### RDBMS v...
diff --git a/CHANGES.rst b/CHANGES.rst index a1159ca..67d414a 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -11,6 +11,7 @@ Version history - Fixed ``AttributeError`` when metadata contains user defined column types - Fixed ``AssertionError`` when metadata contains a column type that is a type decorator with an all...
agronholm__sqlacodegen-375
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "src/sqlacodegen/generators.py:TablesGenerator.get_adapted_type" ], "edited_modules": [ "src/sqlacodegen/generators.py:TablesGenerator" ] }, "file": "src/sqlacodegen/gen...
agronholm/sqlacodegen
70e1a5c079a9d1568f57b0a242e155d43df9510c
AssertionError: TypeDecorator implementations require a class-level variable 'impl' ### Things to check first - [X] I have searched the existing issues and didn't find my bug already reported there - [X] I have checked that my bug is still present in the latest release ### Sqlacodegen version 3.0.0rc3 ### SQLAlch...
diff --git a/CHANGES.rst b/CHANGES.rst index 431359f..a1159ca 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -9,6 +9,8 @@ Version history - Fixed two rendering issues in ``ENUM`` columns when a non-default schema is used: an unwarranted positional argument and missing the ``schema`` argument - Fixed ``AttributeErro...
agronholm__sqlacodegen-391
[ { "changes": { "added_entities": [ "src/sqlacodegen/cli.py:_parse_engine_arg", "src/sqlacodegen/cli.py:_parse_engine_args" ], "added_modules": [ "src/sqlacodegen/cli.py:_parse_engine_arg", "src/sqlacodegen/cli.py:_parse_engine_args" ], "edited_entiti...
agronholm/sqlacodegen
636680d7948ee40710f13e6a451ccd771f2c7f1f
Call `oracledb.init_oracle_client()` before connecting to the DB / run user script ### Things to check first - [x] I have searched the existing issues and didn't find my feature already requested there ### Feature description Hello, Would it be possible to have a flag to call `oracledb.init_oracle_client()` (or ev...
diff --git a/CHANGES.rst b/CHANGES.rst index 91f9d10..8e49519 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -5,6 +5,8 @@ Version history - Type annotations for ARRAY column attributes now include the Python type of the array elements +- Added support for specifying engine arguments via ``--engine-arg`` + (PR by ...
ahawker__ulid-455
[ { "changes": { "added_entities": [ "ulid/ulid.py:MemoryView.__getstate__", "ulid/ulid.py:MemoryView.__setstate__" ], "added_modules": null, "edited_entities": null, "edited_modules": [ "ulid/ulid.py:MemoryView" ] }, "file": "ulid/ulid.py" } ]
ahawker/ulid
64db8e687fcb5faaf68c92dc5d8adef2b4b1bddd
deepcopy doesn't work on ULID object Running into a cryptic error when trying to deepcopy a ULID object: ``` >>> import ulid >>> a = ulid.new() >>> a <ULID('01EAZF1038723PE2SS9BXRQC80')> >>> import copy >>> copy.deepcopy(a) Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/Us...
diff --git a/ulid/ulid.py b/ulid/ulid.py index 0a81822..d96adbd 100644 --- a/ulid/ulid.py +++ b/ulid/ulid.py @@ -132,6 +132,12 @@ class MemoryView: def __str__(self) -> hints.Str: return self.str + def __getstate__(self) -> hints.Str: + return self.str + + def __setstate__(self, state: hint...
ahawker__ulid-59
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": null, "edited_modules": null }, "file": "ulid/base32.py" } ]
ahawker/ulid
efdac942d7f969c802903f574965ca860882a891
Non-Crockford's Base32 letters converted differently in Java or Python implementations Hi Andrew, first of all, thanks for the amazing library, we've been using a lot! I have a doubt regarding how we fix the conversion of ULIDs which are not following Crockford's Base32 standard. We are using Lua to generate ...
diff --git a/ulid/base32.py b/ulid/base32.py index 83f8a8a..f7377b6 100644 --- a/ulid/base32.py +++ b/ulid/base32.py @@ -31,11 +31,11 @@ DECODING = array.array( 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xF...
ahawker__ulid-63
[ { "changes": { "added_entities": [ "ulid/base32.py:str_to_bytes" ], "added_modules": [ "ulid/base32.py:str_to_bytes" ], "edited_entities": [ "ulid/base32.py:decode_ulid", "ulid/base32.py:decode_timestamp", "ulid/base32.py:decode_randomness" ...
ahawker/ulid
ee7977eef6df2c85dda59f7be117722e0718ff05
Properly handle invalid base32 characters As of today, it is possible to input non-base32 characters, `uU` for example, into any of the `api` calls. Doing this will cause the library to fail silently and perform an incorrect `base32` decode on the string. The API should provide a feedback mechanism that informs ...
diff --git a/ulid/base32.py b/ulid/base32.py index f7377b6..b63ba7a 100644 --- a/ulid/base32.py +++ b/ulid/base32.py @@ -248,14 +248,7 @@ def decode_ulid(value: str) -> bytes: :raises ValueError: when value is not 26 characters :raises ValueError: when value cannot be encoded in ASCII """ - length = l...
aiidateam__aiida-registry-104
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "aiida_registry/fetch_metadata.py:fetch_plugin_info", "aiida_registry/fetch_metadata.py:get_aiida_version_setup_json", "aiida_registry/fetch_metadata.py:get_aiida_version_poetry", ...
aiidateam/aiida-registry
9017e668b7b27d4b1bd982ac98f1d8b5a2c45915
checks on entry point names too strict registry should check only entry points defined in entry point groups defined by AiiDA. See https://github.com/aiidateam/aiida-registry/pull/97#issuecomment-548095956
diff --git a/.travis.yml b/.travis.yml index d2d1874..594436d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -21,6 +21,10 @@ matrix: python: 3.7 env: - JOB: INSTALL + - name: Run tests (py37) + python: 3.7 + env: + - JOB: TEST allow_failures: - name: Install plugins (py27) @@ -33,6 +37,7...
aio-libs__aiocache-635
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "aiocache/backends/redis.py:RedisCache._build_key" ], "edited_modules": [ "aiocache/backends/redis.py:RedisCache" ] }, "file": "aiocache/backends/redis.py" }, { ...
aio-libs/aiocache
2cc74f78267a073ec7cb9289e35c9a1a55b0e82c
Ensure that underlying value of enum key is used by BaseCache._build_key() across Python versions Key builders and tests currently cast key values (notably `Enum` values) to `str` to maintain compatibility with Python 3.11 and older versions. ~~This requirement can be eliminated by using f-strings rather than `str.__f...
diff --git a/CHANGELOG.md b/CHANGELOG.md index c584b9c..0e66ae1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,7 +6,8 @@ * Add ``async with`` support to ``BaseCache``. * Remove deprecated ``loop`` parameters. * Remove deprecated ``cache`` parameter from ``create()``. -* Use ``str()`` in ``_build_key()`` to ensur...
aio-libs__aiocache-652
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "aiocache/decorators.py:cached.__init__", "aiocache/decorators.py:cached.decorator", "aiocache/decorators.py:cached_stampede.decorator", "aiocache/decorators.py:multi_cached.__ini...
aio-libs/aiocache
c916bab0742b8944a268845695f8a659d11681b9
Block writing cache in `cached` decorator if custom condition is not satisfied I m using the  `aiocache.cached` decorator with wraps the certain processing function. The setup is as following: ```python import aiocache aiocache.caches.add( "cache-alias", { "cache": "aiocache.RedisCache", ...
diff --git a/.codecov.yml b/.codecov.yml index 225b492..219845f 100644 --- a/.codecov.yml +++ b/.codecov.yml @@ -1,6 +1,5 @@ codecov: notify: - require_ci_to_pass: yes after_n_builds: 4 coverage: diff --git a/.github/workflows/auto-merge.yml b/.github/workflows/auto-merge.yml index 6957de7..0fc389a 10064...
aio-libs__aiocache-755
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "aiocache/backends/memcached.py:MemcachedBackend.__init__", "aiocache/backends/memcached.py:MemcachedCache.__repr__" ], "edited_modules": [ "aiocache/backends/memcached.py:Mem...
aio-libs/aiocache
ae8405cac5c486ed0698175f7abcc54d9d523e55
SSL/TLS support for redis cache The `aioredis` library supports connecting to redis using TLS, and has done since version 0.2.6 (see https://github.com/aio-libs/aioredis-py/blob/master/CHANGELOG.md#026-2016-03-30). The `aiocache` implementation of the redis backend, however, does not support TLS - it doesn't use th...
diff --git a/CHANGES.rst b/CHANGES.rst index 31ba5b7..8962edf 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -12,6 +12,7 @@ Migration instructions There are a number of backwards-incompatible changes. These points should help with migrating from an older release: +* ``RedisBackend`` now expects a ``redis.Redis`` in...
aio-libs__aiocache-795
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "aiocache/factory.py:Cache.__new__" ], "edited_modules": [ "aiocache/factory.py:Cache" ] }, "file": "aiocache/factory.py" } ]
aio-libs/aiocache
a6a131ecd33862a3406d03514e9e1031612301ef
Cache.REDIS: issubclass() arg 1 must be a class In trying https://stackoverflow.com/questions/65686318/sharing-python-objects-across-multiple-workers I've encountered this exception. Seems hit same issue here: https://github.com/samuelcolvin/pydantic/issues/545#issuecomment-595983173 From docker stderr: ``` app...
diff --git a/aiocache/factory.py b/aiocache/factory.py index 9ad2f98..ec674fd 100644 --- a/aiocache/factory.py +++ b/aiocache/factory.py @@ -60,7 +60,7 @@ class Cache: MEMCACHED = AIOCACHE_CACHES.get("memcached") def __new__(cls, cache_class=MEMORY, **kwargs): - if not issubclass(cache_class, BaseCac...
aio-libs__aioftp-113
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "aioftp/client.py:BaseClient.parse_list_line_unix" ], "edited_modules": [ "aioftp/client.py:BaseClient" ] }, "file": "aioftp/client.py" } ]
aio-libs/aioftp
531b63eface3500b82cb2bf596da63876c1d5417
`parse_ls_date` doesn't handle singe-spaced servers. I'm using aioftp across a multitude of FTP servers, and just discovered that one of them uses a timestamp of `%b %d %Y` instead of `%b %d %Y`. Because the parser assumes the date is exactly 12 characters long, it will catch `Jan 03 2018` as `Jan 03 2018 `. This in ...
diff --git a/aioftp/client.py b/aioftp/client.py index a1072b6..566a397 100644 --- a/aioftp/client.py +++ b/aioftp/client.py @@ -360,7 +360,7 @@ class BaseClient: def parse_ls_date(cls, s, *, now=None): """ Parsing dates from the ls unix utility. For example, - "Nov 18 1958" and "Nov 18 1...
aio-libs__aioftp-148
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "aioftp/server.py:Server.get_paths" ], "edited_modules": [ "aioftp/server.py:Server" ] }, "file": "aioftp/server.py" } ]
aio-libs/aioftp
81d4bc018261268bf2ea88f42e05f130ab4c9229
Directory traversal / base path escape possible on Windows The server allows escaping the user `base_path` on Windows using absolute path (segments). This is due to [`get_paths`](https://github.com/aio-libs/aioftp/blob/81d4bc018261268bf2ea88f42e05f130ab4c9229/aioftp/server.py#L991): While the virtual path handling is...
diff --git a/aioftp/server.py b/aioftp/server.py index 4af6399..f0a92c3 100644 --- a/aioftp/server.py +++ b/aioftp/server.py @@ -988,7 +988,8 @@ class Server: if tasks_to_wait: await asyncio.wait(tasks_to_wait) - def get_paths(self, connection, path): + @staticmethod + def get_p...
aio-libs__aiohttp-devtools-549
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": null, "edited_modules": null }, "file": "aiohttp_devtools/cli.py" }, { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "aiohttp_devt...
aio-libs/aiohttp-devtools
696fa2a8d90e0923fbd0463658dc3875c9d2a277
Cleanup context is not run on reload on Windows * **aiohttp-devtools version:** 1.0.post0 * **aiohttp version:** 3.8.4 * **python version:** 3.11.3 * **Platform:** Windows 10 I have discovered two cases in which the second half of a [Cleanup Context](https://docs.aiohttp.org/en/stable/web_advanced.html#cleanup-co...
diff --git a/aiohttp_devtools/cli.py b/aiohttp_devtools/cli.py index a87fee0..e09c4d4 100644 --- a/aiohttp_devtools/cli.py +++ b/aiohttp_devtools/cli.py @@ -46,6 +46,9 @@ root_help = ('Root directory project used to qualify other paths. ' 'This can be used to watch a parent directory for changes in a more...
aio-libs__aiohttp-devtools-708
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "aiohttp_devtools/cli.py:serve" ], "edited_modules": [ "aiohttp_devtools/cli.py:serve" ] }, "file": "aiohttp_devtools/cli.py" }, { "changes": { "added_enti...
aio-libs/aiohttp-devtools
649b2c86419b41a576cc490815b4971e8a39a6de
runserver doesn't respect host setting **aiohttp-devtools version: 1.0.post0** **aiohttp version: 3.8.1** **python version: 3.10** **Platform: mac** ### Issue Summary `adev runserver` doesn't respect the host setting - it always uses `0.0.0.0` which means the server can be always accused from any computer on t...
diff --git a/aiohttp_devtools/cli.py b/aiohttp_devtools/cli.py index eea7973..37080cb 100644 --- a/aiohttp_devtools/cli.py +++ b/aiohttp_devtools/cli.py @@ -28,21 +28,23 @@ livereload_help = ('Whether to inject livereload.js into html page footers to au 'env variable AIO_LIVERELOAD') browser_cache_...
aio-libs__aiohttp-session-317
[ { "changes": { "added_entities": [ "aiohttp_session/nacl_storage.py:NaClCookieStorage.empty_session" ], "added_modules": null, "edited_entities": [ "aiohttp_session/nacl_storage.py:NaClCookieStorage.load_session" ], "edited_modules": [ "aiohttp_session...
aio-libs/aiohttp-session
cecdc7282e3c2bdd0fd4931ce2a562c8812a82a6
Error 500 when switching from EncryptedCookieStorage to NaClCookieStorage ```Traceback (most recent call last): File "[..]/site-packages/aiohttp/web_protocol.py", line 390, in start resp = await self._request_handler(request) File "[..]/site-packages/aiohttp/web_app.py", line 366, in _handle resp = awai...
diff --git a/aiohttp_session/nacl_storage.py b/aiohttp_session/nacl_storage.py index eb7105d..c855ff8 100644 --- a/aiohttp_session/nacl_storage.py +++ b/aiohttp_session/nacl_storage.py @@ -1,10 +1,13 @@ +import binascii import json import nacl.secret import nacl.utils +import nacl.exceptions from nacl.encoding im...
aio-libs__aiohttp-sse-431
[ { "changes": { "added_entities": [ "aiohttp_sse/__init__.py:EventSourceResponse.last_event_id" ], "added_modules": null, "edited_entities": null, "edited_modules": [ "aiohttp_sse/__init__.py:EventSourceResponse" ] }, "file": "aiohttp_sse/__init__.py" ...
aio-libs/aiohttp-sse
989774db2d41066c4d2e2cb31b211b12aa40e324
Add EventSourceResponse.last_event_id I think it would be useful to add `last_event_id` property to the `EventSourceResponse` class from the example: https://github.com/aio-libs/aiohttp-sse/blob/aca7808960635ff7511ff46002b7f83168f6952c/examples/graceful_shutdown.py#L14-L16 Also there is a bug at that example (`sse_r...
diff --git a/aiohttp_sse/__init__.py b/aiohttp_sse/__init__.py index 1b04105..7a18da2 100644 --- a/aiohttp_sse/__init__.py +++ b/aiohttp_sse/__init__.py @@ -2,6 +2,7 @@ import asyncio import contextlib import io import re +from typing import Optional from aiohttp.web import HTTPMethodNotAllowed, StreamResponse ...
aio-libs__aiohttp-sse-451
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "aiohttp_sse/__init__.py:EventSourceResponse.__init__", "aiohttp_sse/__init__.py:EventSourceResponse.send", "aiohttp_sse/__init__.py:EventSourceResponse.ping_interval", "aiohttp_s...
aio-libs/aiohttp-sse
87854324c447f2a594888768b5b06bfb33cdd7d5
Cancel ping_task on connection failure while sending event When attempting to execute `EventSourceResponse.send()`, the connection may be interrupted, resulting in a `ConnectionResetError` (for example, if the client closed the browser). Already at this moment we know that the connection is closed and cannot be rest...
diff --git a/.coveragerc b/.coveragerc index e1ba26a..0e3ab35 100644 --- a/.coveragerc +++ b/.coveragerc @@ -5,4 +5,5 @@ branch = True [report] exclude_also = ^\s*if TYPE_CHECKING: + : \.\.\.(\s*#.*)?$ ^ +\.\.\.$ diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 6cc2b3f..96536e0 100644...
aio-libs__aiohttp-sse-452
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "aiohttp_sse/__init__.py:EventSourceResponse.prepare" ], "edited_modules": [ "aiohttp_sse/__init__.py:EventSourceResponse" ] }, "file": "aiohttp_sse/__init__.py" } ]
aio-libs/aiohttp-sse
2be9383d9fb038cba833fb8aebc77b5188107c72
will this support post method?
diff --git a/aiohttp_sse/__init__.py b/aiohttp_sse/__init__.py index d28407f..8367e1f 100644 --- a/aiohttp_sse/__init__.py +++ b/aiohttp_sse/__init__.py @@ -6,13 +6,7 @@ from types import TracebackType from typing import Any, Mapping, Optional, Type, TypeVar, Union, overload from aiohttp.abc import AbstractStreamWr...
aio-libs__aiohttp-sse-454
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "aiohttp_sse/__init__.py:EventSourceResponse.__init__", "aiohttp_sse/__init__.py:EventSourceResponse.prepare", "aiohttp_sse/__init__.py:EventSourceResponse.ping_interval" ], "...
aio-libs/aiohttp-sse
2be9383d9fb038cba833fb8aebc77b5188107c72
Accept `float` type for ping interval value [asyncio.sleep(...) method](https://docs.python.org/3/library/asyncio-task.html#asyncio.sleep) has a `delay` arg, which in turn is used in the [loop.call_later(...)](https://docs.python.org/3/library/asyncio-eventloop.html#asyncio.loop.call_later) call, which accepts a `float...
diff --git a/README.rst b/README.rst index e638aae..5b40c20 100644 --- a/README.rst +++ b/README.rst @@ -1,7 +1,7 @@ aiohttp-sse =========== -.. image:: https://travis-ci.org/aio-libs/aiohttp-sse.svg?branch=master - :target: https://travis-ci.org/aio-libs/aiohttp-sse +.. image:: https://github.com/aio-libs/aiohttp...
aio-libs__aiojobs-354
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "aiojobs/__init__.py:create_scheduler" ], "edited_modules": [ "aiojobs/__init__.py:create_scheduler" ] }, "file": "aiojobs/__init__.py" }, { "changes": { "...
aio-libs/aiojobs
fb3e7efb2a0af5f868573876c3becb9ddb2a6f72
Why it print exception stack twice? Code example ``` import asyncio import aiojobs async def f(): try: await asyncio.sleep(2) except asyncio.CancelledError: print('canceled') else: print('not canceled') async def err(): raise Exception async def main():...
diff --git a/README.rst b/README.rst index 0344d8d..7b49629 100644 --- a/README.rst +++ b/README.rst @@ -39,7 +39,7 @@ Usage example await asyncio.sleep(timeout) async def main(): - scheduler = await aiojobs.create_scheduler() + scheduler = aiojobs.Scheduler() for i in range(100): ...
aio-libs__aiomcache-240
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "aiomcache/client.py:Client._validate_key" ], "edited_modules": [ "aiomcache/client.py:Client" ] }, "file": "aiomcache/client.py" } ]
aio-libs/aiomcache
6001c72bfdd18c5901bce80d5f254cfaccd3fedb
aiomcache not support chinese bytes as a key I want use chinese bytes as a key: ```python In [1]: import asyncio ...: import aiomcache ...: ...: loop = asyncio.get_event_loop() ...
diff --git a/aiomcache/client.py b/aiomcache/client.py index d11063c..5719878 100644 --- a/aiomcache/client.py +++ b/aiomcache/client.py @@ -37,21 +37,22 @@ class Client(object): self._pool = MemcachePool( host, port, minsize=pool_minsize, maxsize=pool_size) - # key supports ascii sans space ...
aio-libs__aiomcache-314
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "aiomcache/client.py:FlagClient.__init__", "aiomcache/client.py:Client.__init__" ], "edited_modules": [ "aiomcache/client.py:FlagClient", "aiomcache/client.py:Client" ...
aio-libs/aiomcache
58e24c4612340cbaebe776b4e54d7f73277533d8
Encryption via TLS Will I be able to use TLS encryption in future releases?
diff --git a/aiomcache/client.py b/aiomcache/client.py index d31232d..1b61a23 100644 --- a/aiomcache/client.py +++ b/aiomcache/client.py @@ -1,8 +1,8 @@ import functools import re import sys -from typing import (Any, Awaitable, Callable, Dict, Generic, Optional, Tuple, TypeVar, - Union, overload) ...
aio-libs__aiopg-770
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "aiopg/connection.py:Connection.cursor", "aiopg/connection.py:Connection._cursor" ], "edited_modules": [ "aiopg/connection.py:Connection" ] }, "file": "aiopg/con...
aio-libs/aiopg
52532fb0439428441033c13dba13e6534f399d92
The default read committed isolation level is the wrong choice Hello, I have a project where I experienced serialization failures on a statement: ``` select 1 from file where (id, group_id) = (%s, %s) for update ``` resulting in errors like: ``` psycopg2.errors.SerializationFailure: could not serialize ...
diff --git a/aiopg/connection.py b/aiopg/connection.py index cdde843..0cc1c3e 100755 --- a/aiopg/connection.py +++ b/aiopg/connection.py @@ -199,7 +199,8 @@ class Connection: return self._conn.isexecuting() def cursor(self, name=None, cursor_factory=None, - scrollable=None, withhold=False,...
aio-libs__aiorwlock-364
[ { "changes": { "added_entities": [ "aiorwlock/__init__.py:_RWLockCore._get_loop" ], "added_modules": null, "edited_entities": [ "aiorwlock/__init__.py:_RWLockCore.__init__", "aiorwlock/__init__.py:_RWLockCore.acquire_read", "aiorwlock/__init__.py:_RWLockCo...
aio-libs/aiorwlock
e01c83b65e2bf2ca5991f6ef243ed919ffd796fb
Errors caused by no running event loop I've been using the library for a while in various projects, and after recent python updates I'm now getting the same error in all of them: `"env/lib/python3.10/site-packages/aiorwlock/__init__.py", line 242, in __init__ loop = asyncio.get_running_loop() RuntimeError: no ru...
diff --git a/aiorwlock/__init__.py b/aiorwlock/__init__.py index 396853c..a091860 100644 --- a/aiorwlock/__init__.py +++ b/aiorwlock/__init__.py @@ -1,5 +1,5 @@ import asyncio -import warnings +import threading from collections import deque from typing import Any, Deque, List, Optional, Tuple @@ -17,15 +17,17 @@ _...
aio-libs__aiosmtpd-106
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "aiosmtpd/smtp.py:SMTP.smtp_HELO", "aiosmtpd/smtp.py:SMTP.smtp_EHLO" ], "edited_modules": [ "aiosmtpd/smtp.py:SMTP" ] }, "file": "aiosmtpd/smtp.py" } ]
aio-libs/aiosmtpd
2ec2b40aab6288baf2153672aae51800d3e73765
Duplicated HELO/EHLO As already mentioned in source code (https://github.com/aio-libs/aiosmtpd/blob/c25b878473b086150d32fcd21c35c58099947e5f/aiosmtpd/smtp.py#L264, also in original smtpd's code) a second HELO/EHLO is rejected but the standart says it should be handled as a RSET command. Is there any special reason t...
diff --git a/aiosmtpd/smtp.py b/aiosmtpd/smtp.py index f123514..287875b 100644 --- a/aiosmtpd/smtp.py +++ b/aiosmtpd/smtp.py @@ -284,10 +284,6 @@ class SMTP(asyncio.StreamReaderProtocol): if not hostname: await self.push('501 Syntax: HELO hostname') return - # See issue #21783 ...
aio-libs__aiosmtpd-112
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "aiosmtpd/main.py:parseargs" ], "edited_modules": [ "aiosmtpd/main.py:parseargs" ] }, "file": "aiosmtpd/main.py" } ]
aio-libs/aiosmtpd
c030ae82759f82d1accb6872ce1702d6b655045d
Add CLI support for `--version` Subject says it all.
diff --git a/aiosmtpd/docs/NEWS.rst b/aiosmtpd/docs/NEWS.rst index b69ec8c..c53b1e6 100644 --- a/aiosmtpd/docs/NEWS.rst +++ b/aiosmtpd/docs/NEWS.rst @@ -11,6 +11,8 @@ ignored. **API BREAK** If you have a handler that implements ``handle_NOOP()``, it previously took zero arguments but now requires a single arg...
aio-libs__aiosmtpd-115
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "aiosmtpd/smtp.py:SMTP._handle_client" ], "edited_modules": [ "aiosmtpd/smtp.py:SMTP" ] }, "file": "aiosmtpd/smtp.py" } ]
aio-libs/aiosmtpd
a046b08ac5a697718268c30394bcd45586074be0
CancelledError and misbehaving clients handling I tried to write a RCPT handler that accepts connection from various embedded devices and forwards the email address to an external system. However, as the devices are not proper SMTP clients and their quality varies I need the solution to be pretty robust. While developi...
diff --git a/MANIFEST.in b/MANIFEST.in index 1b19070..6c44541 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -1,4 +1,4 @@ include *.py MANIFEST.in global-include *.txt *.rst *.ini *.yml *.cfg *.crt *.key -exclude .gitignore +global-exclude .gitignore prune build diff --git a/aiosmtpd/smtp.py b/aiosmtpd/smtp.py index ...
aio-libs__aiosmtpd-119
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "aiosmtpd/lmtp.py:LMTP.smtp_LHLO" ], "edited_modules": [ "aiosmtpd/lmtp.py:LMTP" ] }, "file": "aiosmtpd/lmtp.py" }, { "changes": { "added_entities": [ ...
aio-libs/aiosmtpd
b87538bc1fc0137b5d188db938c9b386c71683a3
LMTP server offers HELO, doesn't provide correct LHLO response As initailly reported here: https://gitlab.com/mailman/mailman/issues/348 Telnet to the LMTP server, and type "HELP". It responds with 250 Supported commands: EHLO HELO MAIL RCPT DATA RSET NOOP QUIT VRFY This isn't correct. LMTP uses LHLO; the E...
diff --git a/aiosmtpd/docs/NEWS.rst b/aiosmtpd/docs/NEWS.rst index dc6631a..7ade980 100644 --- a/aiosmtpd/docs/NEWS.rst +++ b/aiosmtpd/docs/NEWS.rst @@ -21,6 +21,10 @@ * Widen the catch of ``ConnectionResetError`` and ``CancelledError`` to also catch such errors from handler methods. (Closes #110) * Added a manpa...
aio-libs__aiosmtpd-143
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "aiosmtpd/smtp.py:SMTP._handle_client" ], "edited_modules": [ "aiosmtpd/smtp.py:SMTP" ] }, "file": "aiosmtpd/smtp.py" } ]
aio-libs/aiosmtpd
23b743be942ffd37f9c051c1f6efe0108ffd456d
Exception when parsing binary data aiosmtpd will try to ASCII decode binary data as SMTP commands, raising a `UnicodeDecodeError`. A simple test case that triggers this is shown at the end of this report. This can be caught by a generic exception handler, however it would be better to do this inside the library. T...
diff --git a/.travis.yml b/.travis.yml index 6f1e947..8fb569e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -12,3 +12,5 @@ matrix: script: - tox -e $INTERP-nocov,$INTERP-cov,qa,docs - 'if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then tox -e $INTERP-diffcov; fi' +before_script: + - echo 0 | sudo tee /proc/sys/net/...
aio-libs__aiosmtpd-196
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "aiosmtpd/lmtp.py:LMTP.smtp_LHLO" ], "edited_modules": [ "aiosmtpd/lmtp.py:LMTP" ] }, "file": "aiosmtpd/lmtp.py" }, { "changes": { "added_entities": null, ...
aio-libs/aiosmtpd
bf7241ea30a2f76762324de1b1d58c9a4b0dc8ab
aiosmtpd.smtp.SMTP(…) erroneously modifies ssl.SSLContext configuration The initialisation of the `aiosmtpd.smtp.SMTP` class erroneously [modifies](https://github.com/aio-libs/aiosmtpd/blob/f3d04f9ae79cc72dbc68dbb1d8f638070c8033ec/aiosmtpd/smtp.py#L96-L100) the configuration of the [ssl.SSLContext](https://docs.python....
diff --git a/.coveragerc b/.coveragerc index 1c2cd01..65c4d18 100644 --- a/.coveragerc +++ b/.coveragerc @@ -5,10 +5,7 @@ omit = setup* aiosmtpd/testing/* aiosmtpd/tests/* - .tox/*/lib/python3.*/site-packages/* - .tox/*/Lib/site-packages/* - .tox/Lib/site-packages/* - .tox/*/site-packages/...
aio-libs__aiosmtpd-207
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "aiosmtpd/lmtp.py:LMTP.smtp_LHLO" ], "edited_modules": [ "aiosmtpd/lmtp.py:LMTP" ] }, "file": "aiosmtpd/lmtp.py" }, { "changes": { "added_entities": null, ...
aio-libs/aiosmtpd
17541ae0faf06053c1687427d2d95bbcf9e858e8
LMTP server fails to list any extended services The LHLO service awaits smtp_HELO instead of smtp_EHLO, preventing the greeting from displaying the service menu. This is a violation of the LMTP spec, RFC 2033. Patch attached. This affects https://gitlab.com/mailman/mailman/issues/365 [lmtp_lhlo.zip](https://g...
diff --git a/MANIFEST.in b/MANIFEST.in index 41d11f0..5a8020d 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -1,3 +1,3 @@ graft aiosmtpd -include .coveragerc LICENSE *.cfg *.ini *.py *.rst *.yml +include LICENSE *.cfg *.ini *.py *.rst *.yml global-exclude *.py[oc] diff --git a/aiosmtpd/docs/NEWS.rst b/aiosmtpd/docs/NE...
aio-libs__aiosmtpd-25
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "aiosmtpd/smtp.py:SMTP.__init__", "aiosmtpd/smtp.py:SMTP._handle_client" ], "edited_modules": [ "aiosmtpd/smtp.py:SMTP" ] }, "file": "aiosmtpd/smtp.py" } ]
aio-libs/aiosmtpd
0894d5f2660e995089974a11c264bab29e894cec
Set the connection identifier without setting a module global Currently, there's an `__version__` module global in smtp.py that is used when the client connects to the SMTP instance. There's also an unused module global `__ident__`. It should be possible to set these as attributes or arguments to the `SMTP` class, or...
diff --git a/.gitignore b/.gitignore index 4a71485..74def74 100644 --- a/.gitignore +++ b/.gitignore @@ -27,3 +27,5 @@ __pycache__/ py34-cov py35-cov htmlcov +coverage.xml +diffcov.html diff --git a/aiosmtpd/docs/NEWS.rst b/aiosmtpd/docs/NEWS.rst index 433ed66..1ca0483 100644 --- a/aiosmtpd/docs/NEWS.rst +++ b/aiosm...
aio-libs__aiosmtpd-263
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": null, "edited_modules": null }, "file": "aiosmtpd/__init__.py" }, { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "aiosmtpd/contro...
aio-libs/aiosmtpd
9c2a13eac52c6c293335b45c7c644ebc794a6905
TimeoutError: SMTP server not responding within allotted time Hello, I have similar problem. My project [msztolcman/sendria](https://github.com/msztolcman/sendria) is using `aiosmtpd` to handle incoming smtp connections. It works fine with `aiosmtpd` 1.2.2, but after upgrade to 1.4.1 I have: ```bash % sendria --db...
diff --git a/aiosmtpd/__init__.py b/aiosmtpd/__init__.py index 7403d8e..2124ae5 100644 --- a/aiosmtpd/__init__.py +++ b/aiosmtpd/__init__.py @@ -1,4 +1,4 @@ # Copyright 2014-2021 The aiosmtpd Developers # SPDX-License-Identifier: Apache-2.0 -__version__ = "1.4.1" +__version__ = "1.4.2a1" diff --git a/aiosmtpd/contr...
aio-libs__async-lru-506
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "async_lru/__init__.py:_LRUCacheWrapper.cache_clear", "async_lru/__init__.py:_LRUCacheWrapper._task_done_callback" ], "edited_modules": [ "async_lru/__init__.py:_LRUCacheWrapp...
aio-libs/async-lru
8310323a351f83bf99ab3500aac3982edb1df934
Error when the cache is cleared before the done callback is called I'm sometimes getting a KeyError on self.__tasks.remove(task) on line 165 in the __init__.py. I think it's because the cache_clear() method is called before the task finishes, which clears the __tasks set and then the task can no longer be found there. ...
diff --git a/async_lru/__init__.py b/async_lru/__init__.py index 4e5620f..0bdffc7 100644 --- a/async_lru/__init__.py +++ b/async_lru/__init__.py @@ -119,6 +119,10 @@ class _LRUCacheWrapper(Generic[_R]): def cache_clear(self) -> None: self.__hits = 0 self.__misses = 0 + + for c in self.__ca...
aio-libs__async-timeout-230
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "async_timeout/__init__.py:Timeout._on_timeout" ], "edited_modules": [ "async_timeout/__init__.py:Timeout" ] }, "file": "async_timeout/__init__.py" } ]
aio-libs/async-timeout
f2c160a2d7c45609ef029792394887d80d83712f
aiohttp swallows asyncio.CancelledError during connection timeout ### Describe the bug There is a race condition in code that handles connection timeout. If you call `cancel` on a task that is currently pending in `create_connection` and connection timeout was already fired then `asyncio.CancelledError` is not propa...
diff --git a/async_timeout/__init__.py b/async_timeout/__init__.py index 6222654..31a4aef 100644 --- a/async_timeout/__init__.py +++ b/async_timeout/__init__.py @@ -198,6 +198,9 @@ class Timeout: return None def _on_timeout(self, task: "asyncio.Task[None]") -> None: + # See Issue #229 and PR #230...
aio-libs__janus-710
[ { "changes": { "added_entities": [ "janus/__init__.py:Queue._call_soon_threadsafe", "janus/__init__.py:Queue._get_loop" ], "added_modules": null, "edited_entities": [ "janus/__init__.py:Queue.__init__", "janus/__init__.py:Queue._notify_sync_not_empty", ...
aio-libs/janus
b1e6e0f3ce160ad7be74f0b85297986947da8d8c
No running event loop I am having trouble creating the janus Queue outside of asyncio. It requires me to make dummy background tasks to just create the object, since not running loop exists I am wonder if this could be lazy or allow the loop to be passed in the constructor? It makes sync to async code a tad harder.
diff --git a/CHANGES.rst b/CHANGES.rst index c8d60c2..648ef02 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -12,6 +12,8 @@ Changes - Reduce notifications for a minor speedup #704 +- Allow ``janus.Queue()`` instantiation without running asyncio event loop #710 + 1.1.0 (2024-10-30) ------------------ diff --git ...
aio-libs__multidict-3
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "multidict/_multidict_py.py:MultiDict._extend" ], "edited_modules": [ "multidict/_multidict_py.py:MultiDict" ] }, "file": "multidict/_multidict_py.py" } ]
aio-libs/multidict
ae23ed4adbfff861bd2621223a0e50bb0313cf32
Python MultiDict constructor discards generator content When using the pure Python implementation, if a `MultiDict` is constructed with a generator argument: headers = CIMultiDict( ( k.decode('utf-8', 'surrogateescape'), v.decode('utf-8', 'surrogateescape'), ) ...
diff --git a/multidict/_multidict_py.py b/multidict/_multidict_py.py index f9c8f38..bff8276 100644 --- a/multidict/_multidict_py.py +++ b/multidict/_multidict_py.py @@ -185,12 +185,13 @@ class MultiDict(_Base, abc.MutableMapping): elif hasattr(arg, 'items'): items = arg.items() ...
aio-libs__yarl-106
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "yarl/__init__.py:URL.__init__", "yarl/__init__.py:URL.raw_user", "yarl/__init__.py:URL._make_netloc" ], "edited_modules": [ "yarl/__init__.py:URL" ] }, ...
aio-libs/yarl
6a091a171b0419dfa5ed67049d432d50d3301ce8
Passwords without users Currently, yarl refuses to set an password if a user isn't set. That's a bit unfortunate because that’s exactly what you need if you’re building redis URLs: https://redis-py.readthedocs.io/en/latest/#redis.StrictRedis.from_url
diff --git a/CHANGES.rst b/CHANGES.rst index 5b9a667..49b78a2 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -10,6 +10,8 @@ CHANGES * Unsafe encoding for QS fixed. Encode `;` char in value param (#104) +* Process passwords without user names (#95) + 0.12.0 (2017-06-26) ------------------- diff --git a/yarl/__in...
aiortc__aiortc-1055
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "src/aiortc/rtcpeerconnection.py:RTCPeerConnection.setLocalDescription", "src/aiortc/rtcpeerconnection.py:RTCPeerConnection.setRemoteDescription" ], "edited_modules": [ "src/a...
aiortc/aiortc
bc19cfb8ae25ac68e34f0d1b77c2828de003e50c
Setting RTCRtpTransceiver.direction to `inactive` does not have any effect We have a transceiver that was generated out of a `pc.addTransceiver(track)`, meaning the transceiver has only a receiver. When setting the transceiver direction to `inactive`, while we keep sending RTP to this endpoint we expect it to just i...
diff --git a/src/aiortc/rtcpeerconnection.py b/src/aiortc/rtcpeerconnection.py index 738d486..17e06cb 100644 --- a/src/aiortc/rtcpeerconnection.py +++ b/src/aiortc/rtcpeerconnection.py @@ -789,7 +789,7 @@ class RTCPeerConnection(AsyncIOEventEmitter): # configure direction for t in self.__transceivers:...
aiortc__aiortc-1090
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "src/aiortc/rtcpeerconnection.py:RTCPeerConnection.setRemoteDescription", "src/aiortc/rtcpeerconnection.py:RTCPeerConnection.__validate_description" ], "edited_modules": [ "sr...
aiortc/aiortc
55b29590db07a5d98fb4b7fbee969893c1c1ce92
aiortc rejecting offer with setup=passive against RFC guidance Repro steps 1. Have an SDP that has `a=setup:passive` in it 2. Create `RTCSessionDescription` with this sdp and `type="offer"` 3. Call `pc.setRemoteDescription` with above session description Expected 1. This succeeds. See [RFC spec](https://datatrac...
diff --git a/src/aiortc/rtcpeerconnection.py b/src/aiortc/rtcpeerconnection.py index 17e06cb..70b5ee9 100644 --- a/src/aiortc/rtcpeerconnection.py +++ b/src/aiortc/rtcpeerconnection.py @@ -928,6 +928,8 @@ class RTCPeerConnection(AsyncIOEventEmitter): iceTransport._role_set = True ...
airbrake__pybrake-44
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "pybrake/routes.py:RouteStat.__dict__", "pybrake/routes.py:RouteStat.__init__", "pybrake/routes.py:RouteStat.add" ], "edited_modules": [ "pybrake/routes.py:RouteStat" ...
airbrake/pybrake
360d93f0ccafe92f338858666c8bd192ea3fa00f
Add tdigest support tdigest must be converted to bytes using function https://github.com/airbrake/pybrake/blob/master/pybrake/tdigest.py#L38-L54. Then bytes should be encoded as base64 and sent with json for each route `{"tdigest": "base64"}`
diff --git a/pybrake/routes.py b/pybrake/routes.py index 8a3a271..02b4def 100755 --- a/pybrake/routes.py +++ b/pybrake/routes.py @@ -1,13 +1,30 @@ -from threading import Lock, Timer +import base64 import json +from threading import Lock, Timer +from tdigest import TDigest import requests +from .tdigest import as_by...
airbrake__pybrake-46
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "examples/flask/airbrake_middleware.py:after_request" ], "edited_modules": [ "examples/flask/airbrake_middleware.py:after_request" ] }, "file": "examples/flask/airbrake_...
airbrake/pybrake
feab6e6687282726b354387b8951d5493a3dadbc
Update routes API - incRequest -> notifyRequest - statusCode -> status_code - /api/v4/projects/{}/routes-stats -> /api/v5/projects/{}/routes-stats
diff --git a/examples/flask/airbrake_middleware.py b/examples/flask/airbrake_middleware.py index e53d8d2..24e3ea1 100755 --- a/examples/flask/airbrake_middleware.py +++ b/examples/flask/airbrake_middleware.py @@ -24,7 +24,7 @@ def after_request(notifier): logger.error("processing time is not valid") retur...
airbrake__pybrake-53
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "examples/flask/airbrake_middleware.py:before_request", "examples/flask/airbrake_middleware.py:after_request" ], "edited_modules": [ "examples/flask/airbrake_middleware.py:bef...
airbrake/pybrake
7562d51f992eb45295f986da2c7682f9df66238b
Change api to accept end time Instead of `time=, ms=` it should accept `start_time=, end_time=`
diff --git a/examples/flask/airbrake_middleware.py b/examples/flask/airbrake_middleware.py index 24e3ea1..07ebd47 100755 --- a/examples/flask/airbrake_middleware.py +++ b/examples/flask/airbrake_middleware.py @@ -1,4 +1,4 @@ -import datetime +import time from flask import g, request from pybrake.utils import logger ...
airbrake__pybrake-63
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "pybrake/routes.py:RouteStat.__init__" ], "edited_modules": [ "pybrake/routes.py:RouteStat" ] }, "file": "pybrake/routes.py" } ]
airbrake/pybrake
7fe7cccafb73399db3ab5d33292cd2d189e3a513
Change status_code -> statusCode
diff --git a/pybrake/routes.py b/pybrake/routes.py index 92a199d..045ff84 100755 --- a/pybrake/routes.py +++ b/pybrake/routes.py @@ -11,7 +11,7 @@ class RouteStat(): __slots__ = [ 'method', 'route', - 'status_code', + 'statusCode', 'count', 'sum', 'sumsq', @@ -30,7 +30,7 @@ class Route...
airbrake__pybrake-77
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "pybrake/notifier.py:Notifier._clean_filename" ], "edited_modules": [ "pybrake/notifier.py:Notifier" ] }, "file": "pybrake/notifier.py" } ]
airbrake/pybrake
6970c56dfd3cf8caba339321f020ebc04d8129b0
[SITE_PACKAGES] -> /SITE_PACKAGES https://github.com/airbrake/pybrake/blob/master/pybrake/notifier.py#L298
diff --git a/pybrake/notifier.py b/pybrake/notifier.py index 9218c51..c673108 100644 --- a/pybrake/notifier.py +++ b/pybrake/notifier.py @@ -295,7 +295,7 @@ class Notifier: needed = "/site-packages/" ind = s.find(needed) if ind > -1: - s = "[SITE_PACKAGES]/" + s[ind...
airspeed-velocity__asv-674
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "asv/benchmarks.py:Benchmarks._disc_benchmarks" ], "edited_modules": [ "asv/benchmarks.py:Benchmarks" ] }, "file": "asv/benchmarks.py" }, { "changes": { "a...
airspeed-velocity/asv
1ca6450ea2124967ce77379a0e5fb7dfb66a05cb
`git rev-parse master` can fail I'm trying to run benchmarks on Travis-CI. Unfortunately, "asv run" uses "git rev-parse master" to discover benchmarks, which fails as "master" doesn't necessary exist: https://travis-ci.org/pitrou/arrow/builds/364763507#L866 The command being run is: ``` asv run --no-pull --show-s...
diff --git a/asv/benchmarks.py b/asv/benchmarks.py index 40379f9..8dacfbb 100644 --- a/asv/benchmarks.py +++ b/asv/benchmarks.py @@ -19,6 +19,7 @@ import six from .console import log, truncate_left from . import util from . import statistics +from .repo import NoSuchNameError WIN = (os.name == "nt") @@ -410,7 +...
airspeed-velocity__asv-680
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "asv/results.py:Results.add_result", "asv/results.py:Results.get_profile" ], "edited_modules": [ "asv/results.py:Results" ] }, "file": "asv/results.py" }, { ...
airspeed-velocity/asv
8f3e6786472a96c79446f6ca4d56707c90a76f22
JSON serialization problem "TypeError: Object of type 'bytes' is not JSON serializable" during asv run --profile Python 3.6
diff --git a/asv/results.py b/asv/results.py index 76dbe6b..8513b71 100644 --- a/asv/results.py +++ b/asv/results.py @@ -4,6 +4,7 @@ from __future__ import (absolute_import, division, print_function, unicode_literals) +import sys import base64 import os import zlib @@ -405,15 +406,31 @@ c...
airspeed-velocity__asv-683
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "asv/benchmark.py:TimeBenchmark.benchmark_timing" ], "edited_modules": [ "asv/benchmark.py:TimeBenchmark" ] }, "file": "asv/benchmark.py" }, { "changes": { ...
airspeed-velocity/asv
47b320d6252fba81581bf37b50571bcca578096d
Big time difference for benchmarks that require high warmup I was running a benchmark with latest asv 0.3dev0 and I observed a big time difference from asv 0.2. * 0.2 https://github.com/poliastro/poliastro-benchmarks/blob/df6a71330f08c0c0ae1369818bc5af8106bba62f/results/ks1/d32f3ab8-conda-py3.6-matplotlib2.1-nomkl-n...
diff --git a/asv/benchmark.py b/asv/benchmark.py index 20cf86f..8f6932f 100644 --- a/asv/benchmark.py +++ b/asv/benchmark.py @@ -470,10 +470,12 @@ class TimeBenchmark(Benchmark): samples = [s/number for s in samples] return {'samples': samples, 'number': number} - def benchmark_timing(self, timer...
airspeed-velocity__asv-702
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "asv/commands/profiling.py:Profile.run" ], "edited_modules": [ "asv/commands/profiling.py:Profile" ] }, "file": "asv/commands/profiling.py" } ]
airspeed-velocity/asv
c9560bd78defaf02eecefc43e54953c10fb3a0d8
"asv profile" broken with existing environment ``` $ asv profile -E existing comm.Transfer.time_tcp_large_transfers_uncompressible · An explicit revision may not be specified when using an existing environment. ``` Same with: ``` $ asv profile --python=same comm.Transfer.time_tcp_large_transfers_uncompressible ...
diff --git a/asv/commands/profiling.py b/asv/commands/profiling.py index afabf6c..8028862 100644 --- a/asv/commands/profiling.py +++ b/asv/commands/profiling.py @@ -13,7 +13,7 @@ import tempfile from . import Command from ..benchmarks import Benchmarks -from ..console import log +from ..console import log, color_pr...
airspeed-velocity__asv-704
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "asv/commands/compare.py:Compare.run" ], "edited_modules": [ "asv/commands/compare.py:Compare" ] }, "file": "asv/commands/compare.py" }, { "changes": { "ad...
airspeed-velocity/asv
f363a227c8d11a05b0e01125bfc3c5801a10282e
compare should understand any committish - rev-parse call is missing? ATM (with 0.3.dev1232+cba62ac1) you must specify commit hexshas to `compare`: ```shell $> asv compare -m hopa 0.9.x master · Did not find results for commit 0.9.x ``` and what is needed is just to run `git rev-parse` on every en...
diff --git a/asv/commands/compare.py b/asv/commands/compare.py index 55c54b8..7a6e69d 100644 --- a/asv/commands/compare.py +++ b/asv/commands/compare.py @@ -9,6 +9,7 @@ import itertools from . import Command from ..machine import iter_machine_files from ..results import iter_results_for_machine_and_hash +from ..repo...
airspeed-velocity__asv-705
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "asv/commands/compare.py:Compare.run", "asv/commands/compare.py:Compare.print_table" ], "edited_modules": [ "asv/commands/compare.py:Compare" ] }, "file": "asv/c...
airspeed-velocity/asv
b6d369758a59cdae600b1cb91bb7dc59be3f0531
Include branch name for the commit If configuration is setup to test multiple branches it would be great to know what branch(es) commit being tested belongs to. Currently I am just getting output like `For XXX commit hash YYYY:`. Should be quite easy to implement by simply looking at either any given specified branc...
diff --git a/asv/commands/compare.py b/asv/commands/compare.py index 7a6e69d..1096249 100644 --- a/asv/commands/compare.py +++ b/asv/commands/compare.py @@ -163,14 +163,18 @@ class Compare(Command): raise util.UserError( "Results for machine '{0} not found".format(machine)) + comm...
airspeed-velocity__asv-726
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "asv/commands/compare.py:Compare.print_table" ], "edited_modules": [ "asv/commands/compare.py:Compare" ] }, "file": "asv/commands/compare.py" } ]
airspeed-velocity/asv
049f4fa74d981a4a1996b2c109b912ea79fd462f
asv compare should use the unit attribute for displaying I have a benchmark that counts number of objects with a `track_` method, but `asv run` outputs minutes, hours, days.
diff --git a/asv/commands/compare.py b/asv/commands/compare.py index 1096249..164c2ed 100644 --- a/asv/commands/compare.py +++ b/asv/commands/compare.py @@ -7,6 +7,7 @@ from __future__ import (absolute_import, division, print_function, import itertools from . import Command +from ..benchmarks import Benchmarks fro...
airspeed-velocity__asv-733
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "asv/util.py:human_float" ], "edited_modules": [ "asv/util.py:human_float" ] }, "file": "asv/util.py" } ]
airspeed-velocity/asv
d069dc4a375a60402acc0bbe1b7df938768b0c16
util.human_float doesn't print +-inf or nan properly Raises exceptions in `math.log10`: ``` File "asv/util.py", line 110, in human_float logv = math.log10(value) ValueError: math domain error ``` on +/-inf or nan inputs. This can be triggered in `asv show` and maybe elsewhere.
diff --git a/asv/util.py b/asv/util.py index c7a58e7..42688af 100644 --- a/asv/util.py +++ b/asv/util.py @@ -106,6 +106,13 @@ def human_float(value, significant=3, truncate_small=None, significant_zeros=Fal """ if value == 0: return "0" + elif math.isinf(value) or math.isnan(value): + retur...
airspeed-velocity__asv-794
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "asv/commands/run.py:Run.setup_arguments", "asv/commands/run.py:Run.run_from_conf_args", "asv/commands/run.py:Run.run" ], "edited_modules": [ "asv/commands/run.py:Run"...
airspeed-velocity/asv
c46d9cb573bbca397433cdaf9e5728a9992ba283
Help comparing benchmarks across virtualenvs Sorry if this is the wrong place to ask. Sorry too that I am sure I am missing something obvious. I am using asv on Windows : https://github.com/numpy/numpy/issues/5479 I'm comparing performance of numpy in two virtualenvs, one with MKL linking, the other with ATLAS linki...
diff --git a/asv/commands/run.py b/asv/commands/run.py index cf1a52e..74d88d0 100644 --- a/asv/commands/run.py +++ b/asv/commands/run.py @@ -92,6 +92,11 @@ class Run(Command): benchmark functions faster. The results are unlikely to be useful, and thus are not saved.""") common_args.a...
airtai__fastagency-235
[ { "changes": { "added_entities": [ "fastagency/api/openapi/client.py:OpenAPI._get_matching_security" ], "added_modules": null, "edited_entities": [ "fastagency/api/openapi/client.py:OpenAPI.__init__", "fastagency/api/openapi/client.py:OpenAPI.set_security_params",...
airtai/fastagency
5413cc3646a8fdebffb17abb24e13a66b325a596
Add support for multiple security schema ## Test One route with APIKeyHeader and APIKeyQuery
diff --git a/fastagency/api/openapi/client.py b/fastagency/api/openapi/client.py index 3a0f4182..80251827 100644 --- a/fastagency/api/openapi/client.py +++ b/fastagency/api/openapi/client.py @@ -48,7 +48,7 @@ class OpenAPI: self.registered_funcs: list[Callable[..., Any]] = [] self.globals: dict[str, A...
airtai__fastagency-314
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "fastagency/ui/mesop/message.py:MesopGUIMessageVisitor.message_content_to_markdown", "fastagency/ui/mesop/message.py:MesopGUIMessageVisitor.visit_default", "fastagency/ui/mesop/message.py...
airtai/fastagency
7277adad9549d5cab8648d4d03ee3a686a29cfb2
Feature: add support for Together AI Add support for Together AI
diff --git a/fastagency/ui/mesop/message.py b/fastagency/ui/mesop/message.py index 2b7cd958..70014201 100644 --- a/fastagency/ui/mesop/message.py +++ b/fastagency/ui/mesop/message.py @@ -128,14 +128,6 @@ class MesopGUIMessageVisitor(IOMessageVisitor): responses = send_user_feedback_to_autogen(feedback) ...