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
cloud-custodian__cloud-custodian-6332
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "c7n/resources/rds.py:DescribeRDS.augment", "c7n/resources/rds.py:DescribeRDSSnapshot.augment" ], "edited_modules": [ "c7n/resources/rds.py:DescribeRDS", "c7n/resource...
cloud-custodian/cloud-custodian
79476532c1e33253e18d06127ef63d796aa616b5
aws - rds - remove tag augmentation rds now includes tags for resources in default output, we can drop our tag augmentation now https://awsapichanges.info/archive/changes/5fc292-rds.html
diff --git a/c7n/resources/rds.py b/c7n/resources/rds.py index a7657e0eb..4b74b3f50 100644 --- a/c7n/resources/rds.py +++ b/c7n/resources/rds.py @@ -70,8 +70,9 @@ actions = ActionRegistry('rds.actions') class DescribeRDS(DescribeSource): def augment(self, dbs): - return universal_augment( - se...
cloud-custodian__cloud-custodian-6375
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "c7n/actions/policy.py:remove_statements" ], "edited_modules": [ "c7n/actions/policy.py:remove_statements" ] }, "file": "c7n/actions/policy.py" }, { "changes": {...
cloud-custodian/cloud-custodian
3bc00d2595f519b9c9368e650c29d08e972cf44c
The s3 action "remove-statements" errors out when it encounters a bucket policy statement without a sid **Describe the bug** s3.remove-statements fails when a sid-less bucket policy statement is encountered You can see the key error in the traceback. Bucket policy statements do not require Sids and S3 omits the key...
diff --git a/c7n/actions/policy.py b/c7n/actions/policy.py index c7e2a9e02..833e1309e 100644 --- a/c7n/actions/policy.py +++ b/c7n/actions/policy.py @@ -31,7 +31,7 @@ def remove_statements(match_ids, statements, matched=()): elif match_ids == 'matched': if s in matched: s_found = ...
cloud-custodian__cloud-custodian-6453
[ { "changes": { "added_entities": [ "c7n/resources/ecs.py:SubnetFilter.get_related_ids" ], "added_modules": [ "c7n/resources/ecs.py:SubnetFilter" ], "edited_entities": null, "edited_modules": null }, "file": "c7n/resources/ecs.py" } ]
cloud-custodian/cloud-custodian
0cb7b681fc224255ee5b9d16d0c1adc1d3c1c98e
aws.ecs-service | subnet filter **Is your feature request related to a problem? Please describe.** Trying to male sure that all ECS tasks/services run in a private subnet. **Describe the solution you'd like** `subnet` filter for ecs-service that would return all the subnets returned as per describe-services call ...
diff --git a/c7n/resources/ecs.py b/c7n/resources/ecs.py index 10c373c29..ae6326157 100644 --- a/c7n/resources/ecs.py +++ b/c7n/resources/ecs.py @@ -8,8 +8,10 @@ from c7n.filters import MetricsFilter, ValueFilter, Filter from c7n.manager import resources from c7n.utils import local_session, chunks, get_retry, type_sc...
cloud-custodian__cloud-custodian-6532
[ { "changes": { "added_entities": null, "added_modules": [ "c7n/resources/ebs.py:SnapshotVolumeFilter" ], "edited_entities": null, "edited_modules": null }, "file": "c7n/resources/ebs.py" } ]
cloud-custodian/cloud-custodian
368cd568f241d97935783cb7641952b54e9ae65f
Filter aws.ebs-snapshot with deleted volumes When I delete instance or volume, snapshot still has Volume ID `vol-1234567890123456789` I would like to be able to filter all aws.ebs-snapshot created for deleted volumes.
diff --git a/c7n/resources/ebs.py b/c7n/resources/ebs.py index e1699c4e9..35cc5a333 100644 --- a/c7n/resources/ebs.py +++ b/c7n/resources/ebs.py @@ -16,6 +16,7 @@ from c7n.filters import ( CrossAccountAccessFilter, Filter, AgeFilter, ValueFilter, ANNOTATION_KEY) from c7n.filters.health import HealthEventFilt...
cloud-custodian__cloud-custodian-6603
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "c7n/filters/offhours.py:Time.__init__", "c7n/filters/offhours.py:Time.get_tag_value" ], "edited_modules": [ "c7n/filters/offhours.py:Time" ] }, "file": "c7n/fil...
cloud-custodian/cloud-custodian
002fa72de3cb3faf6309b0608a4f4216c2f1d571
AWS resources with tag restrictions can't fully use OffHours Hi, I'm setting up a shutdown schedule for RDS and know that RDS tags cannot have the characters needed in them. As a workaround, I am creating a custom policy for RDS with specific values set. The trouble I am facing is the policy I want to implement specifi...
diff --git a/c7n/filters/offhours.py b/c7n/filters/offhours.py index cd8b02523..1203ccf8b 100644 --- a/c7n/filters/offhours.py +++ b/c7n/filters/offhours.py @@ -29,6 +29,9 @@ different policy, they support the same configuration options: - **weekends-only**: default false, whether to turn the resource off only on ...
cloud-custodian__cloud-custodian-6639
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "c7n/mu.py:CloudWatchEventSource.render_event_pattern" ], "edited_modules": [ "c7n/mu.py:CloudWatchEventSource" ] }, "file": "c7n/mu.py" } ]
cloud-custodian/cloud-custodian
43ddab1ec08ff46fec49d17f233a446011d704e2
Event Pattern is not valid, PHD all events **Describe the bug** ``` botocore.errorfactory.InvalidEventPatternException: An error occurred (InvalidEventPatternException) when calling the PutRule operation: Event pattern is not valid. Reason: Empty objects are not allowed at [Source: (String)"{"source": ["aws.health"...
diff --git a/c7n/mu.py b/c7n/mu.py index c8d0dff9a..fb63dcd2f 100644 --- a/c7n/mu.py +++ b/c7n/mu.py @@ -1078,6 +1078,8 @@ class CloudWatchEventSource(AWSEventBase): }) if self.data.get('categories', []): payload['detail']['eventTypeCategory'] = self.data['categories'] + ...
cloud-custodian__cloud-custodian-6689
[ { "changes": { "added_entities": [ "c7n/resources/kinesis.py:KinesisAnalyticsAppV2.augment", "c7n/resources/kinesis.py:KinesisAnalyticsAppV2Delete.process" ], "added_modules": [ "c7n/resources/kinesis.py:KinesisAnalyticsAppV2", "c7n/resources/kinesis.py:KinesisA...
cloud-custodian/cloud-custodian
097a06f45b00781be9687fa08387e64c866c1ef6
Add support for Kinesis Analytics V2 **Is your feature request related to a problem? Please describe.** Make sure all kinesis analytics services are in a private subnet **Describe the solution you'd like** Add a new resource type for KinesisAnalyticsV2 including tagging, delete and subnet filter. Link to boto3 doc...
diff --git a/c7n/resources/kinesis.py b/c7n/resources/kinesis.py index e54333e6e..cdaf8e0b4 100644 --- a/c7n/resources/kinesis.py +++ b/c7n/resources/kinesis.py @@ -7,6 +7,7 @@ from c7n.manager import resources from c7n.filters.kms import KmsRelatedFilter from c7n.query import ConfigSource, DescribeSource, QueryResou...
cloud-custodian__cloud-custodian-6806
[ { "changes": { "added_entities": [ "c7n/resources/code.py:CodeDeployApplication.augment", "c7n/resources/code.py:CodeDeployApplication.get_arns", "c7n/resources/code.py:DeleteApplication.process", "c7n/resources/code.py:DescribeDeploymentGroup.get_query", "c7n/resou...
cloud-custodian/cloud-custodian
e8a5428ec1885d264b2c9a94261ab650471a5b7e
Add support for CodeDeploy **Is your feature request related to a problem? Please describe.** Yes, we would like to make sure all our deployments using CodeDeploy are going through whitelisted set of S3 buckets **Describe the solution you'd like** Add support of CodeDeploy and use ValueFilter to enforce usage of w...
diff --git a/c7n/resources/code.py b/c7n/resources/code.py index 02330c40b..a7086d170 100644 --- a/c7n/resources/code.py +++ b/c7n/resources/code.py @@ -6,9 +6,11 @@ import jmespath from c7n.actions import BaseAction from c7n.filters.vpc import SubnetFilter, SecurityGroupFilter, VpcFilter from c7n.manager import res...
cloud-custodian__cloud-custodian-6814
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": null, "edited_modules": [ "c7n/resources/directconnect.py:DirectConnect" ] }, "file": "c7n/resources/directconnect.py" }, { "changes": { "added_entities": null, "add...
cloud-custodian/cloud-custodian
ab58323f8861819e54a8944a637d4bbe00b66919
rds-snapshot policies in lambda execution mode describe ALL rds snapshots for each resource, causing throttling and timeouts **Describe the bug** See https://github.com/cloud-custodian/cloud-custodian/blob/master/c7n/resources/rds.py#L984 The `rds-snapshot` resource has `enum_spec` making a boto call to `describe_db_...
diff --git a/c7n/resources/directconnect.py b/c7n/resources/directconnect.py index d64989202..99eef4878 100644 --- a/c7n/resources/directconnect.py +++ b/c7n/resources/directconnect.py @@ -14,6 +14,7 @@ class DirectConnect(QueryResourceManager): id = 'connectionId' name = 'connectionName' fil...
cloud-custodian__cloud-custodian-6827
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "c7n/resources/awslambda.py:LayerCrossAccount.process" ], "edited_modules": [ "c7n/resources/awslambda.py:LayerCrossAccount" ] }, "file": "c7n/resources/awslambda.py" ...
cloud-custodian/cloud-custodian
c9822b0206e98dabad18f623891cd4d73f0629d2
AWS: Lambda Layer + Cross-Account filter the bug: `botocore.errorfactory.ResourceNotFoundException: An error occurred (ResourceNotFoundException) when calling the GetLayerVersionPolicy operation: No policy is associated with the given resource` it looks like custodian is not able to make a GetLayerVersionPolicy API...
diff --git a/c7n/resources/awslambda.py b/c7n/resources/awslambda.py index b053ccfb7..f2c2b7742 100644 --- a/c7n/resources/awslambda.py +++ b/c7n/resources/awslambda.py @@ -644,10 +644,16 @@ class LayerCrossAccount(CrossAccountAccessFilter): def process(self, resources, event=None): client = local_session...
cloud-custodian__cloud-custodian-6983
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "c7n/resources/datapipeline.py:_datapipeline_info" ], "edited_modules": [ "c7n/resources/datapipeline.py:_datapipeline_info" ] }, "file": "c7n/resources/datapipeline.py"...
cloud-custodian/cloud-custodian
8ebd4e781205379fcf2736d283768f6b889defbb
datapipeline resource error while using CLI 0.9.13 ### Describe the bug When running a policy to set tags on the AWS data pipeline resource using custodian CLI version 0.9.13 it results in an error. ### What did you expect to happen? I expected the policy to work successfully and tag datapipeline resources found by ...
diff --git a/c7n/resources/datapipeline.py b/c7n/resources/datapipeline.py index 16deff665..ee2bbe3b3 100644 --- a/c7n/resources/datapipeline.py +++ b/c7n/resources/datapipeline.py @@ -66,6 +66,7 @@ def _datapipeline_info(pipes, session_factory, executor_factory, retry): for pipe_desc in results['pipelineDes...
cloud-custodian__cloud-custodian-7466
[ { "changes": { "added_entities": [ "c7n/resources/sqs.py:DeadLetterFilter.process" ], "added_modules": [ "c7n/resources/sqs.py:DeadLetterFilter" ], "edited_entities": null, "edited_modules": null }, "file": "c7n/resources/sqs.py" } ]
cloud-custodian/cloud-custodian
030fb948a443d068227870ac218419a6a799d6d5
Add a way to filter out dead-letter-queues from list of SQS queues ### Describe the feature We are looking [for](url) a way to cleanup our unused AWS SQS queues. We have a policy that filters down to queues that have not been used in the past year. Now we need to be able to filter out dead-letter-queues (DLQs) from th...
diff --git a/c7n/resources/sqs.py b/c7n/resources/sqs.py index 606d1e090..c910d51cc 100644 --- a/c7n/resources/sqs.py +++ b/c7n/resources/sqs.py @@ -6,6 +6,7 @@ import json from c7n.actions import RemovePolicyBase, ModifyPolicyBase from c7n.filters import CrossAccountAccessFilter, MetricsFilter +from c7n.filters.co...
cloud-custodian__cloud-custodian-7485
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "c7n/resources/s3.py:Lifecycle.process_bucket" ], "edited_modules": [ "c7n/resources/s3.py:Lifecycle" ] }, "file": "c7n/resources/s3.py" } ]
cloud-custodian/cloud-custodian
45469d26c8afda1e0217e5e016a5cae70372e8aa
S3 bucket configure-lifecycle action ### Describe the bug A lot of our legacy accounts have pretty old lifecycle rules set on them. When trying to get rid of them, via custodian, we're running into this error ``` if rule['ID'] == existing_rule['ID']: TypeError: 'NoneType' object is not subscriptable 2022-06-09...
diff --git a/c7n/resources/s3.py b/c7n/resources/s3.py index 97e3c9b20..7422b340c 100644 --- a/c7n/resources/s3.py +++ b/c7n/resources/s3.py @@ -3113,6 +3113,8 @@ class Lifecycle(BucketActionBase): config = (bucket.get('Lifecycle') or {}).get('Rules', []) for rule in self.data['rules']: f...
cloud-custodian__cloud-custodian-7570
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "c7n/structure.py:StructureParser.validate_policy" ], "edited_modules": [ "c7n/structure.py:StructureParser" ] }, "file": "c7n/structure.py" } ]
cloud-custodian/cloud-custodian
a54e95d0c8a5cca6fc2be0d3ac7c2fa1b962d360
NoneType Issue I dropped a yaml file into a new OU/SubOU and its not working, though it works in other OUs just fine. Nothing was changed in the file but I am still getting this error, not sure why. ``` Traceback (most recent call last): File "/root/.pyenv/versions/3.9.12/bin/custodian", line 8, in <module> ...
diff --git a/c7n/structure.py b/c7n/structure.py index 3f6ec12d0..d9f72901f 100644 --- a/c7n/structure.py +++ b/c7n/structure.py @@ -66,7 +66,7 @@ class StructureParser: 'policy:%s must use a list for filters found:%s' % ( p['name'], type(p['filters']).__name__))) element_...
cloud-custodian__cloud-custodian-7575
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "c7n/ctx.py:ExecutionContext.__exit__", "c7n/ctx.py:ExecutionContext.get_metadata" ], "edited_modules": [ "c7n/ctx.py:ExecutionContext" ] }, "file": "c7n/ctx.py"...
cloud-custodian/cloud-custodian
7ab506bedcb45df17eadffd1c4632d1b61595da5
Using `config-rule` mode with `aws.kinesis` resource results in `KeyError: 'StreamName'` ### Describe the bug When upgrading from [`0.9.12`](https://github.com/cloud-custodian/cloud-custodian/releases/tag/0.9.12.0) to [`0.9.16`](https://github.com/cloud-custodian/cloud-custodian/releases/tag/0.9.16.0), it is suggest...
diff --git a/c7n/ctx.py b/c7n/ctx.py index c3fbd1631..94c8e6f47 100644 --- a/c7n/ctx.py +++ b/c7n/ctx.py @@ -11,7 +11,8 @@ from c7n.output import ( log_outputs, metrics_outputs, sys_stats_outputs, - tracer_outputs) + tracer_outputs, +) from c7n.utils import reset_session_cache, dumps, local_sess...
cloud-custodian__cloud-custodian-7622
[ { "changes": { "added_entities": [ "c7n/resources/cw.py:ValidEventRuleTargetFilter.filter_unsupported_resources" ], "added_modules": null, "edited_entities": [ "c7n/resources/cw.py:ValidEventRuleTargetFilter.process" ], "edited_modules": [ "c7n/resourc...
cloud-custodian/cloud-custodian
7c999859bee57278534eb7104974a26e7388e928
Error using event-rule invalid-targets filter ### Describe the bug Attempting to clean up event rules with invalid targets, c7n throws an error "TypeError: argument of type 'NoneType' is not iterable" ### What did you expect to happen? run the policy without crashing ### Cloud Provider Amazon Web Services (AWS) ...
diff --git a/c7n/resources/cw.py b/c7n/resources/cw.py index e932d5adc..1baf1ea89 100644 --- a/c7n/resources/cw.py +++ b/c7n/resources/cw.py @@ -194,6 +194,19 @@ class ValidEventRuleTargetFilter(ChildResourceFilter): ) permissions = ('events:ListTargetsByRule',) + supported_resources = ( + "aws.sq...
cloud-custodian__cloud-custodian-7702
[ { "changes": { "added_entities": [ "c7n/resources/dlm.py:DLMPolicy.augment", "c7n/resources/dlm.py:DLMPolicy.get_arns", "c7n/resources/dlm.py:TagDLMPolicy.process_resource_set", "c7n/resources/dlm.py:DLMPolicyRemoveTag.process_resource_set" ], "added_modules": [...
cloud-custodian/cloud-custodian
072a35c041a51cc0d61bd1768cda538a1d96331e
Incorrect parsing of Data LifeCycle Manager policy tags ### Describe the bug When running a dlm policy that uses tags in the filter, get the error: AttributeError: 'str' object has no attribute 'get' ### What did you expect to happen? Expected c7n to filter the resources based on given tag values. ### Cloud Provi...
diff --git a/c7n/resources/dlm.py b/c7n/resources/dlm.py index 72150987f..59dacc3b1 100644 --- a/c7n/resources/dlm.py +++ b/c7n/resources/dlm.py @@ -2,6 +2,8 @@ # SPDX-License-Identifier: Apache-2.0 from c7n.manager import resources from c7n.query import QueryResourceManager, TypeInfo +from c7n.tags import Tag, Remo...
cloud-custodian__cloud-custodian-7705
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": null, "edited_modules": [ "c7n/filters/metrics.py:MetricsFilter" ] }, "file": "c7n/filters/metrics.py" }, { "changes": { "added_entities": [ "c7n/resources/ecr.py:...
cloud-custodian/cloud-custodian
ff31991738572223681df76c99b0ac17b02eb049
Add ECR metrics filter support ### Describe the feature ECR metrics are now available https://aws.amazon.com/about-aws/whats-new/2022/01/amazon-ecr-monitor-repository-pull-statistics/ metric: RepositoryPullCount ### Extra information or context https://docs.aws.amazon.com/AmazonECR/latest/userguide/ecr-r...
diff --git a/c7n/filters/metrics.py b/c7n/filters/metrics.py index f8d2c075c..9d89dd9d0 100644 --- a/c7n/filters/metrics.py +++ b/c7n/filters/metrics.py @@ -103,6 +103,7 @@ class MetricsFilter(Filter): 'cloudsearch': 'AWS/CloudSearch', 'dynamodb': 'AWS/DynamoDB', 'ecs': 'AWS/ECS', + 'e...
cloud-custodian__cloud-custodian-7793
[ { "changes": { "added_entities": [ "c7n/resources/rds.py:ParameterFilter.handle_paramgroup_cache" ], "added_modules": null, "edited_entities": [ "c7n/resources/rds.py:ParameterFilter.process" ], "edited_modules": [ "c7n/resources/rds.py:ParameterFilter...
cloud-custodian/cloud-custodian
8ab58b12587752bddf6c4087bbfc7f6e1a8e5ab9
sqlkvcache errors: AttributeError: __enter__ and sqlite3.InterfaceError: Error binding parameter 1 - probably unsupported type. ### Describe the bug ```AttributeError: __enter__``` ### What did you expect to happen? I expected 2 + 2 to equal 4, but instead 2 + 2 equaled 6! ### Cloud Provider Amazon Web S...
diff --git a/c7n/resources/rds.py b/c7n/resources/rds.py index 7192943ce..b9df78826 100644 --- a/c7n/resources/rds.py +++ b/c7n/resources/rds.py @@ -1632,31 +1632,35 @@ class ParameterFilter(ValueFilter): return ret_val + def handle_paramgroup_cache(self, client, paginator, param_groups): + pgcac...
cloud-custodian__cloud-custodian-7822
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "c7n/resources/sqs.py:DescribeQueue.augment", "c7n/resources/sqs.py:SetEncryption.process", "c7n/resources/sqs.py:SetEncryption.process_queue" ], "edited_modules": [ "...
cloud-custodian/cloud-custodian
f420dc5435062234eab797bcbd1b3474c73f8da9
SQS Set-Encryption Not Standard ### Describe the bug When setting encryption via KMS for other services, you can use the default alias: `alias/aws/*service*` . This means for RDS, EBS, Lambda, EFS, S3, and others, when using the set-encryption action and use the traditional default KMS alias key as mentioned above. Fo...
diff --git a/c7n/resources/sqs.py b/c7n/resources/sqs.py index eb180ddf0..d628c661d 100644 --- a/c7n/resources/sqs.py +++ b/c7n/resources/sqs.py @@ -3,6 +3,7 @@ from botocore.exceptions import ClientError import json +import re from c7n.actions import RemovePolicyBase, ModifyPolicyBase from c7n.filters import C...
cloud-custodian__cloud-custodian-7826
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "c7n/filters/metrics.py:MetricsFilter.validate", "c7n/filters/metrics.py:MetricsFilter.process_resource_set" ], "edited_modules": [ "c7n/filters/metrics.py:MetricsFilter" ...
cloud-custodian/cloud-custodian
92b94b8ebc82307be5717894b6a2712f9c7e207c
Support percentile statistics in CloudWatch metrics filter ### Describe the feature I would like to be able to use percentile statistics (like p99) in the [AWS metrics filter](https://cloudcustodian.io/docs/aws/resources/aws-common-filters.html?highlight=metric#metrics). For example, I want to be able to write a ...
diff --git a/c7n/filters/metrics.py b/c7n/filters/metrics.py index 9d89dd9d0..2e3760adc 100644 --- a/c7n/filters/metrics.py +++ b/c7n/filters/metrics.py @@ -3,6 +3,8 @@ """ CloudWatch Metrics suppport for resources """ +import re + from collections import namedtuple from concurrent.futures import as_completed fro...
cloud-custodian__cloud-custodian-7975
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "c7n/utils.py:DateTimeEncoder.default" ], "edited_modules": [ "c7n/utils.py:DateTimeEncoder" ] }, "file": "c7n/utils.py" } ]
cloud-custodian/cloud-custodian
63bed288fc0deeb144c9cffc2a10b56977d4539b
"{now}" Generating Exception When Running With 0.9.19 ### Describe the bug We utilize a policy to track Cloud Custodian evaluation of resources, essentially to give a buffer upstream before an action is taken again. To track this, we use the `{now}` clause as a value for a tracking tag. See attached policy. When ru...
diff --git a/c7n/utils.py b/c7n/utils.py index 500795674..0ca7a876f 100644 --- a/c7n/utils.py +++ b/c7n/utils.py @@ -213,6 +213,8 @@ class DateTimeEncoder(json.JSONEncoder): def default(self, obj): if isinstance(obj, datetime): return obj.isoformat() + if isinstance(obj, FormatDate): +...
cloud-custodian__cloud-custodian-7996
[ { "changes": { "added_entities": [ "c7n/resources/hsm.py:DescribeCloudHSMCluster.get_resources", "c7n/resources/hsm.py:DescribeCloudHSMCluster.augment" ], "added_modules": [ "c7n/resources/hsm.py:DescribeCloudHSMCluster" ], "edited_entities": null, "ed...
cloud-custodian/cloud-custodian
4aafc71a3399762f64e84bc6ca7c7c82e7c7fbbd
aws - cloudhsm-cluster policies failing in event mode ### Describe the bug When running a cloudhsm cluster policy in event mode, there's a traceback that pops up. I suspect it's happening due to an api change on the AWS side. ### What did you expect to happen? I expected 2 + 2 to equal 4, but instead 2 + 2 equaled...
diff --git a/c7n/resources/hsm.py b/c7n/resources/hsm.py index fa7dfbc77..55f3a6d2a 100644 --- a/c7n/resources/hsm.py +++ b/c7n/resources/hsm.py @@ -2,13 +2,27 @@ # SPDX-License-Identifier: Apache-2.0 from c7n.exceptions import ClientError from c7n.manager import resources -from c7n.query import QueryResourceManager...
cloud-custodian__cloud-custodian-8113
[ { "changes": { "added_entities": [ "c7n/resources/account.py:AccountOrganization.get_org_info", "c7n/resources/account.py:AccountOrganization.process" ], "added_modules": [ "c7n/resources/account.py:AccountOrganization" ], "edited_entities": null, "edi...
cloud-custodian/cloud-custodian
2bf18eaeae3c69ab286bc61740561b3ab777d09b
AWS Account - Add organization-member filter ### Describe the feature I need to be able to check if an AWS account is part of an organization for a compliance check. I would like a filter added to the aws.account resource to do this. The API to check if an account is part of an organization is ```response = client.de...
diff --git a/c7n/resources/account.py b/c7n/resources/account.py index 1a422b5c0..6b6cdbb27 100644 --- a/c7n/resources/account.py +++ b/c7n/resources/account.py @@ -100,6 +100,71 @@ class AccountCredentialReport(CredentialReport): return results +@filters.register('organization') +class AccountOrganization...
cloud-custodian__cloud-custodian-8152
[ { "changes": { "added_entities": [ "c7n/resources/secretsmanager.py:DeleteSecretsManager.process", "c7n/resources/secretsmanager.py:SecretsManagerRemovePolicyStatement.validate", "c7n/resources/secretsmanager.py:SecretsManagerRemovePolicyStatement.process", "c7n/resources/s...
cloud-custodian/cloud-custodian
bce459224bc4656d4b026f3007b68d85580f2c77
Secrets Manager - Add delete Secret action ### Describe the feature I want to be able to delete old secrets that haven't been accessed in over 90 days as a security policy to eliminate risk. There currently is no action for delete but there is a boto3 API for it - https://boto3.amazonaws.com/v1/documentation/api/lates...
diff --git a/c7n/resources/secretsmanager.py b/c7n/resources/secretsmanager.py index 0a08fbfa6..38533a63e 100644 --- a/c7n/resources/secretsmanager.py +++ b/c7n/resources/secretsmanager.py @@ -1,6 +1,11 @@ # Copyright The Cloud Custodian Authors. # SPDX-License-Identifier: Apache-2.0 +import json +import jmespath fr...
cloudant__python-cloudant-262
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "src/cloudant/__init__.py:cloudant_bluemix" ], "edited_modules": [ "src/cloudant/__init__.py:cloudant_bluemix" ] }, "file": "src/cloudant/__init__.py" }, { "chan...
cloudant/python-cloudant
4c285be19cf4220b9d2dd6970d31a3a9c830d442
Implement method to create Cloudant client from VCAP services environment variable Add an additional method to parse a `VCAP_SERVICES` environment variable allowing easy binding of a service instance to a Cloud Foundry application. Example `VCAP_SERVICES` variable is JSON: ```json { "cloudantNoSQLDB": [ ...
diff --git a/src/cloudant/__init__.py b/src/cloudant/__init__.py index 1ed58b4..caed558 100644 --- a/src/cloudant/__init__.py +++ b/src/cloudant/__init__.py @@ -63,19 +63,21 @@ def cloudant(user, passwd, **kwargs): cloudant_session.disconnect() @contextlib.contextmanager -def cloudant_bluemix(bm_service_name=No...
cloudant__python-cloudant-306
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": null, "edited_modules": null }, "file": "src/cloudant/_2to3.py" }, { "changes": { "added_entities": [ "src/cloudant/__init__.py:cloudant_iam" ], "added_modules": [ ...
cloudant/python-cloudant
56795a119f7f8b884b001f9b2f740d67d550ea41
Support IAM integration Cloudant client libraries need to be able to exchange an IAM API key for an IAM access token. The user of the client library provides the API key. The access token is obtained by calling an IAM endpoint. The access token is time limited, like a cookie, so refresh logic also needs writing.
diff --git a/docs/getting_started.rst b/docs/getting_started.rst index 17fe3e6..f4ce130 100644 --- a/docs/getting_started.rst +++ b/docs/getting_started.rst @@ -88,6 +88,30 @@ following statements hold true: connect=True, auto_renew=True) + +********************************...
cloudant__python-cloudant-332
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "src/cloudant/__init__.py:cloudant_bluemix" ], "edited_modules": [ "src/cloudant/__init__.py:cloudant_bluemix" ] }, "file": "src/cloudant/__init__.py" }, { "chan...
cloudant/python-cloudant
e1b5a3291a0759be6d2350e9626a0f6e6e3c657b
Cloudant.bluemix does not work on IBM Bluemix Dedicated service Please include the following information in your ticket. - Cloudant (python-cloudant) version(s) that are affected by this issue. *2.6.0* - Python version *3.6.2* - A small code sample that demonstrates the issue. *See below* IBM Bluemix Dedicat...
diff --git a/CHANGES.rst b/CHANGES.rst index eab0557..c683e44 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -1,6 +1,7 @@ Unreleased ========== - [NEW] Added ``Result.all()`` convenience method. +- [NEW] Allow ``service_name`` to be specified when instantiating from a Bluemix VCAP_SERVICES environment variable. - [I...
cloudant__python-cloudant-365
[ { "changes": { "added_entities": [ "src/cloudant/_client_session.py:IAMSession.get_api_key" ], "added_modules": null, "edited_entities": null, "edited_modules": [ "src/cloudant/_client_session.py:IAMSession" ] }, "file": "src/cloudant/_client_session.p...
cloudant/python-cloudant
981731500a3a11a2e49c5894d6946e65cd04b113
Support IAM authentication in replication documents. _Parent Issue: https://github.com/cloudant/cloudant-sync/issues/31_ Currently `db.creds['basic_auth']` returns `None` when using an IAM client . As a result, all replication documents created using IAM clients _don't_ contain source/target database credentials. ...
diff --git a/CHANGES.md b/CHANGES.md index 27f5b9b..ab805d4 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,7 +1,8 @@ # Unreleased -- [NEW] Moved `create_query_index` and other query related methods to `CouchDatabase` as the `_index`/`_find` API is available in CouchDB 2.x. - [NEW] Added functionality to test if a k...
cloudant__python-cloudant-412
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "src/cloudant/_client_session.py:ClientSession.info", "src/cloudant/_client_session.py:CookieSession.request", "src/cloudant/_client_session.py:IAMSession._get_access_token" ], ...
cloudant/python-cloudant
cdffb88bfb2348e1907f6ccde1a71f9ff6e42c72
Document fetch fails when uses its default json decoder and module simplejson is present ## Bug Description `Document.fetch()` fails when it uses its default json decoder and `simplejson` is in the environment. ### Steps to reproduce and code sample to demonstrate the issue To reproduce, just run a simple documen...
diff --git a/CHANGES.md b/CHANGES.md index e1ddefd..47e621f 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,3 +1,9 @@ +# Unreleased + +- [FIXED] Unexpected keyword argument errors when using the library with the + `simplejson` module present in the environment caused by `requests` preferentially + loading it over the s...
cloudevents__sdk-python-165
[ { "changes": { "added_entities": [ "cloudevents/http/event.py:CloudEvent.get" ], "added_modules": null, "edited_entities": null, "edited_modules": [ "cloudevents/http/event.py:CloudEvent" ] }, "file": "cloudevents/http/event.py" } ]
cloudevents/sdk-python
aee384bf43544280daeb7f380a32e255b67e2356
CloudEvent class needs better access to cloudevent fields ## Expected Behavior ```python event = CloudEvent(headers, data) event.specversion ``` ## Actual Behavior ```python event = CloudEvent(headers, data) event['specversion'] ``` ## Steps to Reproduce the Problem ```python from cloudevents.sdk import...
diff --git a/cloudevents/http/event.py b/cloudevents/http/event.py index 7cf10fa..f39124f 100644 --- a/cloudevents/http/event.py +++ b/cloudevents/http/event.py @@ -77,6 +77,22 @@ class CloudEvent: def __getitem__(self, key): return self._attributes[key] + def get( + self, key: str, default: t...
cloudevents__sdk-python-172
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "cloudevents/http/event.py:CloudEvent.__eq__" ], "edited_modules": [ "cloudevents/http/event.py:CloudEvent" ] }, "file": "cloudevents/http/event.py" } ]
cloudevents/sdk-python
f39b964209babfbcd6a17502b9873cd87df7e6f0
__eq__ operator raises attribute error on non-cloudevent values ## Expected Behavior Given a non-cloudevent value will return false ## Actual Behavior raises an `AttributeError` ## Steps to Reproduce the Problem 1. create an event 2. compare it to an integer ```python from cloudevents.http import CloudE...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 3e1891b..06c9f29 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Added `.get` accessor for even properties ([#165]) - Added type information for all event member functions (...
cloudevents__sdk-python-229
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": null, "edited_modules": null }, "file": "cloudevents/__init__.py" }, { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "cloudevents/...
cloudevents/sdk-python
8ada7d947bcaf00ce668ee7b6e7e8b1128ddb13b
to_json on a pydantic.CloudEvent does not include extension values ## Expected Behavior When running the following: ```python from cloudevents.conversion import to_json from cloudevents.http import CloudEvent as HttpCloudEvent from cloudevents.pydantic import CloudEvent as PydanticCloudEvent data = {"data-key":...
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 1169a0a..15ab654 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -11,12 +11,12 @@ repos: - id: isort args: [ "--profile", "black", "--filter-files" ] - repo: https://github.com/psf/black - rev: 23.9.1 + r...
cloudevents__sdk-python-232
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "cloudevents/kafka/conversion.py:to_binary", "cloudevents/kafka/conversion.py:from_binary", "cloudevents/kafka/conversion.py:to_structured", "cloudevents/kafka/conversion.py:from_...
cloudevents/sdk-python
11520e35e134b9aa749859981d100e27fe6a0e5c
`cloudevents.kafka.to_binary` checks for a `content-type` attribute, which would not be a valid attribute name https://github.com/cloudevents/sdk-python/blob/ef982743b68866abbe0049dbffac76f5a2e3efb4/cloudevents/kafka/conversion.py#L90 This will call `CloudEvent._get_attributes()["content-type"]` but a `content-type`...
diff --git a/cloudevents/kafka/conversion.py b/cloudevents/kafka/conversion.py index 832594d..97c355f 100644 --- a/cloudevents/kafka/conversion.py +++ b/cloudevents/kafka/conversion.py @@ -87,10 +87,10 @@ def to_binary( ) headers = {} - if event["content-type"]: - headers["content-type"] = eve...
cloudevents__sdk-python-71
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "cloudevents/sdk/event/base.py:BaseEvent.MarshalJSON" ], "edited_modules": [ "cloudevents/sdk/event/base.py:BaseEvent" ] }, "file": "cloudevents/sdk/event/base.py" } ]
cloudevents/sdk-python
0aa01ba5c6eb9c2bc6a583104068a87ca9d66708
Structured extensions aren't serialized top level in to_http result ## Actual Behavior ```python from cloudevents.sdk.http_events import CloudEvent attributes = {"source": "<source-url>", "type": "com.issue.extensions", "example-extension": "ext1"} data = 'Hello' event = CloudEvent(attributes, data) headers, body...
diff --git a/cloudevents/sdk/event/base.py b/cloudevents/sdk/event/base.py index 791eb67..2004dbb 100644 --- a/cloudevents/sdk/event/base.py +++ b/cloudevents/sdk/event/base.py @@ -201,6 +201,9 @@ class BaseEvent(EventGetterSetter): props["data_base64"] = base64.b64encode(data).decode("ascii") ...
cloudevents__sdk-python-98
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": null, "edited_modules": null }, "file": "cloudevents/__init__.py" }, { "changes": { "added_entities": [ "cloudevents/http/event.py:CloudEvent.__eq__" ], "added_modul...
cloudevents/sdk-python
72b10bbc7f402bbd57c412b68b6f6e4e4cf87622
CloudEvent needs __eq__ overload to be supported ## Expected Behavior ```python event = from_http(request.get_data(), request.headers) event1 = from_http(request.get_data(), request.headers) assert event == event1 ``` I would expect this to pass as we are passing in the same fields into both objects ## Actual ...
diff --git a/CHANGELOG.md b/CHANGELOG.md index aa8f3a1..8a66cf3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Vers...
cloudfoundry-community__cf-python-client-181
[ { "changes": { "added_entities": [ "main/cloudfoundry_client/operations/push/validation/manifest.py:ManifestReader._convert_size_fields" ], "added_modules": null, "edited_entities": [ "main/cloudfoundry_client/operations/push/validation/manifest.py:ManifestReader._validat...
cloudfoundry-community/cf-python-client
3334af9bdeec36a542eaeff81adcb71a98567cd5
Push only converts memory but not disk_quota Hi, I get the error "disk_quota, Error: Expected instance of Integer, given an instance of String" because the code only converts memory values: https://github.com/cloudfoundry-community/cf-python-client/blob/3334af9bdeec36a542eaeff81adcb71a98567cd5/main/cloudfoundry_cli...
diff --git a/main/cloudfoundry_client/operations/push/validation/manifest.py b/main/cloudfoundry_client/operations/push/validation/manifest.py index 94c93dc..326bfcf 100644 --- a/main/cloudfoundry_client/operations/push/validation/manifest.py +++ b/main/cloudfoundry_client/operations/push/validation/manifest.py @@ -6,7...
cloudinary__pycloudinary-157
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "cloudinary/uploader.py:upload_large" ], "edited_modules": [ "cloudinary/uploader.py:upload_large" ] }, "file": "cloudinary/uploader.py" }, { "changes": { ...
cloudinary/pycloudinary
bce0e855fef7510397999075654d7c3f059bfee0
Uploading large files from a stream Hello, I've been using cloudinary for quite some time and it's been great. Thanks. Now, I need to be able to upload large files (generated reports) that might go beyond 100 MB. According to docs, I need to use the [upload_large](http://cloudinary.com/documentation/upload_images...
diff --git a/cloudinary/uploader.py b/cloudinary/uploader.py index 0f58884..66342e5 100644 --- a/cloudinary/uploader.py +++ b/cloudinary/uploader.py @@ -1,14 +1,12 @@ # Copyright Cloudinary import json -import re import socket -from os.path import getsize +import certifi from six import string_types from urllib3...
cloudpassage__cloudpassage-halo-python-sdk-195
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "cloudpassage/sanity.py:validate_object_id" ], "edited_modules": [ "cloudpassage/sanity.py:validate_object_id" ] }, "file": "cloudpassage/sanity.py" } ]
cloudpassage/cloudpassage-halo-python-sdk
1f904b7602bfbc94bb5dae5b91299c9752f3b88c
New ID format fails validation Issue IDs for `/v3/issues` have a format like this:`be35b286-a36c-11e9-bb19-71dc777df26f` This doesn't pass object ID validation.
diff --git a/cloudpassage/sanity.py b/cloudpassage/sanity.py index bb4bd7c..ec5b497 100644 --- a/cloudpassage/sanity.py +++ b/cloudpassage/sanity.py @@ -20,7 +20,7 @@ def validate_object_id(object_id): """ - rex = re.compile('^[A-Za-z0-9]+$') + rex = re.compile('^[A-Za-z0-9-]+$') if is_it_a_string(o...
cloudtools__stacker-646
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "stacker/lookups/handlers/file.py:_parameterize_string" ], "edited_modules": [ "stacker/lookups/handlers/file.py:_parameterize_string" ] }, "file": "stacker/lookups/hand...
cloudtools/stacker
0a5652a7580232a701b6abb984537b941a446ee0
file lookup returning <type 'unicode'> where it previously returned <class 'troposphere.AWSHelperFn'> As of 1.4.0, the use of the `${file parameterized }` lookup no longer works with blueprints using variable type of `troposphere.AWSHelperFn`. This was working in previous versions - most recently 1.3.0. ### Error ...
diff --git a/stacker/lookups/handlers/file.py b/stacker/lookups/handlers/file.py index 2ea8893..a57af66 100644 --- a/stacker/lookups/handlers/file.py +++ b/stacker/lookups/handlers/file.py @@ -136,7 +136,7 @@ def _parameterize_string(raw): s_index = match.end() if not parts: - return raw + ...
cloudtools__stacker-657
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "stacker/lookups/handlers/kms.py:handler" ], "edited_modules": [ "stacker/lookups/handlers/kms.py:handler" ] }, "file": "stacker/lookups/handlers/kms.py" }, { "c...
cloudtools/stacker
cd379d01f089c226e347c256abe75b90268ae144
Update of a Raw Blueprint with Transform fails Hi, I believe I have discovered a bug in Stacker. The bug seems to be triggered by trying to update a raw template which uses Transforms. I'm using master at the time of this report (d1353b3a942731ada1532f0e1422d64673988c1a) with python 3.6.5 on macOS 10.13.6. Stacker i...
diff --git a/examples/cross-account/stacker.yaml b/examples/cross-account/stacker.yaml index 123a509..6c39662 100644 --- a/examples/cross-account/stacker.yaml +++ b/examples/cross-account/stacker.yaml @@ -14,7 +14,5 @@ stacks: profile: master template_path: templates/stacker-bucket.yaml variables: - ...
clueboard__milc-31
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "milc/attrdict.py:AttrDict.__setitem__", "milc/attrdict.py:AttrDict.__delitem__", "milc/attrdict.py:SparseAttrDict.__getitem__" ], "edited_modules": [ "milc/attrdict.p...
clueboard/milc
b20f3191a5977b8ad9eab633cae4f3118a09189a
Bug: Can't set config values via attribute Test case: ``` import milc.configuration config = milc.configuration.Configuration() config.a.a = True print(config['a']['a']) ``` Expected result: `True` Actual result: `None`
diff --git a/milc/attrdict.py b/milc/attrdict.py index 0ac22fa..66b1f90 100644 --- a/milc/attrdict.py +++ b/milc/attrdict.py @@ -34,12 +34,10 @@ class AttrDict(object): return self._data[key] def __setitem__(self, key, value): - self.__dict__[key] = value self._data[key] = value + ...
cluster311__Anexo2-11
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "anexo2/docs.py:Anexo2.post_process_data", "anexo2/docs.py:Anexo2.get_schema" ], "edited_modules": [ "anexo2/docs.py:Anexo2" ] }, "file": "anexo2/docs.py" }, ...
cluster311/Anexo2
4c56bcdf51428bb5488b48a5875e4c9904b1aab6
[BUG] Datos de la empresa deberían poder estar vacíos Anexo2 debe poder imprimirse sin que se le pasen los datos de la empresa donde trabaja el paciente, ya que estos datos no siempre existen o son provistos.
diff --git a/anexo2/docs.py b/anexo2/docs.py index fbcb137..3091c59 100644 --- a/anexo2/docs.py +++ b/anexo2/docs.py @@ -89,13 +89,19 @@ class Anexo2: fva = data['obra_social']['fecha_de_vencimiento']['anio'] data['obra_social']['__fva'] = self._str_to_boxes(txt=fva, total_boxes=4, fill_with='') ...
cluster311__Anexo2-7
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "anexo2/docs.py:Anexo2.get_schema" ], "edited_modules": [ "anexo2/docs.py:Anexo2" ] }, "file": "anexo2/docs.py" }, { "changes": { "added_entities": null, ...
cluster311/Anexo2
e7b49522307b59085631c0873496b49b49f77471
Agregar datos del profesional - [x] Agregar nombre, apllido y matriula ![image](https://user-images.githubusercontent.com/3237309/86297254-3336a680-bbd1-11ea-8528-b6f0898ff369.png) En el formulario impreso al pie de la firma del medico debe decir: **APELLIDO, Nombre - MP.: N° de matricula**
diff --git a/anexo2/docs.py b/anexo2/docs.py index cadc607..6a9f1eb 100644 --- a/anexo2/docs.py +++ b/anexo2/docs.py @@ -127,7 +127,14 @@ class Anexo2: 'atencion': { 'type': 'dict', 'schema': { - 'tipo': {'type': 'string', 'allowed': ['consulta', 'practi...
cneud__alto-tools-29
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "src/alto_tools/alto_tools.py:parse_arguments" ], "edited_modules": [ "src/alto_tools/alto_tools.py:parse_arguments" ] }, "file": "src/alto_tools/alto_tools.py" } ]
cneud/alto-tools
62527461abc6f2a40eeb2a5a5a0edd9112fae3ae
cli option `-x`/`--xml-encoding` might be broken I am having a hard time using the `-x`/`--xml-encoding` option on an input file encoded with ISO-8859-1. The option doesn't seem to work neither as an argument nor as a binary flag: 1. passing an encoding identifier: ```bash alto-tools -t iso8859.xml -x iso8859-1 ``` `...
diff --git a/pyproject.toml b/pyproject.toml index e301d15..9af942e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -27,6 +27,16 @@ dependencies = [ # none ] +[project.optional-dependencies] +dev = [ + 'black', + 'pytest-cov', +] + +[tool.setuptools.packages.find] +where = ['src'] + + [project.scripts] ...
coady__multimethod-23
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "multimethod/__init__.py:get_types" ], "edited_modules": [ "multimethod/__init__.py:get_types" ] }, "file": "multimethod/__init__.py" } ]
coady/multimethod
221dc1b4e11523789ef907c5426b68a46d0fe68e
Overloading with optional parameters Hi, The following example produces an error: ` class A: @multimethod def m(self, c: int, ii: Optional[int] = None): print('1', c, ii) @multimethod def m(self, ff: float): print('2', ff) obj = A() obj.m(20) ` when calling `obj.m(...
diff --git a/README.md b/README.md index 14199c2..0bb2db6 100644 --- a/README.md +++ b/README.md @@ -76,7 +76,7 @@ Dispatch resolution details: * If the `issubclass` relation is ambiguous, [mro](https://docs.python.org/3/library/stdtypes.html?highlight=mro#class.mro) position is used as a tie-breaker. * If there are...
coady__multimethod-26
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "multimethod/__init__.py:distance" ], "edited_modules": [ "multimethod/__init__.py:distance" ] }, "file": "multimethod/__init__.py" } ]
coady/multimethod
4ef8516bdf9e2dfe86297bdb676104e6b534041c
TypeError when one of the type hints is type or another metaclass Using `type` (or any other subclass of `type`, e.g. a custom metaclass) as the type hint for one of the parameters of a function of a multimethod makes the dispatch process raise a `TypeError` when calling `type.mro()` (which expects the type object as a...
diff --git a/README.md b/README.md index 4da3048..461c589 100644 --- a/README.md +++ b/README.md @@ -140,6 +140,7 @@ dev * Ignore default and keyword arguments * Resolved ambiguous `Union` types * Fixed an issue with name collision when defining a multimethod +* Resolved dispatch errors when annotating parameters wi...
coady__multimethod-9
[ { "changes": { "added_entities": [ "multimethod.py:multimethod.__doc__" ], "added_modules": null, "edited_entities": [ "multimethod.py:multimethod.__missing__" ], "edited_modules": [ "multimethod.py:multimethod" ] }, "file": "multimethod....
coady/multimethod
a3e4c49a6502659e3d31a7b944c77814523c3903
Collect docstring from registered functions Hi! I just found this library and really like it so far, but I miss having the docstring available in the tooltip when calling a multimethod in a Jupyter Notebook.
diff --git a/.travis.yml b/.travis.yml index da158e0..87b9f79 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,7 +1,6 @@ language: python python: - - 3.5 - 3.6 - 3.7 - 3.8 diff --git a/README.md b/README.md index 753a640..e2e0e4e 100644 --- a/README.md +++ b/README.md @@ -147,6 +147,9 @@ class Foo: ``` ...
cocagne__pysrp-48
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "srp/_ctsrp.py:create_salted_verification_key", "srp/_ctsrp.py:Verifier.__init__", "srp/_ctsrp.py:User.__init__" ], "edited_modules": [ "srp/_ctsrp.py:create_salted_ve...
cocagne/pysrp
1cfefbb64c4f39cde64695ac87e1a6a032e4eb1d
Support custom k value I'm trying to use this to log into a 3rd party device that has a broken SRP implementation. They use a different `k` calculation... Would it be possible to add a `k_hex` parameter to `User` to bypass the standard calculation?
diff --git a/srp/_ctsrp.py b/srp/_ctsrp.py index 7794bf1..9436728 100644 --- a/srp/_ctsrp.py +++ b/srp/_ctsrp.py @@ -353,7 +353,7 @@ def get_ngk( hash_class, ng_type, n_hex, g_hex, ctx ): -def create_salted_verification_key( username, password, hash_alg=SHA1, ng_type=NG_2048, n_hex=None, g_hex=None, salt_len=4 ):...
cocagne__pysrp-51
[ { "changes": { "added_entities": [ "srp/_ctsrp.py:Verifier._set_A", "srp/_ctsrp.py:Verifier._derive_H_AMK" ], "added_modules": null, "edited_entities": [ "srp/_ctsrp.py:Verifier.__init__", "srp/_ctsrp.py:Verifier.verify_session" ], "edited_modu...
cocagne/pysrp
4dfb111fffd671b7d97d803309fda2904e3ca1c8
public key of verifier not available before obtaining key of user In some SRP usages like Homekit protocol it is required to generate the verifier's public key before the user public key. Currently it is necessary to create a Verifier object in order to get the verifier public key and the Verifier object can be created...
diff --git a/srp/_ctsrp.py b/srp/_ctsrp.py index 9436728..98ae309 100644 --- a/srp/_ctsrp.py +++ b/srp/_ctsrp.py @@ -386,12 +386,11 @@ def create_salted_verification_key( username, password, hash_alg=SHA1, ng_type=N class Verifier (object): - def __init__(self, username, bytes_s, bytes_v, bytes_A, hash_alg=SHA...
codalab__codalab-worksheets-1566
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": null, "edited_modules": null }, "file": "codalab/lib/bundle_cli.py" }, { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "codalab/li...
codalab/codalab-worksheets
c3457243c217a187dabfffbc4f65bf9a55b5afd0
desugar_command: error concatenating 'NoneType' and 'str' ``` POST /cli/command Query params: Form params: JSON body: { "command": "cl run : :src 'python src/predict.py < valid_image_paths.csv'", "worksheet_uuid": "0x5b880b4b3bf44d56911789b4adeca28b" } Local variables: subpath=None bund...
diff --git a/codalab/lib/bundle_cli.py b/codalab/lib/bundle_cli.py index cd7ca8ff..81b85f74 100644 --- a/codalab/lib/bundle_cli.py +++ b/codalab/lib/bundle_cli.py @@ -56,7 +56,16 @@ from codalab.lib.cli_util import ( parse_target_spec, desugar_command, INSTANCE_SEPARATOR, - WORKSHEET_SEPARATOR, + A...
codalab__codalab-worksheets-1680
[ { "changes": { "added_entities": [ "codalab/model/bundle_model.py:BundleModel.get_all_host_worksheet_uuids" ], "added_modules": null, "edited_entities": [ "codalab/model/bundle_model.py:BundleModel.get_host_worksheet_uuids" ], "edited_modules": [ "coda...
codalab/codalab-worksheets
c3457243c217a187dabfffbc4f65bf9a55b5afd0
Add host_worksheets to genpath We should be able to do ``` % display table host_worksheet [bundle] ``` to show a column with a link to the host worksheet (if there is more than one, just return the first one). To do this, several things need to happen: 1) We need to have get_bundle_infos return host_worksheet (simi...
diff --git a/codalab/model/bundle_model.py b/codalab/model/bundle_model.py index 74b13f0c..5ef696fc 100644 --- a/codalab/model/bundle_model.py +++ b/codalab/model/bundle_model.py @@ -258,11 +258,40 @@ class BundleModel(object): result[row.parent_uuid].append(row.child_uuid) return result - de...
codalab__codalab-worksheets-2049
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "codalab/lib/cli_util.py:parse_key_target", "codalab/lib/cli_util.py:desugar_command" ], "edited_modules": [ "codalab/lib/cli_util.py:parse_key_target", "codalab/lib/c...
codalab/codalab-worksheets
9647ccf5032218c3a80c1d80e1465573f11f6e3b
TypeError: expected string or bytes-like object ``` Error on request by matt.downey18(0xd72e93b8f2b448fc9318d136e89e555a): POST /cli/command Query params: Form params: JSON body: { "command": "cl run evaluate.py: 0xdcf10e1da32e45ce970bbb07fd4694eb", "worksheet_uuid": "0x1fc53883bf2f432eb3bc0ae4164ee0dd"...
diff --git a/codalab/lib/cli_util.py b/codalab/lib/cli_util.py index 1ea35acc..53409e04 100644 --- a/codalab/lib/cli_util.py +++ b/codalab/lib/cli_util.py @@ -62,7 +62,8 @@ def nested_dict_get(obj, *args, **kwargs): def parse_key_target(spec): """ - Parses a keyed target spec into its key and the rest of the...
codalab__codalab-worksheets-2062
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "codalab/server/bundle_manager.py:BundleManager._get_matched_workers" ], "edited_modules": [ "codalab/server/bundle_manager.py:BundleManager" ] }, "file": "codalab/serve...
codalab/codalab-worksheets
a7a62e5848083f2f9c948bcd7969d8a8fba535f8
Supporting request-queue for both formats: tag=<X> and X When a bundle is requested to run on a specific worker, we currently use `--request-queue tag=<worker_X>` to indicate the worker that the bundle should run on. This ticket is to add support for another format: `--request-queue worker_X`.
diff --git a/codalab/server/bundle_manager.py b/codalab/server/bundle_manager.py index 1bc20140..bc81a861 100644 --- a/codalab/server/bundle_manager.py +++ b/codalab/server/bundle_manager.py @@ -676,12 +676,12 @@ class BundleManager(object): def _get_matched_workers(request_queue, workers): """ G...
codalab__codalab-worksheets-2115
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "codalab/lib/bundle_cli.py:Commands.help_text" ], "edited_modules": [ "codalab/lib/bundle_cli.py:Commands" ] }, "file": "codalab/lib/bundle_cli.py" }, { "changes...
codalab/codalab-worksheets
63326c0e289b5bee022623b1f8e0dc015f1069e6
[USER ISSUE] Multiple aliases pointing to the same bundle spec are not supported **Describe the bug** When I set two bundle dependencies with the same bundle spec but different aliases, one of them is get dropped. **Codalab Information** - *Your username*: hfang - *UUID of worksheet where problem occurred*: N/A ...
diff --git a/codalab/lib/bundle_cli.py b/codalab/lib/bundle_cli.py index 2eb40021..9527d781 100644 --- a/codalab/lib/bundle_cli.py +++ b/codalab/lib/bundle_cli.py @@ -313,7 +313,8 @@ class Commands(object): if markdown: name = HEADING_LEVEL_3 + name return '%s%s:\n...
codalab__codalab-worksheets-2166
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "codalab/server/bundle_manager.py:BundleManager._filter_and_sort_workers" ], "edited_modules": [ "codalab/server/bundle_manager.py:BundleManager" ] }, "file": "codalab/s...
codalab/codalab-worksheets
d799cf6c93654a09d87165cc16af7109fd20a819
CPU job assignment issue Currently, jobs that were requested to run on CPU workers are still being assigned to a GPU worker even with CPU workers were idle during the time of scheduling. 1. Without any dependencies specified <img width="1260" alt="Screen Shot 2020-04-13 at 10 25 17 AM" src="https://user-images.github...
diff --git a/codalab/server/bundle_manager.py b/codalab/server/bundle_manager.py index 83909a22..ee614379 100644 --- a/codalab/server/bundle_manager.py +++ b/codalab/server/bundle_manager.py @@ -475,7 +475,7 @@ class BundleManager(object): # 6. break ties randomly by a random seed. return ( ...
codalab__codalab-worksheets-2198
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "codalab/lib/bundle_cli.py:BundleCLI.do_download_command", "codalab/lib/bundle_cli.py:BundleCLI.copy_bundle" ], "edited_modules": [ "codalab/lib/bundle_cli.py:BundleCLI" ...
codalab/codalab-worksheets
d799cf6c93654a09d87165cc16af7109fd20a819
[USER ISSUE] cl wadd across instances doesn't seem to work **Describe the bug** Apologies if I'm just messing up something very simple here: ``` $ cl alias localhost: http://localhost:2900 main: https://worksheets.codalab.org stanford: http://codalab.stanford.edu $ cl work main::home-nfliu Switched to wor...
diff --git a/codalab/lib/bundle_cli.py b/codalab/lib/bundle_cli.py index e0bb8135..ae698044 100644 --- a/codalab/lib/bundle_cli.py +++ b/codalab/lib/bundle_cli.py @@ -1276,6 +1276,12 @@ class BundleCLI(object): '--output-path', help='Path to download bundle to. By default, the bundle ...
codalab__codalab-worksheets-2239
[ { "changes": { "added_entities": [ "codalab/worker/file_util.py:get_tar_version_output" ], "added_modules": [ "codalab/worker/file_util.py:get_tar_version_output" ], "edited_entities": [ "codalab/worker/file_util.py:tar_gzip_directory" ], "edited...
codalab/codalab-worksheets
3f6c44b683e3a2d8704118c6ca132a007493a809
Get rid of ._ files when uploading from a Mac Get rid of `._` files when using the tar library with `COPYFILE_DISABLE=1`.
diff --git a/codalab/worker/file_util.py b/codalab/worker/file_util.py index 1d7bb0c7..3a7703df 100644 --- a/codalab/worker/file_util.py +++ b/codalab/worker/file_util.py @@ -11,7 +11,20 @@ import bz2 from codalab.common import BINARY_PLACEHOLDER NONE_PLACEHOLDER = '<none>' -GIT_PATTERN = '.git' + +# Patterns to al...
codalab__codalab-worksheets-2525
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "codalab/lib/worksheet_util.py:interpret_items" ], "edited_modules": [ "codalab/lib/worksheet_util.py:interpret_items" ] }, "file": "codalab/lib/worksheet_util.py" }, ...
codalab/codalab-worksheets
b310c20dce110f74a2a029a5c3f2d0a11ccfaaae
Requesting too little memory for a run can cause a worker to go down Requesting as little as `10m` for a run can cause a worker to go down with the following error: ``` 2020-06-27 03:09:59,180 Cannot start Docker container: Unable to start Docker container: 500 Server Error: Internal Server Error ("OCI runtime crea...
diff --git a/codalab/lib/worksheet_util.py b/codalab/lib/worksheet_util.py index 5b3868a7..6103459c 100644 --- a/codalab/lib/worksheet_util.py +++ b/codalab/lib/worksheet_util.py @@ -767,6 +767,7 @@ def interpret_items(schemas, raw_items, db_model=None): 'status': FetchStatusSchema.get_unkn...
codalab__codalab-worksheets-2860
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "codalab/worker_manager/aws_batch_worker_manager.py:AWSBatchWorkerManager.start_worker_job" ], "edited_modules": [ "codalab/worker_manager/aws_batch_worker_manager.py:AWSBatchWorkerMa...
codalab/codalab-worksheets
d50731b304eac68a39b5dbe1548a8bb6752c823f
Add the ability to specify a group for Worker Manager Add the ability to specify a group for Worker Manager `--worker-group`. The new argument to specify a group for a worker is: ``` parser.add_argument( '--group', default=None, help='Name of the group that can run jobs on this worker' ) ```
diff --git a/codalab/worker_manager/aws_batch_worker_manager.py b/codalab/worker_manager/aws_batch_worker_manager.py index 104802de..ef5cb4d0 100644 --- a/codalab/worker_manager/aws_batch_worker_manager.py +++ b/codalab/worker_manager/aws_batch_worker_manager.py @@ -89,36 +89,7 @@ class AWSBatchWorkerManager(WorkerMana...
codalab__codalab-worksheets-2904
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "codalab/bin/bundle_manager.py:main" ], "edited_modules": [ "codalab/bin/bundle_manager.py:main" ] }, "file": "codalab/bin/bundle_manager.py" }, { "changes": { ...
codalab/codalab-worksheets
274cbd94f2436be68e111b0ab999d92724dbbfe4
Make worker check-in frequency and worker timeout configurable **Describe the bug** - Add a delay for worker check-in, which can be specified when creating a CodaLab worker - Make `WORKER_TIMEOUT` in `bundle_manager.py` configurable
diff --git a/codalab/bin/bundle_manager.py b/codalab/bin/bundle_manager.py index 59cfc4d1..108ac56f 100644 --- a/codalab/bin/bundle_manager.py +++ b/codalab/bin/bundle_manager.py @@ -13,9 +13,15 @@ def main(): type=int, default=0.5, ) + parser.add_argument( + '--worker-timeout-seconds',...
codalab__codalab-worksheets-3076
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "codalab/lib/interactive_session.py:InteractiveSession.start", "codalab/lib/interactive_session.py:InteractiveSession.get_docker_run_command", "codalab/lib/interactive_session.py:Interact...
codalab/codalab-worksheets
ae54f808964ec5bf7cc300fe09b10aa153249ae8
Run cl run --interactive as a non-root user **Describe the bug** Run `cl run --interactive` as a non-root user to match the same behavior as CodaLab worker running jobs.
diff --git a/codalab/lib/interactive_session.py b/codalab/lib/interactive_session.py index 445d4368..9ee96254 100644 --- a/codalab/lib/interactive_session.py +++ b/codalab/lib/interactive_session.py @@ -31,7 +31,7 @@ class InteractiveSession: 9. Stop and remove the interactive session container. """ - ...
codalab__codalab-worksheets-3343
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "codalab/lib/interactive_session.py:InteractiveSession.get_docker_run_command" ], "edited_modules": [ "codalab/lib/interactive_session.py:InteractiveSession" ] }, "file"...
codalab/codalab-worksheets
e900111cf4b3a86960907f3e60e258b440dda335
cl run --interactive doesn't work with cl upload --link To reproduce: ``` cl upload /u/scr/nlp --link cl run :nlp '' --interactive ``` It drops me into a docker container with `nlp` mounted, but it's empty. But if I use non-link bundles, then the contents show up just fine.
diff --git a/codalab/lib/interactive_session.py b/codalab/lib/interactive_session.py index 9ee96254..73b252be 100644 --- a/codalab/lib/interactive_session.py +++ b/codalab/lib/interactive_session.py @@ -31,7 +31,7 @@ class InteractiveSession: 9. Stop and remove the interactive session container. """ - ...
codalab__codalab-worksheets-3393
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "codalab/lib/interactive_session.py:InteractiveSession.start", "codalab/lib/interactive_session.py:InteractiveSession.__init__", "codalab/lib/interactive_session.py:InteractiveSession.get...
codalab/codalab-worksheets
4fa4d6cd844bbb25f41813f35dc355de476b914a
Run cl run --interactive as a non-root user **Describe the bug** Run `cl run --interactive` as a non-root user to match the same behavior as CodaLab worker running jobs.
diff --git a/codalab/lib/interactive_session.py b/codalab/lib/interactive_session.py index 73b252be..2164e2c9 100644 --- a/codalab/lib/interactive_session.py +++ b/codalab/lib/interactive_session.py @@ -6,6 +6,7 @@ import docker import os import shutil import sys +from typing import Dict, List class Interactive...
codalab__codalab-worksheets-3663
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "codalab/worker/dependency_manager.py:DependencyManager.__init__", "codalab/worker/dependency_manager.py:DependencyManager._transition_from_DOWNLOADING" ], "edited_modules": [ ...
codalab/codalab-worksheets
e96350ecef69e83f0bd28d6eed3fe17ffd9e3632
Failed to download dependency celebA: Dependency download failed: IncompleteRead(0 bytes read) See https://worksheets.codalab.org/bundles/0xc26e560d35d94a2aa475ac8a2acb2df9
diff --git a/codalab/worker/dependency_manager.py b/codalab/worker/dependency_manager.py index d1eb5457..93a7baf8 100644 --- a/codalab/worker/dependency_manager.py +++ b/codalab/worker/dependency_manager.py @@ -1,18 +1,19 @@ -from contextlib import closing -from collections import namedtuple import logging import os ...
codalab__codalab-worksheets-3861
[ { "changes": { "added_entities": [ "codalab/worker/dependency_manager.py:NFSLock.__init__", "codalab/worker/dependency_manager.py:NFSLock.acquire", "codalab/worker/dependency_manager.py:NFSLock.release", "codalab/worker/dependency_manager.py:NFSLock.__enter__", "cod...
codalab/codalab-worksheets
545106e1bf9599f608597d9dcbe82391788d6dab
Slurm: different workers on the same VM don't share the same cache For the slurm worker manager
diff --git a/codalab/worker/dependency_manager.py b/codalab/worker/dependency_manager.py index d9bd496e..bfee1a96 100644 --- a/codalab/worker/dependency_manager.py +++ b/codalab/worker/dependency_manager.py @@ -4,9 +4,11 @@ import threading import traceback import time import shutil -from contextlib import closing +...
codalab__codalab-worksheets-3941
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "codalab/lib/codalab_manager.py:CodaLabManager.__init__" ], "edited_modules": [ "codalab/lib/codalab_manager.py:CodaLabManager" ] }, "file": "codalab/lib/codalab_manager...
codalab/codalab-worksheets
f19f80f7bd9c7f6a4f39df4ecfd889029ab7a198
Worker manager prompts login even when specifying --password-file Example command: ```cl-worker-manager --server https://codalab.stanford.edu --search "request_gpus=0" --min-seconds-between-workers 180 --sleep-time 60 --worker-shared-memory-size-gb 8 --min-workers 0 --max-workers 10 --worker-work-dir-prefix /scr/...
diff --git a/codalab/lib/codalab_manager.py b/codalab/lib/codalab_manager.py index c4bd4cf2..d4c3c2a9 100644 --- a/codalab/lib/codalab_manager.py +++ b/codalab/lib/codalab_manager.py @@ -127,8 +127,17 @@ class CodaLabManager(object): if self.temporary: self.config = config - self.stat...
codalab__codalab-worksheets-4578
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "codalab/migration.py:Migration.upload_to_azure_blob", "codalab/migration.py:Migration.sanity_check" ], "edited_modules": [ "codalab/migration.py:Migration" ] }, ...
codalab/codalab-worksheets
984573d57c01cee083bd9a9e51186f7a712a698e
Migration: don't have exclude_patterns We want to be able to disable [these](https://github.com/codalab/codalab-worksheets/blob/master/codalab/worker/file_util.py#L29) so that we can migrate the _entire_ bundle when we need to.
diff --git a/codalab/migration.py b/codalab/migration.py index a010865c..87868f41 100644 --- a/codalab/migration.py +++ b/codalab/migration.py @@ -118,7 +118,7 @@ class Migration: ) if is_dir: - source_fileobj = zip_util.tar_gzip_directory(bundle_location) + source_fileobj = zi...
coddingtonbear__django-measurement-92
[ { "changes": { "added_entities": [ "django_measurement/models.py:MeasurementField.value_to_string", "django_measurement/models.py:MeasurementField.deserialize_value_from_string" ], "added_modules": null, "edited_entities": [ "django_measurement/models.py:Measureme...
coddingtonbear/django-measurement
85351334087e078c5693aaa458201bee755f65f6
Cannot deserialize measurement fields ## Steps 1. Having a model with measurement data 1. Exporting the database data using `./manage.py dumpdata [app[.model]] -o output.json` 1. Loading the fixture data back into the database using `./manage.py loaddata output.json` ## Error Stack ``` File "python3.7/site-pa...
diff --git a/.travis.yml b/.travis.yml index 8f1698c..2ea067c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,16 +1,21 @@ +dist: xenial language: python sudo: false cache: pip -python: 3.6 +python: + - "3.6" + - "3.7" + - "3.8" env: matrix: - DJANGO=111 - - DJANGO=20 + - DJANGO=22 - DJANGO=master - ...
coddingtonbear__python-measurement-41
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "measurement/base.py:AbstractMeasure.__mul__" ], "edited_modules": [ "measurement/base.py:AbstractMeasure" ] }, "file": "measurement/base.py" } ]
coddingtonbear/python-measurement
b6e1c9f4f1d24906cfc2106d5d9bf5c866a6e775
Multiplying a measure by itself without specifying the measurement attribute results in TypeError ```python >>> from measurement.measures import Mass >>> m = Mass(lb=135) >>> print(m) 135 lb >>> print(m*m) Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/runner/.local/share...
diff --git a/measurement/base.py b/measurement/base.py index 3dd1af0..236d30e 100644 --- a/measurement/base.py +++ b/measurement/base.py @@ -339,11 +339,11 @@ class AbstractMeasure(metaclass=MeasureBase): def __mul__(self, other): try: value = getattr(self, self.unit.org_name) * other + ...
codecov__codecov-python-94
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "codecov/__init__.py:main" ], "edited_modules": [ "codecov/__init__.py:main" ] }, "file": "codecov/__init__.py" } ]
codecov/codecov-python
7b292778b8e888ee181c9537cdbfa9eff2acf25c
Add support for Jenkins Blue Ocean See codecov/codecov-node#55
diff --git a/.gitignore b/.gitignore index b0b83c5..79d2d87 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,7 @@ *.egg *.egg-info *.pyc +.cache .coverage .DS_Store .tox diff --git a/codecov/__init__.py b/codecov/__init__.py index 87cf47f..955adc3 100644 --- a/codecov/__init__.py +++ b/codecov/__init__.py @@ -...
coderedcorp__wagtail-cache-42
[ { "changes": { "added_entities": [ "wagtailcache/cache.py:_chop_querystring", "wagtailcache/cache.py:_get_cache_key", "wagtailcache/cache.py:_learn_cache_key" ], "added_modules": [ "wagtailcache/cache.py:_chop_querystring", "wagtailcache/cache.py:_get_ca...
coderedcorp/wagtail-cache
c9a0d8a7d14969988600754fd08ae8dbea88aaf1
Ignore tracking querystrings ## Status quo Django full page(s) cache will cache multiple times the same page if different GET parameters are passed. Example: - `foo.com/` -> new cache entry - `foo.com/?do=something` -> new cache entry - `foo.com/?do=something_else` -> new cache entry ## Why can this be a proble...
diff --git a/docs/getting_started/django_settings.rst b/docs/getting_started/django_settings.rst index f50a719..651c8ac 100644 --- a/docs/getting_started/django_settings.rst +++ b/docs/getting_started/django_settings.rst @@ -3,21 +3,54 @@ Django Settings WAGTAIL_CACHE ------------- -Boolean toggling whether or not ...
coderedcorp__wagtail-cache-62
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "wagtailcache/cache.py:FetchFromCacheMiddleware.process_request", "wagtailcache/cache.py:UpdateCacheMiddleware.process_response" ], "edited_modules": [ "wagtailcache/cache.py:...
coderedcorp/wagtail-cache
3754e209d480f207255a9a4cca9b7e2d6054a875
Server error with cache middleware, Memcached and lots of URLs Hi, We hit intermittent 500 server errors on a site that uses the cache middleware and the memcached back-end. - Django 4.2 - Wagtail 5.1.3 - wagtail-cache 2.3.0 - pymemcached 4.0.0 The error is `pymemcache.exceptions.MemcacheServerError: b'obje...
diff --git a/wagtailcache/cache.py b/wagtailcache/cache.py index 0782730..0d92c75 100644 --- a/wagtailcache/cache.py +++ b/wagtailcache/cache.py @@ -2,6 +2,7 @@ Functionality to set, serve from, and clear the cache. """ +import logging import re from enum import Enum from functools import wraps @@ -28,6 +29,9 @@...
codesankalp__dsalgo-63
[ { "changes": { "added_entities": [ "dsalgo/pyqueue.py:Queue_from_linked_list.to_list", "dsalgo/pyqueue.py:Queue_from_array.to_list" ], "added_modules": null, "edited_entities": [ "dsalgo/pyqueue.py:Node.__init__", "dsalgo/pyqueue.py:Queue_from_linked_list....
codesankalp/dsalgo
c6d350aadc3927b3071f693222abc3071e1e3bcf
Add tests for queue. Currently there is a `pr` for queue implementation but there are no test cases so you have to add the test for this in the queue branch. what to do: - [ ] Write tests for pyqueue in `tests/` - [ ] make a pull request for queue branch not for master branch.
diff --git a/dsalgo/pyqueue.py b/dsalgo/pyqueue.py index c27ef56..138e9c4 100644 --- a/dsalgo/pyqueue.py +++ b/dsalgo/pyqueue.py @@ -1,113 +1,127 @@ class Node: - def __init__(self, value): - self.value = value - self.next = None + def __init__(self, value): + self.value = value + self.next = None ...
codesankalp__dsalgo-9
[ { "changes": { "added_entities": [ "dsalgo/sort.py:merge", "dsalgo/sort.py:bubble_recursion", "dsalgo/sort.py:selection", "dsalgo/sort.py:quick", "dsalgo/sort.py:quick_sort", "dsalgo/sort.py:partition" ], "added_modules": [ "dsalgo/sort.p...
codesankalp/dsalgo
8c7a94849dd8a777a6cade7c8344f5745dc9ccdf
Basic sorting algorithms Implement all the sorting algorithms using class in one python file. For more details about implementation contact @KapilBansal320
diff --git a/dsalgo/sort.py b/dsalgo/sort.py index 0804112..5d30b2f 100644 --- a/dsalgo/sort.py +++ b/dsalgo/sort.py @@ -8,7 +8,12 @@ class Sort: :array: (list) : a python list :algo: (str): sorting algorithm type values supported are: - 1. b...
codingedward__flask-sieve-17
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "flask_sieve/translator.py:Translator.translated_errors", "flask_sieve/translator.py:Translator._translate_validation" ], "edited_modules": [ "flask_sieve/translator.py:Transl...
codingedward/flask-sieve
7eb31d399a054df1a3397f20a30203d847323f4e
Custom message in manual validation Hi bro, I do not see that we can custom messages in docs in manual validation mode. Can you add these features? this what I need.
diff --git a/docs/source/index.md b/docs/source/index.md index fedf4c7..8a4e9ce 100644 --- a/docs/source/index.md +++ b/docs/source/index.md @@ -112,7 +112,11 @@ def register(): 'avatar': ['image', 'dimensions:200x200'], 'username': ['required', 'string', 'min:6'], } - validator = Validator(ru...
codingedward__flask-sieve-28
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": null, "edited_modules": null }, "file": "flask_sieve/lang/en.py" }, { "changes": { "added_entities": [ "flask_sieve/rules_processor.py:RulesProcessor.validate_empty", "f...
codingedward/flask-sieve
f072fd86fd7d68d577a9c70e92524912dcad7a42
Equivalent of "sometimes" Is there an equivalent of "sometimes" from Laravel validation? i.e. only validate the value if present and non-empty, otherwise skip the validation.
diff --git a/docs/source/index.md b/docs/source/index.md index 8a4e9ce..cad4271 100644 --- a/docs/source/index.md +++ b/docs/source/index.md @@ -580,6 +580,10 @@ The given _field_ must match the field under validation. The field under validation must have a size matching the given _value_. For string data, _value_ c...
codingedward__flask-sieve-30
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "flask_sieve/rules_processor.py:RulesProcessor._is_attribute_nullable" ], "edited_modules": [ "flask_sieve/rules_processor.py:RulesProcessor" ] }, "file": "flask_sieve/r...
codingedward/flask-sieve
06ae5fb1dbeae4c6d476cac4f62c50c8d53ae60e
sometimes not working sometimes rule not working with other rules. 'zipCode': ['sometimes', 'numeric'], 'website': ['sometimes', 'url'] if we leave blank any of the field, it ask for valid integer and valid url.
diff --git a/flask_sieve/rules_processor.py b/flask_sieve/rules_processor.py index 1fee1ba..a850531 100644 --- a/flask_sieve/rules_processor.py +++ b/flask_sieve/rules_processor.py @@ -547,7 +547,7 @@ class RulesProcessor: return True value = self._attribute_value(attribute) is_optional =...
codingedward__flask-sieve-31
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "flask_sieve/exceptions.py:register_error_handler" ], "edited_modules": [ "flask_sieve/exceptions.py:register_error_handler" ] }, "file": "flask_sieve/exceptions.py" }...
codingedward/flask-sieve
28537dfe9bd9306aa2035ef3cd3182c00f3855df
Custom Validation Error format Issue As per documentation error response default format is success: False, message: 'Validation error', errors: { 'email': [ 'The email is required.', 'The email must be a valid email address.' ], 'password': [ ...
diff --git a/flask_sieve/exceptions.py b/flask_sieve/exceptions.py index d5c6dc7..088ead6 100644 --- a/flask_sieve/exceptions.py +++ b/flask_sieve/exceptions.py @@ -13,7 +13,7 @@ def register_error_handler(app): 'errors': ex.errors } - if app.config.get('SIEVE_INCLUDE_SUCCESS_KEY'): + ...
codingedward__flask-sieve-32
[ { "changes": { "added_entities": [ "flask_sieve/rules_processor.py:RulesProcessor._is_value_empty" ], "added_modules": null, "edited_entities": [ "flask_sieve/rules_processor.py:RulesProcessor.validate_empty", "flask_sieve/rules_processor.py:RulesProcessor.validat...
codingedward/flask-sieve
936cafdc73e49931e133c1f8f7edbbd3ee5c89ca
Boolean is showing required if pass value false or 0 Hi Team, Boolean is showing validation fail if I pass the value false or zero. Please try to resolve these bug ASAP or please also make me the contributor. so that i can fix these too. My Request Data : { "UUID": "3fa85f64-5717-4562-b3fc-2c963f66afa6"...
diff --git a/flask_sieve/rules_processor.py b/flask_sieve/rules_processor.py index a850531..1ebae7a 100644 --- a/flask_sieve/rules_processor.py +++ b/flask_sieve/rules_processor.py @@ -246,10 +246,6 @@ class RulesProcessor: def validate_file(value, **kwargs): return isinstance(value, FileStorage) - @...
codingedward__flask-sieve-37
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "flask_sieve/rules_processor.py:RulesProcessor.validate_between", "flask_sieve/rules_processor.py:RulesProcessor.validate_gt", "flask_sieve/rules_processor.py:RulesProcessor.validate_gte"...
codingedward/flask-sieve
6ac6e87aedad48be2eddb5473321336efa0e02fa
Max Rule Not Working for Numeric String My rule is this rules = { 'card_number': ['bail', 'required', 'string', 'max:20'], 'card_expiry_date': ['bail', 'required','string', 'max:8'], 'card_cvv': ['bail', 'required', 'string', 'max:8'] } I am passing ...
diff --git a/.gitignore b/.gitignore index fb871be..88ecb85 100644 --- a/.gitignore +++ b/.gitignore @@ -2,6 +2,7 @@ .*.swn .*.swo .*.swp +.vim .coverage docs/build .DS_Store diff --git a/flask_sieve/rules_processor.py b/flask_sieve/rules_processor.py index 1ebae7a..7b7f004 100644 --- a/flask_sieve/rules_processo...
codingjoe__relint-11
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "relint.py:parse_args", "relint.py:load_config", "relint.py:lint_file", "relint.py:main" ], "edited_modules": [ "relint.py:parse_args", "relint.py:load...
codingjoe/relint
01f4cc0a3a3f660e663c35477ef9cec6846682eb
Exclude specific files that would otherwise match a broader pattern I work on a python repository and I'd like to use relint in pre-commit and CI pipeline to make sure nobody ever commits a `print` call, so I use this pattern specification: ```yaml - name: Leftover print pattern: "print\\(" filename: - "*....
diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml index 8277382..e030a5a 100644 --- a/.github/FUNDING.yml +++ b/.github/FUNDING.yml @@ -1,1 +1,2 @@ +github: codingjoe custom: https://www.paypal.me/codingjoe diff --git a/.relint.yml b/.relint.yml index 779fcee..5e508a6 100644 --- a/.relint.yml +++ b/.relint.yml @@...
codingjoe__relint-96
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "relint/__main__.py:main" ], "edited_modules": [ "relint/__main__.py:main" ] }, "file": "relint/__main__.py" }, { "changes": { "added_entities": [ ...
codingjoe/relint
0146df523e820cba9f11188f2766aba09852c2ca
Add alternative format for GitHub PR annotations First of all, thank you for the amazing Swiss army knife that is reLint! 🙏 💙 We use it to augment the linting that SQLFluff provides, since it only covers the basics (and not all of our SQL coding standards). This feature request is basically to be able to easil...
diff --git a/relint/__main__.py b/relint/__main__.py index afb162f..ed831d1 100644 --- a/relint/__main__.py +++ b/relint/__main__.py @@ -1,4 +1,5 @@ import argparse +import os import subprocess # nosec import sys import warnings @@ -6,7 +7,13 @@ import warnings from rich.progress import track from relint.confi...
coecms__ARCCSSive-28
[ { "changes": { "added_entities": [ "ARCCSSive/cli/compare_ESGF.py:query_yes_no" ], "added_modules": [ "ARCCSSive/cli/compare_ESGF.py:query_yes_no" ], "edited_entities": [ "ARCCSSive/cli/compare_ESGF.py:main" ], "edited_modules": [ "ARCCSS...
coecms/ARCCSSive
2188bbb4aa2a34f1c3c6e3508bf98c0ee9d2703e
Make compare_ESGF questions case-insensitive Currently compare_ESGF responses must be a capital `Y`. Make this case-insensitive, possibly also so that it works with 'yes'
diff --git a/.travis.yml b/.travis.yml index 9f1999b..18c4269 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,6 +1,5 @@ language: python python: - - '2.6' - '2.7' - '3.4' install: diff --git a/ARCCSSive/cli/compare_ESGF.py b/ARCCSSive/cli/compare_ESGF.py index 7d343f6..b74610c 100644 --- a/ARCCSSive/cl...
coecms__nccompress-10
[ { "changes": { "added_entities": [ "nccompress/ncfind.py:find_files" ], "added_modules": [ "nccompress/ncfind.py:find_files" ], "edited_entities": [ "nccompress/ncfind.py:is_netCDF_compressed", "nccompress/ncfind.py:main" ], "edited_modul...
coecms/nccompress
b2546051531172beeff6f193d24463a6caeff292
Error catching didn't work > Traceback (most recent call last): File "/g/data3/hh5/public/apps/miniconda3/envs/analysis3-18.04/bin/ncfind", line 10, in <module> sys.exit(main_argv()) File "/g/data3/hh5/public/apps/miniconda3/envs/analysis3-18.04/lib/python3.6/site-packages/nccompress/ncfind.py", line 152, in...
diff --git a/nccompress/ncfind.py b/nccompress/ncfind.py index b329dc2..8234b53 100755 --- a/nccompress/ncfind.py +++ b/nccompress/ncfind.py @@ -25,7 +25,7 @@ def is_netCDF_compressed(ncfile): isnetCDF=True iscompressed = is_compressed(fh) fh.close - except RuntimeError: + except: ...
coecms__nccompress-12
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "nccompress/nccompress.py:is_netCDF", "nccompress/nccompress.py:is_compressed", "nccompress/nccompress.py:compress_files" ], "edited_modules": [ "nccompress/nccompress...
coecms/nccompress
524f77259ac9727cde5e09e0e8849ead128dd263
Handling of netCDF4 format Could nc2nc call nccopy instead of skipping netCDF4 format files?
diff --git a/nccompress/nccompress.py b/nccompress/nccompress.py index 42f36fb..c0e1cff 100755 --- a/nccompress/nccompress.py +++ b/nccompress/nccompress.py @@ -55,15 +55,20 @@ def is_netCDF(ncfile): """ try: tmp = nc.Dataset(ncfile) - tmp.close() - return True + format = tmp.fil...
coecms__nccompress-14
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "nccompress/nc2nc.py:nc2nc", "nccompress/nc2nc.py:parse_args", "nccompress/nc2nc.py:main" ], "edited_modules": [ "nccompress/nc2nc.py:nc2nc", "nccompress/nc2nc...
coecms/nccompress
ecb99719f000ee7802587a000eb875c0077ef459
Option to alter chunk size Currently chunk size is hard coded to 4096 bytes (4K). This is too small for efficient operation and makes optimal chunk size calculations difficult. https://github.com/aidanheerdegen/nccompress/blob/master/nc2nc#L258
diff --git a/nccompress/nc2nc.py b/nccompress/nc2nc.py index 814bd83..2831ebd 100755 --- a/nccompress/nc2nc.py +++ b/nccompress/nc2nc.py @@ -164,7 +164,7 @@ def chunk_shape_nD(varShape, valSize=4, chunkSize=4096, minDim=1): def nc2nc(filename_o, filename_d, zlib=True, complevel=5, shuffle=True, fletcher32=False, -...
cogeotiff__rio-cogeo-104
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "rio_cogeo/cogeo.py:cog_translate" ], "edited_modules": [ "rio_cogeo/cogeo.py:cog_translate" ] }, "file": "rio_cogeo/cogeo.py" }, { "changes": { "added_ent...
cogeotiff/rio-cogeo
92bba3a2b475451e78afd58e02e25d889c1ab910
Allow compression for intermediate file In https://github.com/cogeotiff/rio-cogeo/blob/92bba3a2b475451e78afd58e02e25d889c1ab910/rio_cogeo/cogeo.py#L210-L211 we remove the compression to speed up the process. While this is fine in most case, sometime we want to minimize the memory/disk space usage instead of the speed. ...
diff --git a/CHANGES.txt b/CHANGES.txt index 2a36bf8..ccc5dd0 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -1,3 +1,9 @@ +1.1.5 (TBD) +------------------ + + - add `--allow-intermediate-compression` option to reduce the memory/disk footprint (#103) + + 1.1.4 (2019-10-03) ------------------ diff --git a/rio_cogeo/co...
cogeotiff__rio-cogeo-128
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "rio_cogeo/cogeo.py:TemporaryRasterFile", "rio_cogeo/cogeo.py:cog_translate" ], "edited_modules": [ "rio_cogeo/cogeo.py:TemporaryRasterFile", "rio_cogeo/cogeo.py:cog_t...
cogeotiff/rio-cogeo
452edc1a90f87fe1fa7bbe597c6bf346b3be7366
Dropping Python 2 support for rio-cogeo version 2.0.0 We haven't had any feedback when we did https://github.com/cogeotiff/rio-tiler/issues/139 so I guess (🤞) it will be the same here.
diff --git a/.circleci/config.yml b/.circleci/config.yml index 89e3236..0056c8d 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -12,7 +12,7 @@ common: &common - run: name: run pre-commit command: | - if [[ "$CIRCLE_JOB" == "python-3.6" ]]; then + if [[ "$CIRCLE_J...
cogeotiff__rio-cogeo-130
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "rio_cogeo/profiles.py:COGProfiles.get" ], "edited_modules": [ "rio_cogeo/profiles.py:COGProfiles" ] }, "file": "rio_cogeo/profiles.py" }, { "changes": { "...
cogeotiff/rio-cogeo
dac2ae36edd3b6a39645963f645218fb54aaff01
set case_insensitive=True on the click.option ``` Error: Invalid value for '--cog-profile' / '-p': invalid choice: WEBP. (choose from jpeg, webp, zstd, lzw, deflate, packbits, lzma, lerc, lerc_deflate, lerc_zstd, raw) ``` cc @kylebarron
diff --git a/rio_cogeo/profiles.py b/rio_cogeo/profiles.py index 9a91747..15e7c9f 100644 --- a/rio_cogeo/profiles.py +++ b/rio_cogeo/profiles.py @@ -174,6 +174,7 @@ class COGProfiles(dict): def get(self, key): """Like normal item access but error.""" + key = key.lower() if key not in (se...
cogeotiff__rio-cogeo-136
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "rio_cogeo/cogeo.py:cog_validate" ], "edited_modules": [ "rio_cogeo/cogeo.py:cog_validate" ] }, "file": "rio_cogeo/cogeo.py" }, { "changes": { "added_entit...
cogeotiff/rio-cogeo
116c8f0d58635bdd6c626f2fc35fe6b058e81c05
add `rio cogeo info` I really like https://github.com/blacha/cogeotiff#cogeotiff-info cli by @blacha 👏
diff --git a/CHANGES.txt b/CHANGES.txt index 4cba75c..c4e20c1 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -1,3 +1,8 @@ +2.0a3 (TBD) +------------------ +- add `info` CLI (#134) + + 2.0a2 (2020-05-20) ------------------ - add `--config` CLI option to pass additional GDAL Configuration options (#135) diff --git a/RE...
cogeotiff__rio-cogeo-143
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "rio_cogeo/cogeo.py:cog_validate" ], "edited_modules": [ "rio_cogeo/cogeo.py:cog_validate" ] }, "file": "rio_cogeo/cogeo.py" }, { "changes": { "added_entit...
cogeotiff/rio-cogeo
6fda1dc1904ea9317c776e709677af2cb2a698f6
cog_validate should return warnings and errors In order to use `cog_validate` in other APIs I think it will be good to make it return the info instead of printing them 👇 https://github.com/cogeotiff/rio-cogeo/blob/6fda1dc1904ea9317c776e709677af2cb2a698f6/rio_cogeo/cogeo.py#L438-L452
diff --git a/rio_cogeo/cogeo.py b/rio_cogeo/cogeo.py index 8f2a551..c6f158e 100644 --- a/rio_cogeo/cogeo.py +++ b/rio_cogeo/cogeo.py @@ -6,7 +6,7 @@ import sys import tempfile import warnings from contextlib import ExitStack, contextmanager -from typing import Any, Dict +from typing import Any, Dict, List, Tuple ...
cogeotiff__rio-cogeo-65
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": null, "edited_modules": null }, "file": "rio_cogeo/__init__.py" }, { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "rio_cogeo/coge...
cogeotiff/rio-cogeo
fb9ceba8b00dae22bce68b196c47a88a62371b61
Update get_maximum_overview_level to use Rasterio dataset directly in https://github.com/cogeotiff/rio-cogeo/blob/fb9ceba8b00dae22bce68b196c47a88a62371b61/rio_cogeo/cogeo.py#L62-L66 we pass the dataset path and then open it in `get_maximum_overview_level` function. This means we have to open the dataset twice while i...
diff --git a/CHANGES.txt b/CHANGES.txt index bce8d83..34319c4 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -1,3 +1,12 @@ +1.0b1 (2019-03-25) +------------------ + +Breacking Changes: + +- refactor utils.get_maximum_overview_level to get rasterio dataset +as input and reduce the number of dataset opennings (#61) + + ...
cogeotiff__rio-cogeo-71
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": null, "edited_modules": null }, "file": "rio_cogeo/__init__.py" }, { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "rio_cogeo/coge...
cogeotiff/rio-cogeo
5974cd5643bde9183220f2d02a4f387a1e013dec
Note about Opinions! While rio-cogeo follows the COG specification, it also make some choice. By default we decided to enforce internal tilings (tiling is optional for files that are < 1024x1024) and overview (those are optional). I personally thinks those two are important but the user still have the possibility t...
diff --git a/CHANGES.txt b/CHANGES.txt index 46e78c2..22b6258 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -1,3 +1,12 @@ + +1.0b3 (2019-03-30) +------------------ + +Breacking Changes: + +- remove deprecated YCBCR profile +- 512x512 dataset without internal tiling are valid + 1.0b2 (2019-03-27) ------------------ ...
cogeotiff__rio-cogeo-75
[ { "changes": { "added_entities": [ "rio_cogeo/cogeo.py:TemporaryRasterFile" ], "added_modules": [ "rio_cogeo/cogeo.py:TemporaryRasterFile" ], "edited_entities": [ "rio_cogeo/cogeo.py:cog_translate" ], "edited_modules": [ "rio_cogeo/cogeo....
cogeotiff/rio-cogeo
c5d7344d1cbbe0917773b9a4805e8ffc241f1fd5
Support rasters which does not fit in memory As I can see from source code `rio-cogeo` uses `MemoryFile`. Does it mean that this plugin is not suit for cases when source raster is not fit in memory?
diff --git a/rio_cogeo/cogeo.py b/rio_cogeo/cogeo.py index d9e73d2..584e050 100644 --- a/rio_cogeo/cogeo.py +++ b/rio_cogeo/cogeo.py @@ -3,6 +3,8 @@ import os import sys import warnings +import tempfile +from contextlib import contextmanager import click @@ -27,6 +29,26 @@ from rio_cogeo.utils import ( _me...
cogeotiff__rio-cogeo-98
[ { "changes": { "added_entities": null, "added_modules": [ "rio_cogeo/profiles.py:LZMAProfile", "rio_cogeo/profiles.py:LERCProfile", "rio_cogeo/profiles.py:LERCDEFLATEProfile", "rio_cogeo/profiles.py:LERCZSTDProfile" ], "edited_entities": [ "rio_cog...
cogeotiff/rio-cogeo
fdda823e836bc9614f522ced349d5e1281fb8706
ZSTD missing codec Thanks for this lib/plugin, it's really helpful and avoids having to guess which creation options are good for remote access. I'm encountering a problem with the `zstd` `cog-profile`. When running: ``` rio cogeo create -p zstd S2A_MSIL1C_20190112T175711_N0207_R141_T13UFQ_20190112T194934__B01....
diff --git a/CHANGES.txt b/CHANGES.txt index 3af9049..4ca6200 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -1,3 +1,10 @@ +1.1.3 (2019-09-16) +------------------ + +- Add lzma/lerc/lerc_deflate/lerc_zstd profiles (#97) +- Add warnings and notes for `non-standard` compression (#97) +- fix THREADS definition for GDAL con...
coin-or__pulp-491
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "pulp/pulp.py:LpVariable.matrix", "pulp/pulp.py:LpVariable.dicts", "pulp/pulp.py:LpVariable.dict" ], "edited_modules": [ "pulp/pulp.py:LpVariable" ] }, "...
coin-or/pulp
a560dc8116b6f70165ff9b369a459eeb46182833
indexs vs indexes Hi, this issue is around a seemingly misspelled parameter ([indexs](https://github.com/coin-or/pulp/blob/449e4b2950367f1d21d38a6afb07baf0dbc18f17/pulp/pulp.py#L348)), so it's not a bug in the sense that is blocks functionality. However, it may complicate development for [pulp](https://github.com/coin...
diff --git a/HISTORY b/HISTORY index 7ce0f0e..07fb28e 100644 --- a/HISTORY +++ b/HISTORY @@ -7,6 +7,7 @@ fixed bugs added HiGHS solver added pysmps dependency for mps parsing + deprecated 'indexs' parameter LpVariable dicts and matrix 2.5.1 2021-09-28 updated docs fixed minor issues diff --...
coin-or__pulp-530
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "pulp/mps_lp.py:readMPSSetRhs" ], "edited_modules": [ "pulp/mps_lp.py:readMPSSetRhs" ] }, "file": "pulp/mps_lp.py" } ]
coin-or/pulp
62f3d08d7f2899e5b941a9efbcc616303a6c21df
Incorrect MPS import Details for the issue -------------------- Consider the MPS file (taken from [here](http://lpsolve.sourceforge.net/5.5/mps-format.htm)) ``` NAME TESTPROB ROWS N COST L LIM1 G LIM2 E MYEQN COLUMNS XONE COST 1 LIM1 1 XONE ...
diff --git a/pulp/mps_lp.py b/pulp/mps_lp.py index d9ddb11..9cd3932 100644 --- a/pulp/mps_lp.py +++ b/pulp/mps_lp.py @@ -183,6 +183,8 @@ def readMPSSetBounds(line, variable_dict): def readMPSSetRhs(line, constraintsDict): constraintsDict[line[1]]["constant"] = -float(line[2]) + if len(line) == 5: # read fie...
coin-or__pulp-534
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "pulp/apis/coin_api.py:COIN_CMD.solve_CBC" ], "edited_modules": [ "pulp/apis/coin_api.py:COIN_CMD" ] }, "file": "pulp/apis/coin_api.py" }, { "changes": { "...
coin-or/pulp
62f3d08d7f2899e5b941a9efbcc616303a6c21df
Pulp is flashing empty log windows ### Details for the issue #### What did you do? I'm using `PULP_CBC_CMD` solver (`COIN_CMD` internally) for [my project (developing an scheduling app, it has GUI)](https://github.com/filtermap/pulp-scheduling/tree/a5688d8709ba59da37ad5cde69049871c66fbe69). #### What did you e...
diff --git a/pulp/apis/coin_api.py b/pulp/apis/coin_api.py index da29f90..4622364 100644 --- a/pulp/apis/coin_api.py +++ b/pulp/apis/coin_api.py @@ -25,7 +25,7 @@ # SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.""" from .core import LpSolver_CMD, LpSolver, subprocess, PulpSolverError, clock, log -from .core...
coin-or__pulp-724
[ { "changes": { "added_entities": null, "added_modules": null, "edited_entities": [ "pulp/pulp.py:LpAffineExpression.addInPlace", "pulp/pulp.py:LpAffineExpression.subInPlace", "pulp/pulp.py:LpAffineExpression.__mul__", "pulp/pulp.py:LpAffineExpression.__div__", ...
coin-or/pulp
f2113726db32cfd70afdd93b985fce83ed974ffb
Raise error on multiplication with NaN <!-- Thanks for coming here to suggest a new feature. :) --> Describe the new feature -------------------------- Often times, optimization models are created from data that is handled/manipulated in tools like numpy/pandas. In the data collection and manipulation that preceed...
diff --git a/pulp/pulp.py b/pulp/pulp.py index d19a889..2c91093 100644 --- a/pulp/pulp.py +++ b/pulp/pulp.py @@ -95,6 +95,7 @@ References: from collections import Counter import sys import warnings +import math from time import time from .apis import LpSolverDefault, PULP_CBC_CMD @@ -657,6 +658,8 @@ class LpAffi...