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
getsentry__sentry-python-2279
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "sentry_sdk/client.py:_Client.capture_event" ], "edited_modules": [ "sentry_sdk/client.py:_Client" ] }, "file": "sentry_sdk/client.py" } ]
getsentry/sentry-python
d48d3eb79bd6a91570476e5d3fc627e195ca2eba
sample_rate option affecting crons checkin events ### How do you use Sentry? Sentry Saas (sentry.io) ### Version 1.28.1 ### Steps to Reproduce Error event specific option `sample_rate` is affecting crons check in events ``` sentry_sdk.init( dsn="https://da93b3386b344b3182ed201d7a18bab0@o1407376.ingest.sen...
diff --git a/sentry_sdk/client.py b/sentry_sdk/client.py index 9dd54165..02006e94 100644 --- a/sentry_sdk/client.py +++ b/sentry_sdk/client.py @@ -530,12 +530,16 @@ class _Client(object): self._update_session_from_event(session, event) is_transaction = event_opt.get("type") == "transaction" + ...
getsentry__sentry-python-2297
[ { "changes": { "added_entities": [ "sentry_sdk/client.py:_Client.is_sentry_url" ], "added_modules": null, "edited_entities": null, "edited_modules": [ "sentry_sdk/client.py:_Client" ] }, "file": "sentry_sdk/client.py" }, { "changes": { "a...
getsentry/sentry-python
6d925c6cc9c153942e4593a687b85be370ec6eac
Don't record spans for internal SDK requests to the DSN ### How do you use Sentry? Sentry Saas (sentry.io) ### Version 1.25.1 ### Steps to Reproduce ```python import sentry_sdk sentry_sdk.init(traces_sample_rate=1.0, debug=True) # for i in range(1000): with sentry_sdk.start_transaction(name='pare...
diff --git a/sentry_sdk/client.py b/sentry_sdk/client.py index 02006e94..7479f462 100644 --- a/sentry_sdk/client.py +++ b/sentry_sdk/client.py @@ -581,6 +581,17 @@ class _Client(object): return event_id + def is_sentry_url(self, url): + # type: (str) -> bool + """ + Determines wheth...
getsentry__sentry-python-2341
[ { "changes": { "added_entities": [ "sentry_sdk/integrations/asgi.py:SentryAsgiMiddleware._get_transaction_name_and_source" ], "added_modules": null, "edited_entities": [ "sentry_sdk/integrations/asgi.py:SentryAsgiMiddleware._run_app", "sentry_sdk/integrations/asgi...
getsentry/sentry-python
ba6de38d915a2d66a7633017306c425ba4b34a72
`traces_sampler` receives always "generic ASGI request" as transaction name. ### How do you use Sentry? Sentry Saas (sentry.io) ### Version 1.11.1 ### Steps to Reproduce I have manually instrumented traces_sampler counted on transaction name in sampling context. At some point with sentry-sdk version upgrade, it st...
diff --git a/sentry_sdk/integrations/asgi.py b/sentry_sdk/integrations/asgi.py index b5170d3a..2cecdf9a 100644 --- a/sentry_sdk/integrations/asgi.py +++ b/sentry_sdk/integrations/asgi.py @@ -17,12 +17,15 @@ from sentry_sdk.hub import Hub from sentry_sdk.integrations._asgi_common import ( _get_headers, _get_r...
getsentry__sentry-python-2359
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "sentry_sdk/integrations/falcon.py:_patch_prepare_middleware" ], "edited_modules": [ "sentry_sdk/integrations/falcon.py:_patch_prepare_middleware" ] }, "file": "sentry_s...
getsentry/sentry-python
44ba734782a25fe03efe02991efcbb22a756033d
sentry-sdk stopped working with falcon 3+ asgi app ### How do you use Sentry? Sentry Saas (sentry.io) ### Version 1.16.0 ### Steps to Reproduce I created a test repo where the bug can be reproduced -> https://github.com/detoyz/sentry_falcon_asgi_bug . There are also details on how to setup project & reproduce the ...
diff --git a/sentry_sdk/integrations/falcon.py b/sentry_sdk/integrations/falcon.py index 1bb79428..9b3cc40c 100644 --- a/sentry_sdk/integrations/falcon.py +++ b/sentry_sdk/integrations/falcon.py @@ -206,13 +206,20 @@ def _patch_prepare_middleware(): original_prepare_middleware = falcon_helpers.prepare_middleware ...
getsentry__sentry-python-2449
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": null, "edited_modules": null }, "file": "sentry_sdk/consts.py" }, { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "sentry_sdk/tran...
getsentry/sentry-python
fee865c9b475db1a5fefcec1cabceda9cb3367f7
Transport causes CPU Spikes on Larger Envelopes ### How do you use Sentry? Sentry Saas (sentry.io) ### Version 1.31 ### Steps to Reproduce Sending this to Sentry causes the transport to create CPU spikes that are very visible in our kubernetes pods. ```python from sentry_sdk import capture_message, p...
diff --git a/sentry_sdk/consts.py b/sentry_sdk/consts.py index 2b0bd571..5bc3e2aa 100644 --- a/sentry_sdk/consts.py +++ b/sentry_sdk/consts.py @@ -43,6 +43,7 @@ if TYPE_CHECKING: "profiler_mode": Optional[ProfilerMode], "otel_powered_performance": Optional[bool], "transport_zlib_c...
getsentry__sentry-python-2456
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "sentry_sdk/client.py:_Client._should_sample_error", "sentry_sdk/client.py:_Client.capture_event" ], "edited_modules": [ "sentry_sdk/client.py:_Client" ] }, "fil...
getsentry/sentry-python
bf218e99585c90b6332ead07af456eed3149d0d8
Issues Sampling (like `traces_sampler`) ### Problem Statement I ran into the same problem as was voiced in: https://github.com/getsentry/sentry/issues/28792#issuecomment-926373402, https://github.com/getsentry/sentry/issues/46670, https://github.com/getsentry/sentry/issues/27884. In short: there is a service that p...
diff --git a/sentry_sdk/client.py b/sentry_sdk/client.py index b65c3f0c..749ab23c 100644 --- a/sentry_sdk/client.py +++ b/sentry_sdk/client.py @@ -454,12 +454,34 @@ class _Client(object): def _should_sample_error( self, event, # type: Event + hint, # type: Hint ): # type: (...
getsentry__sentry-python-2500
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": null, "edited_modules": null }, "file": "sentry_sdk/_types.py" }, { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "sentry_sdk/enve...
getsentry/sentry-python
35d86b69980632816b5e055a2d697cdecef14a36
Checkins are dropped when lots of Celery child tasks are started and `max-tasks-per-child` is reached ### How do you use Sentry? Sentry Saas (sentry.io) ### Version 1.33.0 ### Steps to Reproduce Set `max-tasks-per-child` in Celery to 10000. Use `redis` as broker. Create a Celery Task that starts 12000 child tasks ...
diff --git a/sentry_sdk/_types.py b/sentry_sdk/_types.py index bfe4b4ab..c421a675 100644 --- a/sentry_sdk/_types.py +++ b/sentry_sdk/_types.py @@ -54,6 +54,7 @@ if TYPE_CHECKING: "internal", "profile", "statsd", + "check_in", ] SessionStatus = Literal["ok", "exited", "crashed...
getsentry__sentry-python-2552
[ { "changes": { "added_entities": [ "sentry_sdk/metrics.py:MetricsAggregator.record_code_location", "sentry_sdk/metrics.py:MetricsAggregator.need_code_loation", "sentry_sdk/metrics.py:_get_aggregator" ], "added_modules": [ "sentry_sdk/metrics.py:_get_aggregator" ...
getsentry/sentry-python
e9b5855d619ded6152bd84dff93f948ac2d32515
Incorrect metric meta location for metrics.timing ### How do you use Sentry? Sentry Saas (sentry.io) ### Version 1.38.0 ### Steps to Reproduce Use `with sentry_sdk.metrics.timing` and then look at the reported location in DDM ### Expected Result The location of the `with` statement ### Actual Result Location o...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 82936184..2f0a92ee 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # Changelog +## 1.39.0 + +### Various fixes & improvements + +- Improve location reporting for timer metrics (#2552) by @mitsuhiko + ## 1.38.0 ### Various fixes & improvements diff --gi...
getsentry__sentry-python-3002
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "sentry_sdk/tracing.py:Transaction.finish" ], "edited_modules": [ "sentry_sdk/tracing.py:Transaction" ] }, "file": "sentry_sdk/tracing.py" } ]
getsentry/sentry-python
6a733683ebd9728bab065b6e2d9ea11687e204a4
Improve debug message when dropping transaction We log the following debug message when we drop a transaction that has no span recorder: ``` DEBUG: Discarding transaction because sampled = False ``` While having `sampled=False` is one potential cause for lacking a span recorder, transactions that have `sampled=...
diff --git a/sentry_sdk/tracing.py b/sentry_sdk/tracing.py index 16037291..6e82d839 100644 --- a/sentry_sdk/tracing.py +++ b/sentry_sdk/tracing.py @@ -747,9 +747,14 @@ class Transaction(Span): # We have no active client and therefore nowhere to send this transaction. return None - # T...
getsentry__sentry-python-3070
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "sentry_sdk/tracing.py:Span.iter_headers" ], "edited_modules": [ "sentry_sdk/tracing.py:Span" ] }, "file": "sentry_sdk/tracing.py" } ]
getsentry/sentry-python
a02eb9c26badfe0d11429d018399455f4394fef7
Dynamic sampling context might be missing from Celery Beat transactions ### How do you use Sentry? Sentry Saas (sentry.io) ### Version Latest 2.x ### Steps to Reproduce Update: [See here](https://github.com/szokeasaurusrex/issue-reproductions/tree/main/getsentry/sentry-python/3068) for a simple demonstra...
diff --git a/sentry_sdk/tracing.py b/sentry_sdk/tracing.py index 36aab289..a6b1905a 100644 --- a/sentry_sdk/tracing.py +++ b/sentry_sdk/tracing.py @@ -426,12 +426,18 @@ class Span: If the span's containing transaction doesn't yet have a ``baggage`` value, this will cause one to be generated and stored...
getsentry__sentry-python-309
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "sentry_sdk/client.py:Client._prepare_event" ], "edited_modules": [ "sentry_sdk/client.py:Client" ] }, "file": "sentry_sdk/client.py" }, { "changes": { "ad...
getsentry/sentry-python
36eeba22305a900793b89a263b3d663ada6d5712
Clarify proxy fallback behavior I am currently working on #178 and extended the tests for the proxy selection mechanism, especially when the env variables like `HTTP_PROXY` and `HTTPS_PROXY` are present. One thing that I've observed is the fallback behavior: - no ENV vars: HTTPS DSNs can fallback to HTTP proxies (se...
diff --git a/sentry_sdk/client.py b/sentry_sdk/client.py index 8ecea608..15c869a5 100644 --- a/sentry_sdk/client.py +++ b/sentry_sdk/client.py @@ -116,13 +116,17 @@ class Client(object): and "threads" not in event ): with capture_internal_exceptions(): - event["threads"...
getsentry__sentry-python-3244
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": null, "edited_modules": null }, "file": "sentry_sdk/_types.py" }, { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "sentry_sdk/clie...
getsentry/sentry-python
ee84c81bd00ee9286cdc53f4c1980009e0297eb5
Improve `record_lost_event` parameter documentation `data_category` and `item` are mutually exclusive; only one should be provided at a time. https://github.com/getsentry/sentry-python/blob/31efa62c90e5b88c6c15b55f6908a25133d65958/sentry_sdk/transport.py#L133-L142
diff --git a/sentry_sdk/_types.py b/sentry_sdk/_types.py index bd229977..14fa8d08 100644 --- a/sentry_sdk/_types.py +++ b/sentry_sdk/_types.py @@ -155,6 +155,7 @@ if TYPE_CHECKING: "profile_chunk", "metric_bucket", "monitor", + "span", ] SessionStatus = Literal["ok", "exited"...
getsentry__sentry-python-3247
[ { "changes": { "added_entities": [ "sentry_sdk/transport.py:HttpTransport._warn_hub_cls", "sentry_sdk/transport.py:HttpTransport.hub_cls" ], "added_modules": null, "edited_entities": [ "sentry_sdk/transport.py:HttpTransport.__init__", "sentry_sdk/transport...
getsentry/sentry-python
defb44860283348576a957ba481b2359bcc40a54
Stop Using `Hub` in `HttpTransport` We are still using the deprecated `Hub` in `HttpTransport`: https://github.com/getsentry/sentry-python/blob/407f651f66fa811a20241579aa7881de624b3e20/sentry_sdk/transport.py#L221-L223 https://github.com/getsentry/sentry-python/blob/407f651f66fa811a20241579aa7881de624b3e20/sentry...
diff --git a/sentry_sdk/transport.py b/sentry_sdk/transport.py index a9414ae7..2cbba041 100644 --- a/sentry_sdk/transport.py +++ b/sentry_sdk/transport.py @@ -12,6 +12,7 @@ from urllib.request import getproxies import urllib3 import certifi +import sentry_sdk from sentry_sdk.consts import EndpointType from sentry...
getsentry__sentry-python-3307
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "sentry_sdk/scope.py:Scope._apply_breadcrumbs_to_event" ], "edited_modules": [ "sentry_sdk/scope.py:Scope" ] }, "file": "sentry_sdk/scope.py" } ]
getsentry/sentry-python
6f814e602736a89a38bbfd35ed37ab746e6fb5a8
Fix Breadcrumb ordering ### How do you use Sentry? Sentry Saas (sentry.io) ### Version all ### Steps to Reproduce Breadcrumbs live on the Scope. Before the event is sent to Sentry the list of breadcrumbs of multiple Scopes are concatenated list of breadcrumbs that is sent to Sentry. We do not order the final br...
diff --git a/sentry_sdk/scope.py b/sentry_sdk/scope.py index e6ad8625..8473f1bc 100644 --- a/sentry_sdk/scope.py +++ b/sentry_sdk/scope.py @@ -1298,6 +1298,7 @@ class Scope(object): event.setdefault("breadcrumbs", {}).setdefault("values", []).extend( self._breadcrumbs ) + event["br...
getsentry__sentry-python-3337
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "sentry_sdk/envelope.py:PayloadRef.get_bytes" ], "edited_modules": [ "sentry_sdk/envelope.py:PayloadRef" ] }, "file": "sentry_sdk/envelope.py" } ]
getsentry/sentry-python
3ecdf8961943b678a83a156798d25ae807eda59e
Internal error if attachment files are missing ### How do you use Sentry? Sentry Saas (sentry.io) ### Version 2.11.0 ### Steps to Reproduce Attach a file that doesn't exist: ```py with sentry_sdk.configure_scope() as scope: scope.add_attachment(path='this_file_does_not_exist', filename='foo') ``` Then try to c...
diff --git a/sentry_sdk/envelope.py b/sentry_sdk/envelope.py index 44cce524..6bb1eb22 100644 --- a/sentry_sdk/envelope.py +++ b/sentry_sdk/envelope.py @@ -189,9 +189,7 @@ class PayloadRef: self.bytes = f.read() elif self.json is not None: self.bytes = json_dumps(se...
getsentry__sentry-python-3351
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "sentry_sdk/api.py:configure_scope" ], "edited_modules": [ "sentry_sdk/api.py:configure_scope" ] }, "file": "sentry_sdk/api.py" } ]
getsentry/sentry-python
1d17d570d7bb0e2750186a56de2cc757488a815c
Deprecate `sentry_sdk.configure_scope` Calling this function should emit a `DeprecationWarning`. Add a test to verify this behavior.
diff --git a/sentry_sdk/api.py b/sentry_sdk/api.py index 41c48141..d28dbd92 100644 --- a/sentry_sdk/api.py +++ b/sentry_sdk/api.py @@ -1,4 +1,5 @@ import inspect +import warnings from contextlib import contextmanager from sentry_sdk import tracing_utils, Client @@ -185,6 +186,14 @@ def configure_scope( # noqa: F8...
getsentry__sentry-python-3355
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "sentry_sdk/api.py:push_scope" ], "edited_modules": [ "sentry_sdk/api.py:push_scope" ] }, "file": "sentry_sdk/api.py" } ]
getsentry/sentry-python
c8e93af9740f682d9cb154353c7406c66c1da371
Deprecate `sentry_sdk.push_scope` Calling `sentry_sdk.push_scope` should emit a `DeprecationWarning`. Add a test to verify this behavior
diff --git a/sentry_sdk/api.py b/sentry_sdk/api.py index d28dbd92..8476ac1e 100644 --- a/sentry_sdk/api.py +++ b/sentry_sdk/api.py @@ -238,9 +238,19 @@ def push_scope( # noqa: F811 :returns: If no `callback` is provided, a context manager that should be used to pop the scope again. """ + warnings...
getsentry__sentry-python-3438
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "sentry_sdk/client.py:_Client._prepare_event" ], "edited_modules": [ "sentry_sdk/client.py:_Client" ] }, "file": "sentry_sdk/client.py" }, { "changes": { "...
getsentry/sentry-python
275c63efe9959dac68cc6ab3019545d74ea85ea8
Expose custom safe_repr config @sl0thentr0py Thanks, yes, I think we prefer option 2 - the option for a custom `repr` function to be tried in `safe_repr` (my current understanding of how everything works is that this will both solve our needs and reduce the likelihood of this bug to creeping back in). Thanks for giv...
diff --git a/sentry_sdk/client.py b/sentry_sdk/client.py index d22dd1c0..8a3cd715 100644 --- a/sentry_sdk/client.py +++ b/sentry_sdk/client.py @@ -531,6 +531,7 @@ class _Client(BaseClient): cast("Dict[str, Any]", event), max_request_body_size=self.options.get("max_request_body_...
getsentry__sentry-python-3461
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "sentry_sdk/utils.py:format_timestamp" ], "edited_modules": [ "sentry_sdk/utils.py:format_timestamp" ] }, "file": "sentry_sdk/utils.py" } ]
getsentry/sentry-python
ad390863ed347b8395d4f0b4658acffc0e4b105b
Fix `datetime` serialization for non-UTC timestamps ### How do you use Sentry? Sentry Saas (sentry.io) ### Version 2.13.0 ### Steps to Reproduce The events at https://xyz.sentry.io/issues/123/events/abc/ lose datetimes' timezone. ### Expected Result The following code with `.isoformat()` ``` from zoneinfo import...
diff --git a/sentry_sdk/utils.py b/sentry_sdk/utils.py index 664b96f9..9f49b947 100644 --- a/sentry_sdk/utils.py +++ b/sentry_sdk/utils.py @@ -11,7 +11,7 @@ import sys import threading import time from collections import namedtuple -from datetime import datetime +from datetime import datetime, timezone from decimal...
getsentry__sentry-python-3463
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "sentry_sdk/client.py:_get_options", "sentry_sdk/client.py:_Client._prepare_event" ], "edited_modules": [ "sentry_sdk/client.py:_get_options", "sentry_sdk/client.py:_C...
getsentry/sentry-python
c97ea700789f8259cafa5dab4751d11236ca7a6e
Run EventScrubber with send_default_pii=True ### Problem Statement In your data scrubber docs it says, > You can use the event_scrubber configuration parameter to simplify removing sensitive data from your event payload. > If send_default_pii is set to False, the default scrubber implementation will run automa...
diff --git a/sentry_sdk/client.py b/sentry_sdk/client.py index b224cd1f..f8bc7677 100644 --- a/sentry_sdk/client.py +++ b/sentry_sdk/client.py @@ -125,7 +125,7 @@ def _get_options(*args, **kwargs): rv["traces_sample_rate"] = 1.0 if rv["event_scrubber"] is None: - rv["event_scrubber"] = EventScrub...
getsentry__sentry-python-3524
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "sentry_sdk/scope.py:Scope.start_span" ], "edited_modules": [ "sentry_sdk/scope.py:Scope" ] }, "file": "sentry_sdk/scope.py" }, { "changes": { "added_entit...
getsentry/sentry-python
a58154259468b0d2f944a4a01eb2bf96a543696c
Add `name` as alias to `description` to `start_span()`. To align our API more with the OpenTelementry API we will add a `name` parameter to the `start_span()` function. Currently `start_span()` has a `description` parameter. The old parameter will still work and the new parameter is an alias to the old one. If users us...
diff --git a/sentry_sdk/scope.py b/sentry_sdk/scope.py index b6a23253..adae8dc8 100644 --- a/sentry_sdk/scope.py +++ b/sentry_sdk/scope.py @@ -1,5 +1,6 @@ import os import sys +import warnings from copy import copy from collections import deque from contextlib import contextmanager @@ -1067,6 +1068,13 @@ class Sco...
getsentry__sentry-python-37
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": null, "edited_modules": null }, "file": "sentry_sdk/consts.py" }, { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "sentry_sdk/hub....
getsentry/sentry-python
33115bf5c9c835e5488aa57baf34e2b8ee7585fe
Add debug mode and do not use _internal_exceptions on expected fails A debug mode should be added that logs out when events are dropped and internal exceptions are ignored.
diff --git a/sentry_sdk/consts.py b/sentry_sdk/consts.py index 475cd478..6c9ae117 100644 --- a/sentry_sdk/consts.py +++ b/sentry_sdk/consts.py @@ -24,6 +24,7 @@ DEFAULT_OPTIONS = { "ignore_errors": [], "request_bodies": "medium", "before_send": None, + "debug": False, } SDK_INFO = {"name": "sentry...
getsentry__sentry-python-3729
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "sentry_sdk/_init_implementation.py:_InitGuard.__enter__", "sentry_sdk/_init_implementation.py:_InitGuard.__exit__" ], "edited_modules": [ "sentry_sdk/_init_implementation.py:...
getsentry/sentry-python
200d0cdde8eed2caa89b91db8b17baabe983d2de
Deprecate `init` context manager See below: > `init` is generally one per process anyway. In case people want DSN isolation, multiple clients is the way to go now. So I really don't see the use case for this. > Let's deprecate and remove. _Originally posted by @sl0thentr0py in https://github.com/getsentry/sentr...
diff --git a/sentry_sdk/_init_implementation.py b/sentry_sdk/_init_implementation.py index 256a69ee..eb02b3d1 100644 --- a/sentry_sdk/_init_implementation.py +++ b/sentry_sdk/_init_implementation.py @@ -1,3 +1,5 @@ +import warnings + from typing import TYPE_CHECKING import sentry_sdk @@ -9,16 +11,35 @@ if TYPE_CHEC...
getsentry__sentry-python-3798
[ { "changes": { "added_entities": [ "sentry_sdk/integrations/wsgi.py:_finish_long_running_transaction" ], "added_modules": [ "sentry_sdk/integrations/wsgi.py:_finish_long_running_transaction" ], "edited_entities": [ "sentry_sdk/integrations/wsgi.py:SentryWsgi...
getsentry/sentry-python
a7c2d704a90b374bc3c6a69365922614710d95f7
Django StreamingHttpResponse View not working as expected ### How do you use Sentry? Sentry Saas (sentry.io) ### Version 2.18.0 ### Steps to Reproduce 1. Have a view like ``` class StreamingView(APIView): def post(self, request, *args, **kwargs): span = sentry_sdk.start_span(name=f"Log: {record.msg}...
diff --git a/sentry_sdk/integrations/wsgi.py b/sentry_sdk/integrations/wsgi.py index 50deae10..751735f4 100644 --- a/sentry_sdk/integrations/wsgi.py +++ b/sentry_sdk/integrations/wsgi.py @@ -1,19 +1,19 @@ import sys from functools import partial +from threading import Timer import sentry_sdk from sentry_sdk._werk...
getsentry__sentry-python-3883
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "sentry_sdk/_lru_cache.py:LRUCache.__init__", "sentry_sdk/_lru_cache.py:LRUCache.__copy__", "sentry_sdk/_lru_cache.py:LRUCache.set", "sentry_sdk/_lru_cache.py:LRUCache.get", ...
getsentry/sentry-python
8ced6609e6fcc95855f43cf9fc1d94b59836b57f
LRUCache.__copy__ is unsound ### How do you use Sentry? Sentry Saas (sentry.io) ### Version latest git revision ### Steps to Reproduce unfortunately I haven't completely narrowed down a "minimal" reproduction but I originally found this from reading the implementation and tracing the output -- attached is a script...
diff --git a/sentry_sdk/_lru_cache.py b/sentry_sdk/_lru_cache.py index 825c7735..09eae27d 100644 --- a/sentry_sdk/_lru_cache.py +++ b/sentry_sdk/_lru_cache.py @@ -1,181 +1,56 @@ -""" -A fork of Python 3.6's stdlib lru_cache (found in Python's 'cpython/Lib/functools.py') -adapted into a data structure for single threade...
getsentry__sentry-python-3935
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": null, "edited_modules": null }, "file": "scripts/split_tox_gh_actions/split_tox_gh_actions.py" }, { "changes": { "added_entities": null, "added_modules": null, "edited_entit...
getsentry/sentry-python
8a70b76f69789585efbd39fcef087005b765a346
Deprecate `enable_tracing` option ### Problem Statement We are cleaning up our options to control tracing. The option `enable_tracing` should be deprecated. See also: https://github.com/getsentry/team-sdks/issues/84 ### Solution Brainstorm Add a deprecation warning telling people that the option will be removed in ...
diff --git a/.craft.yml b/.craft.yml index 70875d54..665f0683 100644 --- a/.craft.yml +++ b/.craft.yml @@ -25,6 +25,8 @@ targets: - python3.9 - python3.10 - python3.11 + - python3.12 + - python3.13 license: MIT - name: sentry-pypi internalPypiRepo: getsent...
getsentry__sentry-python-3942
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "sentry_sdk/utils.py:qualname_from_function" ], "edited_modules": [ "sentry_sdk/utils.py:qualname_from_function" ] }, "file": "sentry_sdk/utils.py" } ]
getsentry/sentry-python
3f57299d1addff54a2d218c069e466a371edc8c4
Decorator @sentry_sdk.trace is not compatible with Click (edge case) ### Environment SaaS (https://sentry.io/) ### Steps to Reproduce Given custom command loader: ```python class Loader(RichGroup): COMMANDS_FOLDER = os.path.join(os.path.dirname(__file__), "commands") def list_commands(self, ctx) -> list[s...
diff --git a/sentry_sdk/utils.py b/sentry_sdk/utils.py index 7a8917fe..0fead483 100644 --- a/sentry_sdk/utils.py +++ b/sentry_sdk/utils.py @@ -1501,7 +1501,7 @@ def qualname_from_function(func): # Python 3: methods, functions, classes if func_qualname is not None: - if hasattr(func, "__module__"): + ...
getsentry__sentry-python-4094
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "sentry_sdk/integrations/opentelemetry/span_processor.py:SentrySpanProcessor._span_to_json" ], "edited_modules": [ "sentry_sdk/integrations/opentelemetry/span_processor.py:SentrySpanP...
getsentry/sentry-python
eb93c1f754a5070f262b5f6f5beb82753dab1d4b
Port span status exit code logic to potel
diff --git a/sentry_sdk/integrations/opentelemetry/span_processor.py b/sentry_sdk/integrations/opentelemetry/span_processor.py index a3cf545d..bf3ff62d 100644 --- a/sentry_sdk/integrations/opentelemetry/span_processor.py +++ b/sentry_sdk/integrations/opentelemetry/span_processor.py @@ -261,9 +261,6 @@ class SentrySpanP...
getsentry__sentry-python-4098
[ { "changes": { "added_entities": [ "sentry_sdk/integrations/opentelemetry/span_processor.py:SentrySpanProcessor._stop_profile" ], "added_modules": null, "edited_entities": [ "sentry_sdk/integrations/opentelemetry/span_processor.py:SentrySpanProcessor.on_end", "sen...
getsentry/sentry-python
d5a09bcd18d1dde0a5e6cfeeabb6779174bbd4d4
Port continuous profiler changes to POTEL See - https://github.com/getsentry/sentry-python/commit/2724d65aa6739e391bfc19e689b0c7f0f403b4aa - https://github.com/getsentry/sentry-python/commit/797e82ffb808cb0962c212b39b46204194aabdd9
diff --git a/sentry_sdk/integrations/opentelemetry/span_processor.py b/sentry_sdk/integrations/opentelemetry/span_processor.py index c7b3fa30..d82d6a03 100644 --- a/sentry_sdk/integrations/opentelemetry/span_processor.py +++ b/sentry_sdk/integrations/opentelemetry/span_processor.py @@ -18,6 +18,7 @@ from sentry_sdk.uti...
getsentry__sentry-python-4179
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "sentry_sdk/tracing_utils.py:_generate_sample_rand" ], "edited_modules": [ "sentry_sdk/tracing_utils.py:_generate_sample_rand" ] }, "file": "sentry_sdk/tracing_utils.py"...
getsentry/sentry-python
5715734eac1c5fb4b6ec61ef459080c74fa777b5
Sentry crashing - python 3.11, AWS Lambda - x86_64 ### How do you use Sentry? Sentry Saas (sentry.io) ### Version 2.23.1 ### Steps to Reproduce Invoke a lambda more than once. The first time works. All subsequent invocations fail. ### Expected Result No crash. :) ### Actual Result Crashes with the following s...
diff --git a/sentry_sdk/tracing_utils.py b/sentry_sdk/tracing_utils.py index 6aa4e488..ba566957 100644 --- a/sentry_sdk/tracing_utils.py +++ b/sentry_sdk/tracing_utils.py @@ -5,7 +5,7 @@ import re import sys from collections.abc import Mapping from datetime import timedelta -from decimal import ROUND_DOWN, Decimal +...
getsentry__sentry-python-4231
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "sentry_sdk/tracing.py:Transaction._set_initial_sampling_decision" ], "edited_modules": [ "sentry_sdk/tracing.py:Transaction" ] }, "file": "sentry_sdk/tracing.py" }, ...
getsentry/sentry-python
2c3776c582a23b6936c76ef53008bf63f861b6fd
Custom settings for decimal context broke the app ### How do you use Sentry? Sentry Saas (sentry.io) ### Version 2.24.0 ### Steps to Reproduce Hi! I have an issue with decimal. I defined custom rules for decimal type like this: ``` def decimal_setup() -> None: BasicContext.traps[Inexact] = True BasicContex...
diff --git a/sentry_sdk/tracing.py b/sentry_sdk/tracing.py index ae0b9025..ca249fe8 100644 --- a/sentry_sdk/tracing.py +++ b/sentry_sdk/tracing.py @@ -1,3 +1,4 @@ +from decimal import Decimal import uuid import warnings from datetime import datetime, timedelta, timezone @@ -1198,10 +1199,8 @@ class Transaction(Span)...
getsentry__sentry-python-70
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "sentry_sdk/hub.py:Hub.add_breadcrumb" ], "edited_modules": [ "sentry_sdk/hub.py:Hub" ] }, "file": "sentry_sdk/hub.py" } ]
getsentry/sentry-python
dad6c6efd8acb6cd8925a89c91b4363cbb268eb9
Breadcrumbs type error We're having an issue with v0.3.2 where `popleft` is called on a list type: ``` File "/srv/frontend/project/lib/python3.5/site-packages/sentry_sdk/hub.py" in add_breadcrumb 209. scope._breadcrumbs.popleft() Exception Type: AttributeError at / Exception Value: 'list' object ...
diff --git a/sentry_sdk/hub.py b/sentry_sdk/hub.py index b161a4d4..a7056c66 100644 --- a/sentry_sdk/hub.py +++ b/sentry_sdk/hub.py @@ -205,8 +205,8 @@ class Hub(with_metaclass(HubMeta)): scope._breadcrumbs.append(crumb) else: logger.info("before breadcrumb dropped breadcrumb (%s)", or...
gibsramen__evident-23
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": null, "edited_modules": null }, "file": "evident/__init__.py" }, { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "evident/_excepti...
gibsramen/evident
d1a3fe636764f47278d4cbade05534a2b57d1b87
Fix NaN issue in OnlyOneCategory exception https://github.com/gibsramen/evident/blob/d1a3fe636764f47278d4cbade05534a2b57d1b87/evident/_exceptions.py#L61 If NaN exists, this line will fail because the number of "unique" levels > 1
diff --git a/evident/__init__.py b/evident/__init__.py index 10d1afa..162a668 100644 --- a/evident/__init__.py +++ b/evident/__init__.py @@ -1,6 +1,6 @@ from .diversity_handler import AlphaDiversityHandler, BetaDiversityHandler -__version__ = "0.1.1" +__version__ = "0.1.2dev" __all__ = ["AlphaDiversityHandler",...
gitpython-developers__GitPython-1102
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "git/diff.py:Diffable.diff", "git/diff.py:Diff._index_from_raw_format" ], "edited_modules": [ "git/diff.py:Diffable", "git/diff.py:Diff" ] }, "file": "gi...
gitpython-developers/GitPython
696e4edd6c6d20d13e53a93759e63c675532af05
Diff::a_path is wrong for unicode characters The problem is slightly mentioned in #865. Let's consider the following example: ```shell git init foo cd ./foo echo a > a git add a git commit -a -m 'Add a' echo "foo" > špatně.txt git add špatně.txt git commit -a -m Add ``` ```python3 In [4]: Repo('.').com...
diff --git a/git/diff.py b/git/diff.py index 0fc30b9e..a9dc4b57 100644 --- a/git/diff.py +++ b/git/diff.py @@ -108,6 +108,7 @@ class Diffable(object): args.append("-p") else: args.append("--raw") + args.append("-z") # in any way, assure we don't see colored outpu...
gitpython-developers__GitPython-1124
[ { "changes": { "added_entities": [ "git/objects/commit.py:Commit._calculate_sha_", "git/objects/commit.py:Commit.replace" ], "added_modules": null, "edited_entities": [ "git/objects/commit.py:Commit.create_from_tree" ], "edited_modules": [ "git...
gitpython-developers/GitPython
e1cd58ba862cce9cd9293933acd70b1a12feb5a8
RFE: Give Commit objects a replace method that returns new Commit with modified attributes The `datetime` objects produced by Python's `datetime` module are immutable, much like `Commit` objects. The `datetime` module provides a convenient `replace` function that returns a new object based on an old with one or more at...
diff --git a/git/objects/commit.py b/git/objects/commit.py index 302798cb..45e6d772 100644 --- a/git/objects/commit.py +++ b/git/objects/commit.py @@ -136,6 +136,41 @@ class Commit(base.Object, Iterable, Diffable, Traversable, Serializable): def _get_intermediate_items(cls, commit): return commit.parents ...
gitpython-developers__GitPython-1224
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "git/repo/base.py:Repo._clone" ], "edited_modules": [ "git/repo/base.py:Repo" ] }, "file": "git/repo/base.py" } ]
gitpython-developers/GitPython
3211ae9dbfc6aadd2dd1d7d0f9f3af37ead19383
GitCommand missing stderr With GitPython 3.1.14 `GitCommandError`, for failed clones would pass on the captured stderr output into its `stderr` attribute. With 3.1.15 this contains the empty string instead. This was caught by this unit test: https://github.com/tomtom-international/hopic/blob/9a35520388f8109ccff6a894...
diff --git a/git/repo/base.py b/git/repo/base.py index a28c9d28..b1d0cdbc 100644 --- a/git/repo/base.py +++ b/git/repo/base.py @@ -988,8 +988,6 @@ class Repo(object): def _clone(cls, git: 'Git', url: PathLike, path: PathLike, odb_default_type: Type[GitCmdObjectDB], progress: Optional[Callable], mul...
gitpython-developers__GitPython-1264
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": null, "edited_modules": [ "git/refs/tag.py:TagReference" ] }, "file": "git/refs/tag.py" }, { "changes": { "added_entities": [ "git/repo/base.py:Repo._to_full_tag_p...
gitpython-developers/GitPython
bb02e1229d336decc7bae970483ff727ed7339db
repo.tag() only accepts 'ref/tags/tagname' instead of just 'tagname' The param comment for `tag()` in `base.py` mentions `0.1.5` and `tags/0.1.5` as valid inputs, however the call to `TagReference` calls the inherited constructor (`Reference` in reference.py) with the default `check_path=True`, which returns a `ValueEr...
diff --git a/AUTHORS b/AUTHORS index 7b21b2b2..606796d9 100644 --- a/AUTHORS +++ b/AUTHORS @@ -43,4 +43,5 @@ Contributors are: -Liam Beguin <liambeguin _at_ gmail.com> -Ram Rachum <ram _at_ rachum.com> -Alba Mendez <me _at_ alba.sh> +-Robert Westman <robert _at_ byteflux.io> Portions derived from other open source ...
gitpython-developers__GitPython-1314
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "git/util.py:Actor._main_actor" ], "edited_modules": [ "git/util.py:Actor" ] }, "file": "git/util.py" } ]
gitpython-developers/GitPython
8e226ed8865f0ad78cec6b83f0b5436ce11017bf
Windows : ImportError: No module named pwd on util.py When i try to build gitpython on Windows Server i have this error message. ```powershell File "C:\project\.tox\back\lib\site-packages\git\objects\commit.py", line 318, in create_from_tree committer = committer or Actor.committer(cr) File "C:\project\.tox...
diff --git a/git/util.py b/git/util.py index 4f82219e..b81332ea 100644 --- a/git/util.py +++ b/git/util.py @@ -705,7 +705,11 @@ class Actor(object): setattr(actor, attr, val) except KeyError: if config_reader is not None: - setattr(actor, attr, config_re...
gitpython-developers__GitPython-1340
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "git/cmd.py:handle_process_output", "git/cmd.py:Git.execute" ], "edited_modules": [ "git/cmd.py:handle_process_output", "git/cmd.py:Git" ] }, "file": "gi...
gitpython-developers/GitPython
146202cdcbed8239651ccc62d36a8e5af3ceff8c
default thread timeout too short for CI Since this morning [our CI](https://github.com/openpathsampling/openpathsampling/runs/3563720388?) started failing with: ``` Run python devtools/autorelease_check.py Traceback (most recent call last): File "devtools/autorelease_check.py", line 24, in <module> repo_pa...
diff --git a/git/cmd.py b/git/cmd.py index 642ef9ed..8fb10742 100644 --- a/git/cmd.py +++ b/git/cmd.py @@ -79,7 +79,7 @@ def handle_process_output(process: 'Git.AutoInterrupt' | Popen, finalizer: Union[None, Callable[[Union[subprocess.Popen, 'Git.Au...
gitpython-developers__GitPython-1437
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "git/exc.py:CommandError.__init__" ], "edited_modules": [ "git/exc.py:CommandError" ] }, "file": "git/exc.py" }, { "changes": { "added_entities": null, ...
gitpython-developers/GitPython
d5cee4a467a0ab543c0a118cc763ad3a54b8fc69
Github token is leaked when used as a part of remote URL Github [allows](https://github.blog/2012-09-21-easier-builds-and-deployments-using-git-over-https-and-oauth/) usage of personal access tokens with remote URLs in the format: ``` https://<token>@github.com/owner/repo.git ``` or ``` https://<token>:x-oauth-...
diff --git a/git/exc.py b/git/exc.py index e8ff784c..045ea9d2 100644 --- a/git/exc.py +++ b/git/exc.py @@ -8,6 +8,7 @@ from gitdb.exc import BadName # NOQA @UnusedWildImport skipcq: PYL-W0401, PYL-W0614 from gitdb.exc import * # NOQA @UnusedWildImport skipcq: PYL-W0401, PYL-W0614 from git.compat import safe_dec...
gitpython-developers__GitPython-1440
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "git/index/base.py:IndexFile._preprocess_add_items" ], "edited_modules": [ "git/index/base.py:IndexFile" ] }, "file": "git/index/base.py" } ]
gitpython-developers/GitPython
38e9a18b976b2b7e3b3cd0fcd5b037573823d7c2
repo.index.add() first argument type accepts os.PathLike but code raises TypeError In the docs and in the code types, the first argument for `repo.index.add()` is `Sequence[Union[str, os.PathLike, git.objects.blob.Blob, git.index.typ.BaseIndexEntry, Submodule]]`. However, actually trying to submit a list of Paths to t...
diff --git a/git/index/base.py b/git/index/base.py index edc64875..1c56a219 100644 --- a/git/index/base.py +++ b/git/index/base.py @@ -617,11 +617,11 @@ class IndexFile(LazyMixin, git_diff.Diffable, Serializable): paths = [] entries = [] # if it is a string put in list - if isinstance(...
gitpython-developers__GitPython-1547
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "git/objects/util.py:utctz_to_altz", "git/objects/util.py:altz_to_utctz_str" ], "edited_modules": [ "git/objects/util.py:utctz_to_altz", "git/objects/util.py:altz_to_u...
gitpython-developers/GitPython
cc92d5126b2fc80f7cc6866fc8f99b3ffb0189ae
Wrong timezone on commit This happens when committing via call to repo.index.commit(message). The timezone value is off by 20 minutes. When I issue 'git log', the following shows: <pre> commit 8767403c5e175b5bf69b4ba1d23e8462c722867e Author: Amol <removed@email> Date: Sat May 20 18:50:10 2017 +0530 'Solved...
diff --git a/git/objects/util.py b/git/objects/util.py index f405d628..af279154 100644 --- a/git/objects/util.py +++ b/git/objects/util.py @@ -137,22 +137,25 @@ def get_object_type_by_name( def utctz_to_altz(utctz: str) -> int: - """we convert utctz to the timezone in seconds, it is the format time.altzone - ...
gitpython-developers__GitPython-1618
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "git/repo/base.py:Repo.config_writer" ], "edited_modules": [ "git/repo/base.py:Repo" ] }, "file": "git/repo/base.py" } ]
gitpython-developers/GitPython
b543c7271717895bef840361c79a37fe6794da9d
set_tracking_branch fails quietly when .git/config contains an include I have git-branchless setup in this repository and for the longest time I was confounded, why `set_tracking_branch` did not work (anymore). Turns out, git-branchless adds an `[include]` section to the `.git/config` file and this causes GitPython to...
diff --git a/git/repo/base.py b/git/repo/base.py index 723613c6..ab202654 100644 --- a/git/repo/base.py +++ b/git/repo/base.py @@ -600,7 +600,7 @@ class Repo(object): system = system wide configuration file global = user level configuration file repository = configuration file for...
gitpython-developers__GitPython-1636
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "git/cmd.py:Git.execute" ], "edited_modules": [ "git/cmd.py:Git" ] }, "file": "git/cmd.py" } ]
gitpython-developers/GitPython
e19abe75bbd7d766d7f06171c6524431e4653545
CVE-2023-40590: Untrusted search path on Windows systems leading to arbitrary code execution This appeared in the CVE additional information here https://github.com/gitpython-developers/GitPython/security/advisories/GHSA-wfm5-v35h-vwf4. I found it reported already. I am reporting it here just in case.
diff --git a/git/cmd.py b/git/cmd.py index 3d170fac..3665eb02 100644 --- a/git/cmd.py +++ b/git/cmd.py @@ -5,7 +5,7 @@ # the BSD License: http://www.opensource.org/licenses/bsd-license.php from __future__ import annotations import re -from contextlib import contextmanager +import contextlib import io import loggin...
gitpython-developers__GitPython-1687
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "git/cmd.py:Git.execute" ], "edited_modules": [ "git/cmd.py:Git" ] }, "file": "git/cmd.py" } ]
gitpython-developers/GitPython
f9a3b83ddcb458d0c1f4174def5b4cb1920ee991
Git.execute treats shell=False the same as shell=None ### Expected behavior The *intention* in [`git.cmd.Git.execute`](https://github.com/gitpython-developers/GitPython/blob/7d4f6c68c657586f27125f25b15f02c5a3d7f35c/git/cmd.py#L827) is that when a `bool` value, `True` or `False`, is passed for `shell`, that value det...
diff --git a/git/cmd.py b/git/cmd.py index 9921dd6c..53b8b905 100644 --- a/git/cmd.py +++ b/git/cmd.py @@ -974,6 +974,8 @@ class Git(LazyMixin): istream_ok = "None" if istream: istream_ok = "<valid stream>" + if shell is None: + shell = self.USE_SHELL log.debug(...
gitpython-developers__GitPython-1780
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "git/objects/submodule/base.py:Submodule.iter_items" ], "edited_modules": [ "git/objects/submodule/base.py:Submodule" ] }, "file": "git/objects/submodule/base.py" }, ...
gitpython-developers/GitPython
d986a59467e586afb815d71845f29b605b756cdf
Unclear why iter_items should be favored over list_items In [`git.util.IterableObj`](https://github.com/gitpython-developers/GitPython/blob/4023f28660e3a78ca9a83f03ca10b39780d32b0e/git/util.py#L1237-L1271), the [`list_items`](https://github.com/gitpython-developers/GitPython/blob/4023f28660e3a78ca9a83f03ca10b39780d32b0...
diff --git a/git/objects/submodule/base.py b/git/objects/submodule/base.py index 651d9535..49dfedf9 100644 --- a/git/objects/submodule/base.py +++ b/git/objects/submodule/base.py @@ -1401,7 +1401,7 @@ class Submodule(IndexObject, TraversableIterableObj): pc = repo.commit(parent_commit) # Parent commit ins...
gitpython-developers__GitPython-1812
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "git/cmd.py:Git.refresh" ], "edited_modules": [ "git/cmd.py:Git" ] }, "file": "git/cmd.py" }, { "changes": { "added_entities": null, "added_modules":...
gitpython-developers/GitPython
307f1987596a99fb7b7192d8a5308a0df736ca7b
Git.refresh GitCommandNotFound indicates "git" even for other commands ### The bug Even when the Git command that `Git.refresh` runs and checks is not `git`, its command line is reported as `git` in the `GitCommandNotFound` exception, when such an exception is raised: https://github.com/gitpython-developers/GitPy...
diff --git a/git/cmd.py b/git/cmd.py index 24ba71b5..b3bd48b8 100644 --- a/git/cmd.py +++ b/git/cmd.py @@ -478,12 +478,12 @@ class Git(LazyMixin): # We get here if this was the initial refresh and the refresh mode was # not error. Go ahead and set the GIT_PYTHON_GIT_EXECUTABLE such tha...
gitpython-developers__GitPython-1815
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "git/cmd.py:Git.refresh" ], "edited_modules": [ "git/cmd.py:Git" ] }, "file": "git/cmd.py" } ]
gitpython-developers/GitPython
f4ce70974d8ca0e4d2699b4d5f1016880815ae39
Git.refresh warns to stdout and does not log Warning messages are most often written to standard error. Furthermore, warnings from GitPython, when they are displayed, are in most cases displayed that way unless the caller arranges otherwise, because they are displayed by calling loggers' `warning` methods or, for `Depr...
diff --git a/git/cmd.py b/git/cmd.py index a75d822f..22b5ea99 100644 --- a/git/cmd.py +++ b/git/cmd.py @@ -409,15 +409,15 @@ class Git(LazyMixin): # expect GIT_PYTHON_REFRESH to either be unset or be one of the # following values: # - # 0|q|quiet|s|sil...
gitpython-developers__GitPython-1832
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "git/diff.py:Diffable.diff" ], "edited_modules": [ "git/diff.py:Diffable" ] }, "file": "git/diff.py" } ]
gitpython-developers/GitPython
afa575454f85b34800460881cc9c3cd7fe78c8e3
If `diff.external` is set, diffing via API fails silently as external tool isn't understood GitPython version: 3.1.42. ```python from git import Repo repo = Repo(".") print(repo.index.diff("HEAD")) print(repo.index.diff("HEAD", create_patch=True)) print(repo.index.diff(None)) print(repo.index.diff(None, cr...
diff --git a/git/diff.py b/git/diff.py index aba1a108..6d4474d3 100644 --- a/git/diff.py +++ b/git/diff.py @@ -155,6 +155,7 @@ class Diffable: if create_patch: args.append("-p") + args.append("--no-ext-diff") else: args.append("--raw") args.append("-...
gitpython-developers__GitPython-1838
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "git/cmd.py:Git.refresh", "git/cmd.py:Git.__init__", "git/cmd.py:Git.__getattr__", "git/cmd.py:Git._set_cache_", "git/cmd.py:Git.version_info" ], "edited_modul...
gitpython-developers/GitPython
afa575454f85b34800460881cc9c3cd7fe78c8e3
Refreshing doesn't invalidate cached version_info The `version_info` property of `Git` instances is cached per-instance, while the `git.refresh` function and `Git.refresh` static method modify global state. When `version_info` has been read on a `Git` instance, refreshing affects the behavior of that instance, but does...
diff --git a/git/cmd.py b/git/cmd.py index f58e6df5..bfc88522 100644 --- a/git/cmd.py +++ b/git/cmd.py @@ -8,6 +8,7 @@ from __future__ import annotations import re import contextlib import io +import itertools import logging import os import signal @@ -25,7 +26,6 @@ from git.exc import ( UnsafeProtocolError,...
glm-tools__pyglmnet-278
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "pyglmnet/pyglmnet.py:GLM._cdfast", "pyglmnet/pyglmnet.py:GLM.fit" ], "edited_modules": [ "pyglmnet/pyglmnet.py:GLM" ] }, "file": "pyglmnet/pyglmnet.py" } ]
glm-tools/pyglmnet
c962c840c4669ae69e623a2595eba40ae50e460d
failing comparison of elastic net with scikit-learn I tried to compare pyglmnet.GLM with ElasticNet from scikit-learn and could not get it work. Code to reproduce: ```python import numpy as np from sklearn.datasets.samples_generator import make_regression from sklearn.linear_model import ElasticNet from pyglmnet...
diff --git a/doc/whats_new.rst b/doc/whats_new.rst index fe47a2d..565e172 100644 --- a/doc/whats_new.rst +++ b/doc/whats_new.rst @@ -23,6 +23,7 @@ Changelog BUG ~~~ + - Fixed z cache inconsistency in cdfast when alpha and reg_lambda are nonzero by `Peter Foley`_. - Fixed incorrect usage of the random_state...
glm-tools__pyglmnet-321
[ { "changes": { "added_entities": [ "pyglmnet/pyglmnet.py:_z" ], "added_modules": [ "pyglmnet/pyglmnet.py:_z" ], "edited_entities": [ "pyglmnet/pyglmnet.py:_lmb", "pyglmnet/pyglmnet.py:_mu", "pyglmnet/pyglmnet.py:_loss", "pyglmnet/pygl...
glm-tools/pyglmnet
83b3883167caf96116850b5499ceba50d2224818
simulate_glm returns 2D array but fit expects 1D array
diff --git a/README.rst b/README.rst index 1e4da9f..a6b263c 100644 --- a/README.rst +++ b/README.rst @@ -132,15 +132,15 @@ Here is an example on how to use the ``GLM`` estimator. distr = 'poisson' # sample a sparse model - beta0 = np.random.normal(0.0, 1.0, 1) - beta = sps.rand(n_features, 1, 0.1) - bet...
glm-tools__pyglmnet-322
[ { "changes": { "added_entities": [ "pyglmnet/pyglmnet.py:_z" ], "added_modules": [ "pyglmnet/pyglmnet.py:_z" ], "edited_entities": [ "pyglmnet/pyglmnet.py:_lmb", "pyglmnet/pyglmnet.py:_mu", "pyglmnet/pyglmnet.py:_loss", "pyglmnet/pygl...
glm-tools/pyglmnet
83b3883167caf96116850b5499ceba50d2224818
Make bleeding edge version installation easier for non developers According to @jasmainak 's suggestion; provide something like this and modify `doc/install.rst`: ``` $ pip install https://api.github.com/repos/glm-tools/pyglmnet/zipball/master ```
diff --git a/README.rst b/README.rst index 1e4da9f..67e2beb 100644 --- a/README.rst +++ b/README.rst @@ -108,13 +108,7 @@ Clone the repository. .. code:: bash - $ git clone http://github.com/glm-tools/pyglmnet - -Install ``pyglmnet`` using ``setup.py`` as follows - -.. code:: bash - - $ python setup.py devel...
globality-corp__flake8-logging-format-62
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "logging_format/visitor.py:LoggingVisitor.detect_logging_level" ], "edited_modules": [ "logging_format/visitor.py:LoggingVisitor" ] }, "file": "logging_format/visitor.py...
globality-corp/flake8-logging-format
8074ca77b0cc9f383b4f8ad37a2dbad9b49b8f63
False positive using argparse's ArgumentParser.error() metho Code like this using the error method of argparse's ArgumentParser class will trigger “G004 Logging statement uses f-string”: ```python if not args.target_directory.is_dir(): parser.error(f"Target directory {args.target_directory} does not ...
diff --git a/logging_format/visitor.py b/logging_format/visitor.py index 4f5a867..9bb2ce8 100644 --- a/logging_format/visitor.py +++ b/logging_format/visitor.py @@ -206,7 +206,7 @@ class LoggingVisitor(NodeVisitor): """ try: - if self.get_id_attr(node.func.value) == "warnings": + ...
globocom__m3u8-105
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "m3u8/model.py:M3U8._initialize_attributes" ], "edited_modules": [ "m3u8/model.py:M3U8" ] }, "file": "m3u8/model.py" }, { "changes": { "added_entities": nu...
globocom/m3u8
e58a2411b7df376adb922cf56bc411d55e371e77
Error parsing line #EXT-X-MAP:URI="main.mp4",BYTERANGE="812@0" Apple 'Advanced stream (HEVC/H.264)' reference has #EXT-X-MAP:URI="main.mp4",BYTERANGE="812@0" attribute. This attribute parses as segment_map_uri with incorrect value 'main.mp4",BYTERANGE="812@0'. But should be parsed as separate 'uri' and 'byterange'. ...
diff --git a/m3u8/model.py b/m3u8/model.py index 0b13349..5ca29d5 100644 --- a/m3u8/model.py +++ b/m3u8/model.py @@ -176,7 +176,7 @@ class M3U8(object): uri=ifr_pl['uri'], iframe_stream_info=ifr_pl['iframe_stream_info']) ...
globocom__m3u8-125
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "m3u8/parser.py:_parse_stream_inf" ], "edited_modules": [ "m3u8/parser.py:_parse_stream_inf" ] }, "file": "m3u8/parser.py" } ]
globocom/m3u8
6a97b296fabfd32cd2731f4ec94cd014ee272d25
stream_info.closed_captions returns "cc" instead of cc stream_info.closed_captions returns "cc" instead of cc without quotation marks ``` #EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=768647,CODECS="avc1.4d001f,mp4a.40.2",RESOLUTION=480x270,CLOSED-CAPTIONS="cc",SUBTITLES="sub",AUDIO="aud" http://10.129.6.151:8080/dump/...
diff --git a/m3u8/parser.py b/m3u8/parser.py index cc9a76a..9b2a44e 100644 --- a/m3u8/parser.py +++ b/m3u8/parser.py @@ -237,7 +237,7 @@ def _parse_attribute_list(prefix, line, atribute_parser): def _parse_stream_inf(line, data, state): data['is_variant'] = True data['media_sequence'] = None - atribute_pa...
globocom__m3u8-149
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "m3u8/model.py:Playlist.__init__", "m3u8/model.py:Playlist.__str__", "m3u8/model.py:IFramePlaylist.__init__" ], "edited_modules": [ "m3u8/model.py:Playlist", "...
globocom/m3u8
a84b2ac0bd7aec5acc5cf06a6db9746851863915
Add support for FRAME-RATE tag Tag `FRAME-RATE` is ignored when parsing and dumping a master playlist. For example when [master-with-stream-inf-1.m3u8](https://github.com/grafov/m3u8/blob/master/sample-playlists/master-with-stream-inf-1.m3u8), which contains `FRAME-RATE` tag, is loaded: ``` m3u8_obj = m3u8.load('m...
diff --git a/m3u8/model.py b/m3u8/model.py index 1e12148..fce4fbf 100644 --- a/m3u8/model.py +++ b/m3u8/model.py @@ -510,7 +510,8 @@ class Playlist(BasePathMixin): average_bandwidth=stream_info.get('average_bandwidth'), program_id=stream_info.get('program_id'), resolution=resoluti...
globocom__m3u8-194
[ { "changes": { "added_entities": [ "m3u8/model.py:Segment.base_path", "m3u8/model.py:Segment.base_uri" ], "added_modules": null, "edited_entities": [ "m3u8/model.py:M3U8.base_uri", "m3u8/model.py:M3U8._update_base_path", "m3u8/model.py:Segment.__in...
globocom/m3u8
4d79a58382275a91220f01fc232f3f7f05b998f0
Base Paths/URIs not applied to some types Looks like some types that are derived from `BasePathMixin` (at least `PartialSegment`, `InitializationSegment`, `RenditionReport`) do not have their base_path or base_uri updated as they are not considered in the `M3U8` setter methods. I will put a PR together soon.
diff --git a/m3u8/model.py b/m3u8/model.py index 48bfd46..a5206ad 100644 --- a/m3u8/model.py +++ b/m3u8/model.py @@ -220,7 +220,9 @@ class M3U8(object): self._base_uri = new_base_uri self.media.base_uri = new_base_uri self.playlists.base_uri = new_base_uri + self.iframe_playlists.base_...
globocom__m3u8-211
[ { "changes": { "added_entities": [ "m3u8/model.py:number_to_string" ], "added_modules": [ "m3u8/model.py:number_to_string" ], "edited_entities": [ "m3u8/model.py:M3U8.dumps", "m3u8/model.py:Segment.dumps", "m3u8/model.py:PartialSegment.dumps"...
globocom/m3u8
25cf1b5547fc430efdbadd90a2f0a9d63b5fe472
Short segment duration is formatted in scientific notation which violates the spec for EXTINF Short segments are re-formatted in scientific notation(`e-05`) which violates the [decimal floating point spec](https://tools.ietf.org/html/rfc8216#section-4.3.2.1). Using the attached file perform the following ``` >>>...
diff --git a/m3u8/model.py b/m3u8/model.py index f9e90bf..01d9428 100644 --- a/m3u8/model.py +++ b/m3u8/model.py @@ -2,7 +2,7 @@ # Copyright 2014 Globo.com Player authors. All rights reserved. # Use of this source code is governed by a MIT License # license that can be found in the LICENSE file. - +import decimal i...
globocom__m3u8-219
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "m3u8/model.py:Media.__init__", "m3u8/model.py:Media.dumps" ], "edited_modules": [ "m3u8/model.py:Media" ] }, "file": "m3u8/model.py" }, { "changes": { ...
globocom/m3u8
f921997c7858ed3aef2d803fbee99a469bd7f69d
handle audio channels Ref https://tools.ietf.org/html/draft-pantos-hls-rfc8216bis-07#page-38
diff --git a/m3u8/model.py b/m3u8/model.py index 01d9428..ed5d90f 100644 --- a/m3u8/model.py +++ b/m3u8/model.py @@ -936,6 +936,7 @@ class Media(BasePathMixin): `forced` `instream_id` `characteristics` + `channels` attributes in the EXT-MEDIA tag `base_uri` @@ -944,7 +945,7 @@ class Medi...
globocom__m3u8-231
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "m3u8/model.py:IFramePlaylist.__init__", "m3u8/model.py:IFramePlaylist.__str__" ], "edited_modules": [ "m3u8/model.py:IFramePlaylist" ] }, "file": "m3u8/model.py...
globocom/m3u8
f9a731ea7f1b5dfe57630a188637ebd944edeb0d
Output Average Bandwidth for IFramePlaylist iframe_stream_info sets average bandwidth to None at https://github.com/globocom/m3u8/blob/master/m3u8/model.py#L847 It should be passed along if available per https://tools.ietf.org/html/rfc8216#section-4.3.4.3 and https://tools.ietf.org/html/rfc8216#section-4.3.4.2
diff --git a/m3u8/model.py b/m3u8/model.py index 1745535..46911e4 100644 --- a/m3u8/model.py +++ b/m3u8/model.py @@ -820,8 +820,8 @@ class IFramePlaylist(BasePathMixin): Attributes: `iframe_stream_info` is a named tuple containing the attributes: - `program_id`, `bandwidth`, `codecs` and `resolution` wh...
globocom__m3u8-290
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "m3u8/model.py:Segment.__init__", "m3u8/model.py:Segment.dumps" ], "edited_modules": [ "m3u8/model.py:Segment" ] }, "file": "m3u8/model.py" }, { "changes...
globocom/m3u8
c99440e7e4f65a00938286e7c996fa873fec8106
#EXT-OATCLS-SCTE35 tag is getting removed According to documentation, this library supports the '#EXT-OATCLS-SCTE35' tag. But, when I used this parser to trim manifest files, SCTE tags were getting removed. Below are the steps I follow, 1. Downloaded master manifest file[using python request] 2. Passed downloade...
diff --git a/m3u8/model.py b/m3u8/model.py index 50bd2d5..6fee06f 100644 --- a/m3u8/model.py +++ b/m3u8/model.py @@ -6,7 +6,13 @@ import decimal import os import errno -from m3u8.protocol import ext_x_start, ext_x_key, ext_x_session_key, ext_x_map +from m3u8.protocol import ( + ext_x_key, + ext_x_map, + ex...
globocom__m3u8-374
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "m3u8/parser.py:_parse_attribute_list", "m3u8/parser.py:_parse_cueout_cont", "m3u8/parser.py:_cueout_no_duration", "m3u8/parser.py:_cueout_envivio", "m3u8/parser.py:_cueou...
globocom/m3u8
54f5288d23129506168d34d87482f4dcbfa25c62
MediaConvert EXT-CUE-OUT-CONT still problematic Hi, I still have problems with some HLS manifests generated by AWS MediaConvert, even after the fix to #349. Here is an example: https://bpkio-cs-demos.s3-eu-west-1.amazonaws.com/fabre/mediaconvert-conditioning/output/hls/cts-laworder720p.m3u8 The lib fails on this l...
diff --git a/m3u8/parser.py b/m3u8/parser.py index cb16fe3..e2df4e2 100644 --- a/m3u8/parser.py +++ b/m3u8/parser.py @@ -320,9 +320,14 @@ def _parse_attribute_list(prefix, line, attribute_parser, default_parser=None): attributes = {} for param in params: - name, value = param.split("=", 1) - n...
globocom__m3u8-375
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "m3u8/httpclient.py:DefaultHTTPClient.download" ], "edited_modules": [ "m3u8/httpclient.py:DefaultHTTPClient" ] }, "file": "m3u8/httpclient.py" } ]
globocom/m3u8
e537b2ddd960450cbe7b8b45306b5bfb91c5e9e5
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x8b in position 1: invalid start byte I get this error when doing `m3u8.load("https://cdn-vod-1.nxplay.com.br/hls/movies/94934c51-70e8-4583-8fac-2e045529c6d6/media_0.mp4/index-v1-a1.m3u8")` UnicodeDecodeError: 'utf-8' codec can't decode byte 0x8b in position 1: ...
diff --git a/m3u8/httpclient.py b/m3u8/httpclient.py index 28025c0..a6babad 100644 --- a/m3u8/httpclient.py +++ b/m3u8/httpclient.py @@ -1,6 +1,6 @@ +import gzip import ssl import urllib.request - from urllib.parse import urljoin @@ -15,9 +15,15 @@ class DefaultHTTPClient: opener.addheaders = headers.it...
globocom__m3u8-77
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "m3u8/parser.py:parse", "m3u8/parser.py:_parse_extinf" ], "edited_modules": [ "m3u8/parser.py:parse", "m3u8/parser.py:_parse_extinf" ] }, "file": "m3u8/p...
globocom/m3u8
1897052d9362c21a4af52340e945edaec7de8fe8
EXTINF tag with optional comma? m3u8 library requires EXTINF tag to have title, but the title is optional, see https://tools.ietf.org/html/draft-pantos-http-live-streaming-09#section-3.3.2
diff --git a/m3u8/parser.py b/m3u8/parser.py index f1c7590..a0b7f5d 100644 --- a/m3u8/parser.py +++ b/m3u8/parser.py @@ -91,7 +91,7 @@ def parse(content, strict=False): data['key'] = data.get('key', state['current_key']) elif line.startswith(protocol.extinf): - _parse_extinf(line, dat...
globus__globus-cli-547
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "src/globus_cli/commands/delete.py:delete_command" ], "edited_modules": [ "src/globus_cli/commands/delete.py:delete_command" ] }, "file": "src/globus_cli/commands/delete...
globus/globus-cli
f35b947b322f992398b5be08e393c5fed7bee586
globus transfer --batch: accept filename Currently globus transfer --batch is defined to take the list of input files on stdin. Rather than forcing stdin, why not define it as "--batch INPUTFILE", where INPUTFILE can be "-" to mean stdin? That seems somewhat more flexible and easier, if my file list is in a file.
diff --git a/src/globus_cli/commands/delete.py b/src/globus_cli/commands/delete.py index cc0c055d..7b4cb2db 100644 --- a/src/globus_cli/commands/delete.py +++ b/src/globus_cli/commands/delete.py @@ -7,7 +7,7 @@ from globus_cli.parsing import ( TaskPath, command, delete_and_rm_options, - shlex_process_...
globus__globus-sdk-python-143
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "globus_sdk/auth/client_types/native_client.py:NativeAppAuthClient.oauth2_start_flow" ], "edited_modules": [ "globus_sdk/auth/client_types/native_client.py:NativeAppAuthClient" ...
globus/globus-sdk-python
35e55d84064d5a5ca7589c9d326c0abf5b153f69
Add `prefill_named_grant` support to NativeApp grant flow Per globus/globus-cli#176 , there's an option to prefill the named grant label, `prefill_named_grant`. It's probably a string. We need to support this so that the CLI and similar applications can use it. Not considering this blocked on documentation.
diff --git a/globus_sdk/auth/client_types/native_client.py b/globus_sdk/auth/client_types/native_client.py index 0f8da1d3..e2ab435e 100644 --- a/globus_sdk/auth/client_types/native_client.py +++ b/globus_sdk/auth/client_types/native_client.py @@ -46,7 +46,8 @@ class NativeAppAuthClient(AuthClient): def oauth2_st...
globus__globus-sdk-python-185
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "globus_sdk/auth/client_types/confidential_client.py:ConfidentialAppAuthClient.oauth2_client_credentials_tokens" ], "edited_modules": [ "globus_sdk/auth/client_types/confidential_clie...
globus/globus-sdk-python
4cf08b26180d62ecef6b605c9df10ede9ebef681
Make requested_scopes accept (in all contexts) an iterable of strings Right now, we're requiring that people give us a space-delimited string. Many people have pointed out that it's awkward / uncomfortable. Wouldn't it be great if we could take tuples and lists? Yes, yes it would. This shouldn't be too hard.
diff --git a/docs/examples/native_app.rst b/docs/examples/native_app.rst index 27b0b239..9f39b8ec 100644 --- a/docs/examples/native_app.rst +++ b/docs/examples/native_app.rst @@ -1,3 +1,5 @@ +.. _examples_native_app_login: + Native App Login ---------------- diff --git a/docs/examples/three_legged_oauth.rst b/docs/...
globus__globus-sdk-python-261
[ { "changes": { "added_entities": [ "globus_sdk/auth/token_response.py:_ByScopesGetter.__init__", "globus_sdk/auth/token_response.py:_ByScopesGetter.__str__", "globus_sdk/auth/token_response.py:_ByScopesGetter.__iter__", "globus_sdk/auth/token_response.py:_ByScopesGetter.__g...
globus/globus-sdk-python
803aa674e145f5a386f6f032264656206b7e0dde
Add `by_scopes` form (or similar) to token response This is pretty much just another presentation of the same data that we put into `OAuthTokenResponse.by_resource_server`. Although instinctively I'd just generate this as a dict, I don't think that's right. IMO, `tokens.by_scopes['openid profile']` should do the sam...
diff --git a/globus_sdk/auth/token_response.py b/globus_sdk/auth/token_response.py index 8b50dba3..65c8688e 100644 --- a/globus_sdk/auth/token_response.py +++ b/globus_sdk/auth/token_response.py @@ -2,6 +2,7 @@ import logging import json import requests import time +import six import jwt @@ -24,10 +25,71 @@ def...
globus__globus-sdk-python-307
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "globus_sdk/base.py:BaseClient.__init__" ], "edited_modules": [ "globus_sdk/base.py:BaseClient" ] }, "file": "globus_sdk/base.py" }, { "changes": { "added_...
globus/globus-sdk-python
d761ba9a104ba2d8a70d2e064d12ea95101596df
Creating a client with `environment="production"` does not properly translate as it would with the environment variable The default config section has the "production" environment values. We have handling code for this in `globus_sdk.config_get_default_environ`, but that only runs if `environment` isn't passed to a cl...
diff --git a/globus_sdk/base.py b/globus_sdk/base.py index ec668bcd..8fd51190 100644 --- a/globus_sdk/base.py +++ b/globus_sdk/base.py @@ -80,16 +80,16 @@ class BaseClient(object): type(self), self.allowed_authorizer_types, type(authorizer))) - # defer this default unt...
globus__globus-sdk-python-403
[ { "changes": { "added_entities": [ "globus_sdk/auth/client_types/base.py:AuthClient.get_openid_configuration", "globus_sdk/auth/client_types/base.py:AuthClient.get_jwk" ], "added_modules": null, "edited_entities": null, "edited_modules": [ "globus_sdk/auth/c...
globus/globus-sdk-python
6da56a4c6e1ac613b00cfb0a165ede983f0f7c39
Make it possible to cache JWK (external to SDK) and use it for decode_id_token Low priority. I realized while answering a listhost thread that even though `OAuthTokenResponse.decode_id_token` could be optimized (in theory) to use a cached copy of the JWK and therefore no network callout, we don't leave that avenue o...
diff --git a/globus_sdk/auth/client_types/base.py b/globus_sdk/auth/client_types/base.py index d822b969..9152d093 100644 --- a/globus_sdk/auth/client_types/base.py +++ b/globus_sdk/auth/client_types/base.py @@ -1,6 +1,9 @@ import collections +import json import logging +import jwt + from globus_sdk import exc fro...
glotzerlab__rowan-10
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "rowan/functions.py:to_axis_angle" ], "edited_modules": [ "rowan/functions.py:to_axis_angle" ] }, "file": "rowan/functions.py" } ]
glotzerlab/rowan
a6b947397e1de6797cfac144b0fa9e410c75c683
to_axis_angle not working for multiple quaternions? I have several quaternions and want to get axes/angles. This is a traceback of what happens. I'm using rowan v1.2.0. ``` >>> rowan.to_axis_angle(rowan.normalize([[0.707, 0, 0, 0.707], [0, 0, 0, 1]])) Traceback (most recent call last): File "<stdin>", line 1, in ...
diff --git a/rowan/functions.py b/rowan/functions.py index 2f6a0c4..8a960dc 100644 --- a/rowan/functions.py +++ b/rowan/functions.py @@ -1031,8 +1031,8 @@ def to_axis_angle(q): sines = np.sin(angles/2) # Avoid divide by zero issues; these values will not be used sines[sines == 0] = 1 - axes = np.where...
glotzerlab__rowan-18
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": null, "edited_modules": null }, "file": "doc/conf.py" }, { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "rowan/functions.py:to_eu...
glotzerlab/rowan
98532c0a82631fbdcf9661533f1500021ddcaf43
to_euler failing with some quaternions It looks like `to_euler` may be failing in some cases with particularly clean orientations; I'd guess that some tolerances may need to be added to the calculation, at a glance. For example, ```rowan.to_euler((-.5, .5, -.5, .5), convention='xyz', axis_type='intrinsic')``` pro...
diff --git a/doc/conf.py b/doc/conf.py index d1a5f01..564930e 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -55,7 +55,7 @@ master_doc = 'index' # General information about the project. project = 'rowan' -copyright = '2010-2019, Regents of the University of Michigan' +copyright = '2010-2019, The Regents of the Unive...
glotzerlab__signac-118
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": null, "edited_modules": null }, "file": "signac/__init__.py" }, { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "signac/__main__.p...
glotzerlab/signac
6493898dc145cc3438533c75ec2030c82f06fa3c
Implement a `signac.get_job()` function **[Original report](https://bitbucket.org/glotzer/signac/issue/108) by Carl Simon Adorf (Bitbucket: [csadorf](https://bitbucket.org/csadorf), GitHub: [csadorf](https://github.com/csadorf)).** ---------------------------------------- The idea is to be able to "get" a job from th...
diff --git a/changelog.txt b/changelog.txt index 3d171bac..7c598d41 100644 --- a/changelog.txt +++ b/changelog.txt @@ -25,6 +25,7 @@ Added +++++ - Adds an ``H5Store`` class, useful for storing array-like data with an HDF5 backend. Accessible via ``with job.data:`` or ``with project.data:``. + - Adds the ``signac.g...
glotzerlab__signac-169
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "signac/contrib/collection.py:Collection._find_expression" ], "edited_modules": [ "signac/contrib/collection.py:Collection" ] }, "file": "signac/contrib/collection.py" ...
glotzerlab/signac
8da87575a3499ec5db77bb78780a1d1bada66056
Surprising type comparisons with $signac find ### Description I have a statepoint parameter that has some `int` values and some `decimal` values. When I use `signac find` to find jobs filtering by this parameter, it only returns jobs where both the value and type of the jobs' statepoints match the search parameters....
diff --git a/changelog.txt b/changelog.txt index 5845ceaf..753203ee 100644 --- a/changelog.txt +++ b/changelog.txt @@ -20,6 +20,7 @@ next ---- - Add command line options ``--sp`` and ``--doc`` for ``signac find`` that allow users to display key-value pairs of the state point and document in combination with the jo...
glotzerlab__signac-211
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "signac/contrib/import_export.py:_make_schema_based_path_function" ], "edited_modules": [ "signac/contrib/import_export.py:_make_schema_based_path_function" ] }, "file":...
glotzerlab/signac
f83f86d7436ad7c362deeb541230c7d1e3ac5cff
view function regression in latest version <!-- Please replace the text in the individual sections below. --> ### Description "...there appears to be a regression affecting the view function in the latest version." per @csadorf in the Gitter signac lobby ### To reproduce ``` # init.py import signac proj...
diff --git a/changelog.txt b/changelog.txt index daf2b1c6..145174d3 100644 --- a/changelog.txt +++ b/changelog.txt @@ -27,6 +27,7 @@ next - Fix issue causing a failure of the automatic conversion of valid key types (#168, #205). - Improve the 'dots in keys' error message to make it easier to fix related issues (#17...
glotzerlab__signac-252
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "signac/contrib/project.py:Project.init_project" ], "edited_modules": [ "signac/contrib/project.py:Project" ] }, "file": "signac/contrib/project.py" } ]
glotzerlab/signac
51381aba9f18837ab29f8565964dc4acc5fc1c77
Commas in project names cause unexpected errors ### Description I was creating a signac project named `oP6-As2(Co,Ni,Fe)_r`. This is problematic because the commas are not understood by the configuration parser. ### To reproduce ```python >>> import signac >>> signac.init_project('oP6-As2(Co,Ni,Fe)_r') Trac...
diff --git a/changelog.txt b/changelog.txt index ee46ffa0..e3dfe099 100644 --- a/changelog.txt +++ b/changelog.txt @@ -34,6 +34,7 @@ Fixed +++++ - Attempting to create a linked view for a Project on Windows now raises an informative error message. + - Project configuration is initialized using ConfigObj, allowing ...
glotzerlab__signac-269
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "signac/core/synceddict.py:_SyncedDict.values", "signac/core/synceddict.py:_SyncedDict.items", "signac/core/synceddict.py:_SyncedDict._as_dict" ], "edited_modules": [ ...
glotzerlab/signac
dc870ac06159cae97e1475894913d1def567555e
Calling `_SyncedDict.values()` gives `dict` objects <!-- Please replace the text in the individual sections below. --> ### Description Calling standard `MutableMapping` methods (`keys`, `values`, etc) on `_SyncedAttrDict` objects modifies the underlying dictionary in place. This behavior is unexpected, such an op...
diff --git a/changelog.txt b/changelog.txt index d099ad1a..bbd04bb9 100644 --- a/changelog.txt +++ b/changelog.txt @@ -19,6 +19,7 @@ Fixed +++++ - Fixed issues on Windows with ``H5Store``, project import/export, and operations that move files (#264, #266). + - Calling ``items`` or ``values`` on _SyncedDict objects...
glotzerlab__signac-271
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "signac/contrib/project.py:Project.__init__" ], "edited_modules": [ "signac/contrib/project.py:Project" ] }, "file": "signac/contrib/project.py" }, { "changes": ...
glotzerlab/signac
dc870ac06159cae97e1475894913d1def567555e
Fix race condition when workspace is created ### Description In MPI parallel jobs, where every rank (or every `n` ranks) may initialize a statepoint on the fly, a race condition leads to the job crashing when no `workspace` directory is present. The explanation is that this directory is created on the fly simultaneo...
diff --git a/changelog.txt b/changelog.txt index d099ad1a..ac6d84a9 100644 --- a/changelog.txt +++ b/changelog.txt @@ -14,11 +14,19 @@ Added +++++ - Added Windows to platforms tested with continuous integration (#264, #266). + +Changed ++++++++ + + - Workspace directory is created when ``Project`` is initialized ...
glotzerlab__signac-296
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "signac/contrib/collection.py:_hashable_dict.__hash__", "signac/contrib/collection.py:_to_hashable", "signac/contrib/collection.py:_encode_tree", "signac/contrib/collection.py:_tr...
glotzerlab/signac
55e6ab88e99b655760c7ba79b39b90b1df19c910
Simplify redundancies in nested dict representations ### Feature description Currently nested dicts within signac can be represented as (1) nested dicts, (2) tuples as dict keys, and (3) strings with dot notation. ### Proposed solution We've had some conversation, about whether it's a good idea to keep all thre...
diff --git a/changelog.txt b/changelog.txt index 4bd9fb26..942b0a14 100644 --- a/changelog.txt +++ b/changelog.txt @@ -36,6 +36,7 @@ Removed - Removed vendored ``tqdm`` module and replaced it with a requirement (#289). - Removed support for ``rapidjson`` as an alternative JSON library (#285, #287). + - Removed tu...
glotzerlab__signac-323
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "signac/contrib/project.py:JobsCursor.groupby" ], "edited_modules": [ "signac/contrib/project.py:JobsCursor" ] }, "file": "signac/contrib/project.py" } ]
glotzerlab/signac
5ae402c9d956a98478ddec660d4b63f37eaae30a
groupby() by variables that not present in the entire data space ### Feature description I am interested in obtaining all the jobs that contain a variable `b` which does not necessarily have to be present in all the jobs. ### Proposed solution From @bdice in the slack group: > Bradley Dice 10:43 AM @Migue...
diff --git a/changelog.txt b/changelog.txt index 91e497f3..69cf687c 100644 --- a/changelog.txt +++ b/changelog.txt @@ -15,9 +15,11 @@ Added - Type annotations are validated during continuous integration (#313). - Added ``_repr_html_`` method in ``ProjectSchema`` class (#314, #324). + - Allow grouping by variables...
glotzerlab__signac-470
[ { "changes": { "added_entities": [ "signac/core/synced_collections/buffered_collection.py:buffer_all" ], "added_modules": [ "signac/core/synced_collections/buffered_collection.py:buffer_all" ], "edited_entities": [ "signac/core/synced_collections/buffered_co...
glotzerlab/signac
8c72b08552ca3839f5ea19fdc4bca55379baa4db
Use custom context managers rather than contextlib Noted by @bdice in [this comment](https://github.com/glotzerlab/signac/pull/463/files#r552232801) #463, contextlib's contextmanagers have a lot of overhead. We should benchmark these in SyncedCollections since we use many of them and if appropriate, write our own simpl...
diff --git a/signac/core/synced_collections/buffered_collection.py b/signac/core/synced_collections/buffered_collection.py index 528c7802..1ea446ad 100644 --- a/signac/core/synced_collections/buffered_collection.py +++ b/signac/core/synced_collections/buffered_collection.py @@ -36,12 +36,12 @@ buffer flushes will occur...
glotzerlab__signac-622
[ { "changes": { "added_entities": [ "signac/contrib/filterparse.py:_is_json_like" ], "added_modules": [ "signac/contrib/filterparse.py:_is_json_like" ], "edited_entities": [ "signac/contrib/filterparse.py:_is_json", "signac/contrib/filterparse.py:_par...
glotzerlab/signac
42986037f07766ac1278716d4256da17690747e8
Using signac find on the CLI for tuples <!-- Please replace the text in the individual sections below. --> ### Description Finding jobs for which a given statepoint parameter, x, is equal to a particular list cannot be as easily done with the `signac find` CLI option as it can with other statepoint parameters. Fo...
diff --git a/signac/contrib/filterparse.py b/signac/contrib/filterparse.py index 0fe52b75..9868fb8d 100644 --- a/signac/contrib/filterparse.py +++ b/signac/contrib/filterparse.py @@ -62,8 +62,8 @@ def _read_index(project, fn_index=None): return (json.loads(line) for line in fd) -def _is_json(q): - """Ch...
glotzerlab__signac-814
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "signac/__main__.py:main_config_show", "signac/__main__.py:main_config_verify", "signac/__main__.py:main_config_set", "signac/__main__.py:main_config_host" ], "edited_...
glotzerlab/signac
3ffa9609a78ae1eaab0f33c51aa885e107fcd12c
Consider removing config APIs Currently signac allows users to interact with the config via both Python APIs and the CLI. While this model makes sense for most of signac, it is generally unnecessary for configs. In fact, changes like glotzerlab/signac-flow#573 are moving us towards completely decoupling the configurati...
diff --git a/changelog.txt b/changelog.txt index 19c56bb6..6736b372 100644 --- a/changelog.txt +++ b/changelog.txt @@ -35,7 +35,7 @@ Deprecated - ``JobSearchIndex`` class is deprecated (#600). - ``index`` argument is deprecated in ``Project`` methods (#602, #588). - ``signac.cite`` module is deprecated (#611, #59...
glotzerlab__signac-flow-178
[ { "changes": { "added_entities": [ "flow/project.py:_create_all_metacondition", "flow/project.py:FlowProject.detect_operation_graph" ], "added_modules": [ "flow/project.py:_create_all_metacondition" ], "edited_entities": [ "flow/project.py:_condition...
glotzerlab/signac-flow
e1fb3dff48512a34ee3c831b8ebf6151a8eaea95
Export workflow graph **[Original report](https://bitbucket.org/glotzer/signac-flow/issue/41) by Carl Simon Adorf (Bitbucket: [csadorf](https://bitbucket.org/csadorf), GitHub: [csadorf](https://github.com/csadorf)).** ---------------------------------------- As per offline discussion, we determined that it should be ...
diff --git a/changelog.txt b/changelog.txt index 1ad1935..2181a51 100644 --- a/changelog.txt +++ b/changelog.txt @@ -11,7 +11,8 @@ next Added +++++ -- Add "fork" directive to enforce the execution of operations within a subprocess. +- Add "fork" directive to enforce the execution of operations within a subprocess (...
glotzerlab__signac-flow-738
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "flow/project.py:FlowProject._add_job_selection_args", "flow/project.py:FlowProject._main_status", "flow/project.py:FlowProject._select_jobs_from_args" ], "edited_modules": [ ...
glotzerlab/signac-flow
4590e4258942512d24b281d34a0205e1e5bf3c69
Error when running jobs using -f on command line ### Description When I use `python project.py run -f ...` on the command line, flow errors internally. ### To reproduce ```python import signac from flow import FlowProject from pathlib import Path project = signac.get_project(Path(__file__).parent / "Si...
diff --git a/changelog.txt b/changelog.txt index a002f4d..1657aef 100644 --- a/changelog.txt +++ b/changelog.txt @@ -8,6 +8,19 @@ The numbers in brackets denote the related GitHub issue and/or pull request. Version 0.25 ============ +[0.25.1] -- 2023-XX-XX +---------------------- + +Fixed ++++++ + +- Fix filter arg...
glue-viz__glue-1203
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "glue/core/coordinates.py:Coordinates.world_axis", "glue/core/coordinates.py:Coordinates.axis_label", "glue/core/coordinates.py:WCSCoordinates.__init__", "glue/core/coordinates.py...
glue-viz/glue
a036b8c270af8e3892ac88748f12955a1b2c1ff9
Allow WCSCoordinates to be initialized with only a WCS object At the moment, WCSCoordinates **requires** a header, but we should change this so that a WCS object alone should be enough.
diff --git a/glue/core/coordinates.py b/glue/core/coordinates.py index 68b26e20..38001ce4 100644 --- a/glue/core/coordinates.py +++ b/glue/core/coordinates.py @@ -139,8 +139,8 @@ class Coordinates(object): def world_axis(self, data, axis): """ - Find the world coordinates along a given dimension,...
glue-viz__glue-2214
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "glue/core/component.py:Component.autotyped", "glue/core/component.py:CategoricalComponent.__init__" ], "edited_modules": [ "glue/core/component.py:Component", "glue/c...
glue-viz/glue
049d3c3d090bce8cf4a70e37fa96c58e041cbd22
Allow categorical components to be >1D **Is your feature request related to a problem? Please describe it:** Categorical components are currently limited to be 1D, but it is sometimes useful to have categorical components with higher dimension. **Describe the solution you'd like:** Enable categorical components w...
diff --git a/CHANGES.md b/CHANGES.md index 8f4073e9..14b1ab4c 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -12,6 +12,8 @@ v1.2.0 (unreleased) * Expose ``DataCollection.delay_link_manager_update`` which can be used to delay any updating to the link tree when adding datasets. [#2225] +* Allow CategoricalComponents t...
glue-viz__glue-astronomy-68
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "glue_astronomy/translators/spectrum1d.py:PaddedSpectrumWCS.__init__", "glue_astronomy/translators/spectrum1d.py:PaddedSpectrumWCS.pixel_n_dim", "glue_astronomy/translators/spectrum1d.py:...
glue-viz/glue-astronomy
d87a94dfe20239f5164081fc5c2a53a517ae4885
Spectrum1D translator cannot handle spectral_axis in 3D cube I am not sure what is the proper fix. I don't want to spend time hacking it only to be told it is wrong. Please advise. Thanks! ```python import numpy as np from astropy import units as u from specutils import Spectrum1D from glue_astronomy.translato...
diff --git a/CHANGES.rst b/CHANGES.rst index e316e24..97d9b2c 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -1,3 +1,10 @@ +0.4.0 (unreleased) +------------------ + +- Updated ``Spectrum1D`` translator to generate dummy WCS when needed for any + dimensionality, and to preserve specutils axis order when translating + t...
glue-viz__glue-astronomy-93
[ { "changes": { "added_entities": [ "glue_astronomy/translators/regions.py:roi_subset_state_to_region", "glue_astronomy/translators/regions.py:_get_xy_pix_att_from_subset" ], "added_modules": [ "glue_astronomy/translators/regions.py:roi_subset_state_to_region", "...
glue-viz/glue-astronomy
845652ade053df9f3291093259959f5f4dae2bc4
Add support for sky regions in translator Would be nice to have glue-astronomy automatically translate spatial ROI to sky region shapes. But glue-astronomy would have to be smart enough to figure out which data the subset is tied to and whether the data has a valid `data.coords`. Related issues: * #49 * #51 * ...
diff --git a/glue_astronomy/translators/regions.py b/glue_astronomy/translators/regions.py index 47183c0..a9595ab 100644 --- a/glue_astronomy/translators/regions.py +++ b/glue_astronomy/translators/regions.py @@ -12,10 +12,9 @@ from regions import (RectanglePixelRegion, PolygonPixelRegion, CirclePixelRegion ...
glyph__txsni-10
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": null, "edited_modules": null }, "file": "setup.py" }, { "changes": { "added_entities": [ "txsni/snimap.py:_NegotiationData.__init__", "txsni/snimap.py:_NegotiationData.n...
glyph/txsni
e8a243a05f0f6eb81e06098fb18f35c11b7cdc3e
txsni breaks protocol negotiation. In Twisted 16.3 we added `IProtocolNegotiationFactory`, which `TLSMemoryBIOProtocol` uses to determine what protocols (if any) should be negotiated via ALPN/NPN. `TLSMemoryBIOProtocol` does this when `_createConnection` fires, potentially setting callbacks and data on the context retu...
diff --git a/.travis.yml b/.travis.yml index 0db1bb1..229d059 100644 --- a/.travis.yml +++ b/.travis.yml @@ -12,10 +12,10 @@ env: - TOXENV=py27-twlatest - TOXENV=pypy-twlatest OPENSSL_VERSION=1.0.2h - TOXENV=pypy-twlatest - - TOXENV=py27-tw132 OPENSSL_VERSION=1.0.2h - - TOXENV=py27-tw132 - - TOXENV=pypy-tw1...
gmr__pamqp-52
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "pamqp/decode.py:timestamp" ], "edited_modules": [ "pamqp/decode.py:timestamp" ] }, "file": "pamqp/decode.py" } ]
gmr/pamqp
8e72f7b258789c879c3a80226c4d349bbb3a10e3
Deprecation warning about `datetime.utcfromtimestamp` Method [datetime.utcfromtimestamp](https://docs.python.org/3.12/library/datetime.html#datetime.datetime.utcfromtimestamp) is deprecated since 3.12: ``` DeprecationWarning: datetime.datetime.utcfromtimestamp() is deprecated and scheduled for removal in a future v...
diff --git a/pamqp/decode.py b/pamqp/decode.py index fd64133..a52ff4f 100644 --- a/pamqp/decode.py +++ b/pamqp/decode.py @@ -278,7 +278,8 @@ def timestamp(value: bytes) -> typing.Tuple[int, datetime.datetime]: """ try: temp = common.Struct.timestamp.unpack(value[0:8]) - return 8, datetime.date...
gmr__tornado-aws-9
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": null, "edited_modules": null }, "file": "setup.py" }, { "changes": { "added_entities": null, "added_modules": null, "edited_entities": null, "edited_modules": null ...
gmr/tornado-aws
549b844677b8112f7da3a57dd86e4a2e7178235f
AsyncHTTPClient(force_instance=True) could cause memory leaks What's the reason of forcing a new instance of the `AsyncHTTPClient`? The Tornado documentation states > close() is generally only necessary when either the IOLoop is also being closed, or the force_instance=True argument was used when creating the AsyncHTT...
diff --git a/docs/history.rst b/docs/history.rst index 51124bb..5590628 100644 --- a/docs/history.rst +++ b/docs/history.rst @@ -3,6 +3,10 @@ Version History =============== +1.1.0 (2018-03-19) +------------------ + - Add ``close`` method to ``AWSClient`` (#9 from `31z4 <https://github.com/31z4>_`) + 1.0.0 (2018-0...
godatadriven__evol-164
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": null, "edited_modules": null }, "file": "evol/__init__.py" }, { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "evol/population.py:...
godatadriven/evol
b092a309f5fd4091b76b7bfd773ff9daa8ae9b2f
Not sure if elitism works I put elitist to True in my mutation step, but it did not work when looking at the source code it looks like it will not work. ` elite_fitness = self.current_best if elitist else None for individual in self.individuals: if elite_fitness is None or individual.f...
diff --git a/evol/__init__.py b/evol/__init__.py index 6746f75..9f44276 100644 --- a/evol/__init__.py +++ b/evol/__init__.py @@ -119,4 +119,4 @@ from .population import Population, ContestPopulation from .evolution import Evolution from .logger import BaseLogger -__version__ = "0.5.2" +__version__ = "0.5.3" diff --...
goerz__zip_files-5
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "src/zip_files/backend.py:_add_to_zip", "src/zip_files/backend.py:zip_files" ], "edited_modules": [ "src/zip_files/backend.py:_add_to_zip", "src/zip_files/backend.py:z...
goerz/zip_files
8eda31078c4dc1274b2acb0354942741313f311b
Permissions are not preserved File permissions, like the "executable" flag are not preserved in the zip file.
diff --git a/src/zip_files/backend.py b/src/zip_files/backend.py index 36c0d44..b1c4999 100644 --- a/src/zip_files/backend.py +++ b/src/zip_files/backend.py @@ -9,7 +9,7 @@ import random import re from pathlib import Path from string import ascii_letters -from zipfile import ZipFile +from zipfile import ZipFile, Zip...
goldmann__docker-squash-109
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "docker_squash/image.py:Image._add_markers" ], "edited_modules": [ "docker_squash/image.py:Image" ] }, "file": "docker_squash/image.py" } ]
goldmann/docker-squash
afd81aefb5230ef8f001fec544e8649984427444
Marker files is skipped when it shouldn't be When using d568d17703beed8d4eea04ef3987f591c1082af0 -- a removed file `/lib/systemd/system/getty.target` was added back because the marker file `usr/lib/systemd/system/.wh.getty.target` was not added back. Build log: ``` 2016-07-21 08:32:36,167 - atomic_reactor.plugi...
diff --git a/docker_squash/image.py b/docker_squash/image.py index 9487d44..40fa7fe 100644 --- a/docker_squash/image.py +++ b/docker_squash/image.py @@ -492,15 +492,21 @@ class Image(object): "Skipping '%s' marker file, this file was added earlier for some reason..." % marker.name) ...
goldmann__docker-squash-110
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "docker_squash/cli.py:CLI.run" ], "edited_modules": [ "docker_squash/cli.py:CLI" ] }, "file": "docker_squash/cli.py" }, { "changes": { "added_entities": [ ...
goldmann/docker-squash
15bda09f82d4031fcf3e493d18133ffbbd09fdbd
Remove squashed layers from Docker daemon In most cases we're not interested in layers that were squashed. In case where the input and target image has the same tag - all squashed layers will be "orphaned" leaving them in Docker daemon and wasting space. We should probably include a `--cleanup` switch or something simi...
diff --git a/docker_squash/cli.py b/docker_squash/cli.py index 462b872..cff0773 100644 --- a/docker_squash/cli.py +++ b/docker_squash/cli.py @@ -42,7 +42,9 @@ class CLI(object): parser.add_argument( '-f', '--from-layer', help='ID of the layer or image ID or image name. If not specified will squash...
goldmann__docker-squash-208
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "docker_squash/image.py:Image._reduce", "docker_squash/image.py:Image._path_hierarchy" ], "edited_modules": [ "docker_squash/image.py:Image" ] }, "file": "docker...
goldmann/docker-squash
2ecffdd6ce7932eaf637f7ac4fcb30eab33dc15a
ERROR maximum recursion depth exceeded while calling a Python object It runs into the following ERROR: (base) c:\tmp>docker-squash -f b0aa1bedc1a4 -t test/spark:squashed test/spark:BAK 2020-09-04 07:19:07,396 root INFO docker-squash version 1.0.8, Docker 48a66213fe, API 1.40... 2020-09-04 07:19:07,4...
diff --git a/docker_squash/image.py b/docker_squash/image.py index db744f3..721c4b7 100644 --- a/docker_squash/image.py +++ b/docker_squash/image.py @@ -1,5 +1,8 @@ import datetime +import itertools +import pathlib + import docker import hashlib import json @@ -903,7 +906,7 @@ class Image(object): # ...
goldmann__docker-squash-229
[ { "changes": { "added_entities": [ "docker_squash/cli.py:MyParser.str2bool" ], "added_modules": null, "edited_entities": [ "docker_squash/cli.py:CLI.run" ], "edited_modules": [ "docker_squash/cli.py:CLI", "docker_squash/cli.py:MyParser" ]...
goldmann/docker-squash
1e6ae47e44e69f3094e2a5e75be20a74c1c0a44c
--output-path description is confused ``` --output-path OUTPUT_PATH Path where the image should be stored after squashing. If not provided, image will be loaded into Docker daemon ``` It sounds like "If you specify the output path, squashed...
diff --git a/README.rst b/README.rst index c016dae..bc8b29e 100644 --- a/README.rst +++ b/README.rst @@ -67,16 +67,16 @@ Usage Number of layers to squash or ID of the layer (or image ID or image name) to squash from. In case the provided value is an integer, spe...
goodmami__wn-173
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "wn/_core.py:Sense.word" ], "edited_modules": [ "wn/_core.py:Sense" ] }, "file": "wn/_core.py" } ]
goodmami/wn
ea450b2353aea8249998bcb376eef308ea151f0a
If you try to loop through senses first, hypernym_paths() hangs Hi, if you try to loop through senses, then try to find hypernym paths, the code hangs. Looping through synsets is fine! For example, the code below will print the path for the synset in the first loop, but hang in the second loop. ``` ## #...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 31499b6..4a066dc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,7 +13,9 @@ * `wn.download()` no longer uses Python features unavailable in 3.7 when recovering from download errors * `Sense.synset()` now creates a `Synset` properly linked to the same - `Wordnet` ...