text:
Convert examples with pulumi convert

Stats
Baseline      1377 API locations with examples
Provider:     azurerm
Success rate: 96.54% (8416/8718)

Converted 96.35% of csharp examples (1400/1453)
Converted 96.35% of go examples (1400/1453)
Converted 98.14% of java examples (1426/1453)
Converted 96.35% of python examples (1400/1453)
Converted 96.35% of typescript examples (1400/1453)
Converted 95.66% of yaml examples (1390/1453)

Experimental  1377 API locations with examples
Provider:     azurerm
Success rate: 98.45% (8617/8753)

Converted 98.29% of csharp examples (1438/1463)
Converted 98.29% of go examples (1438/1463)
Converted 98.22% of java examples (1437/1463)
Converted 98.29% of python examples (1438/1463)
Converted 98.29% of typescript examples (1438/1463)
Converted 99.30% of yaml examples (1428/1438)

Error 1
30 examples failed with the following error:
Argument or block definition required: An argument or block definition is required here.

Failures include converting the "#/types/azure:keyvault/CertificateCertificate:CertificateCertificate/password#3" example with the following HCL to java, python, typescript, yaml, csharp, go:
-----BEGIN CERTIFICATE-----
aGVsbG8KaGVsbG8KaGVsbG8KaGVsbG8KaGVsbG8KaGVsbG8KaGVsbG8KaGVsbG8K
:
aGVsbG8KaGVsbG8KaGVsbG8KaGVsbG8KaGVsbG8KaGVsbG8KaGVsbG8KaGVsbG8K
-----END CERTIFICATE-----
-----BEGIN PRIVATE KEY-----
d29ybGQKd29ybGQKd29ybGQKd29ybGQKd29ybGQKd29ybGQKd29ybGQKd29ybGQK
:
d29ybGQKd29ybGQKd29ybGQKd29ybGQKd29ybGQKd29ybGQKd29ybGQKd29ybGQK
-----END PRIVATE KEY-----

Error 2
12 examples failed with the following error:
Unsupported block type: Blocks of type "redis_configuration" are not expected here.

Failures include converting the "#/types/azure:redis/CacheRedisConfiguration:CacheRedisConfiguration/aofStorageConnectionString1#1" example with the following HCL to python, typescript, yaml, csharp, go, java:
redis_configuration {
aof_backup_enabled              = true
aof_storage_connection_string_0 = "DefaultEndpointsProtocol=https;BlobEndpoint=${azurerm_storage_account.nc-cruks-storage-account.primary_blob_endpoint};AccountName=${azurerm_storage_account.mystorageaccount.name};AccountKey=${azurerm_storage_account.mystorageaccount.primary_access_key}"
aof_storage_connection_string_1 = "DefaultEndpointsProtocol=https;BlobEndpoint=${azurerm_storage_account.mystorageaccount.primary_blob_endpoint};AccountName=${azurerm_storage_account.mystorageaccount.name};AccountKey=${azurerm_storage_account.mystorageaccount.secondary_access_key}"
}

Error 3
6 examples failed with the following error:
not yet implemented: call notImplemented; Function not yet implemented: Function jsondecode not yet implemented

Failures include converting the "#/functions/azure:automation/getVariableObject:getVariableObject#1" example with the following HCL to java:
data "azurerm_automation_variable_object" "example" {
  name                    = "tfex-example-var"
  resource_group_name     = "tfex-example-rg"
  automation_account_name = "tfex-example-account"
}

output "variable" {
  value = jsondecode(data.azurerm_automation_variable_object.example.value)
}

Error 4
6 examples failed with the following error:
Invalid multi-line string: Quoted strings may not be split over multiple lines. To produce a multi-line string, either use the \n escape to represent a newline character or use the "heredoc" multi-line template syntax.; Unterminated template string: No closing marker was found for the string.; Duplicate resource "azurerm_mssql_server_extended_auditing_policy" configuration: A azurerm_mssql_server_extended_auditing_policy resource named "example" was already declared at /e734.tf:19,1-67. Resource names must be unique per type in each module.

Failures include converting the "#/resources/azure:mssql/serverExtendedAuditingPolicy:ServerExtendedAuditingPolicy#5" example with the following HCL to java, python, typescript, yaml, csharp, go:
provider "azurerm" {
features {}
}

resource "azurerm_resource_group" "example" {
name     = "example-resources"
location = "West Europe"
}

resource "azurerm_mssql_server" "example" {
  name                         = "example-sqlserver"
  resource_group_name          = azurerm_resource_group.example.name
  location                     = azurerm_resource_group.example.location
  version                      = "12.0"
  administrator_login          = "missadministrator"
  administrator_login_password = "AdminPassword123!"
}

resource "azurerm_mssql_server_extended_auditing_policy" "example" {
  server_id                               = azurerm_mssql_server.example.id
  storage_endpoint                        = azurerm_storage_account.example.primary_blob_endpoint
  storage_account_access_key              = azurerm_storage_account.example.primary_access_key
  storage_account_access_key_is_secondary = false
  retention_in_days                       = 6
}

resource "azurerm_log_analytics_workspace" "example" {
  name                = "example-workspace"
  location            = azurerm_resource_group.example.location
  resource_group_name = azurerm_resource_group.example.name
  sku                 = "PerGB2018"
  retention_in_days   = 30
}

resource "azurerm_eventhub_namespace" "example" {
  name                = "example-eventhub-namespace"
  location            = azurerm_resource_group.example.location
  resource_group_name = azurerm_resource_group.example.name
  sku                 = "Standard"
}

resource "azurerm_eventhub" "example" {
  name                = "example-eventhub"
  namespace_name      = azurerm_eventhub_namespace.example.name
  resource_group_name = azurerm_resource_group.example.name
  partition_count     = 2
  message_retention   = 1
}

resource "azurerm_eventhub_namespace_authorization_rule" "example" {
  name                = "example-eventhub-auth-rule"
  namespace_name      = azurerm_eventhub_namespace.example.name
  resource_group_name = azurerm_resource_group.example.name
  listen              = true
  send                = true
  manage              = true
}

resource "azurerm_mssql_server_extended_auditing_policy" "example" {
  server_id              = azurerm_mssql_server.example.id
  log_monitoring_enabled = true
}

resource "azurerm_monitor_diagnostic_setting" "example" {
  name                           = "example-diagnotic-setting"
  target_resource_id             = "${azurerm_mssql_server.example.id}/databases/master”
  eventhub_authorization_rule_id = azurerm_eventhub_namespace_authorization_rule.example.id
  eventhub_name                  = azurerm_eventhub.example.name
  log_analytics_workspace_id     = azurerm_log_analytics_workspace.example.id

  log {
    category = "SQLSecurityAuditEvents"
    enabled  = true

    retention_policy {
      enabled = false
    }
  }

  metric {
    category = "AllMetrics"

    retention_policy {
      enabled = false
    }
  }
}

Error 5
6 examples failed with the following error:
Duplicate resource "azurerm_data_factory_linked_service_azure_blob_storage" configuration: A azurerm_data_factory_linked_service_azure_blob_storage resource named "test" was already declared at /e30.tf:29,1-73. Resource names must be unique per type in each module.

Failures include converting the "#/resources/azure:datafactory/linkedServiceAzureBlobStorage:LinkedServiceAzureBlobStorage#3" example with the following HCL to csharp, go, java, python, typescript, yaml:
resource "azurerm_resource_group" "example" {
  name     = "example-resources"
  location = "West Europe"
}

data "azurerm_client_config" "current" {
}

resource "azurerm_data_factory" "test" {
  name                = "example"
  location            = azurerm_resource_group.example.location
  resource_group_name = azurerm_resource_group.example.name
}

resource "azurerm_key_vault" "test" {
  name                = "example"
  location            = azurerm_resource_group.example.location
  resource_group_name = azurerm_resource_group.example.name
  tenant_id           = data.azurerm_client_config.current.tenant_id
  sku_name            = "standard"
}

resource "azurerm_data_factory_linked_service_key_vault" "test" {
  name            = "linkkv"
  data_factory_id = azurerm_data_factory.test.id
  key_vault_id    = azurerm_key_vault.test.id
}

resource "azurerm_data_factory_linked_service_azure_blob_storage" "test" {
  name            = "example"
  data_factory_id = azurerm_data_factory.test.id

  sas_uri = "https://example.blob.core.windows.net"
  key_vault_sas_token {
    linked_service_name = azurerm_data_factory_linked_service_key_vault.test.name
    secret_name         = "secret"
  }
}

resource "azurerm_data_factory_linked_service_azure_blob_storage" "test" {
  name            = "example"
  data_factory_id = azurerm_data_factory.test.id

  service_endpoint     = "https://example.blob.core.windows.net"
  service_principal_id = "00000000-0000-0000-0000-000000000000"
  tenant_id            = "00000000-0000-0000-0000-000000000000"
  service_principal_linked_key_vault_key {
    linked_service_name = azurerm_data_factory_linked_service_key_vault.test.name
    secret_name         = "secret"
  }
}

Filed https://github.com/pulumi/pulumi-converter-terraform/issues/71

System.IO.IOException: No space left on device...

Slight concern that running make tfgen repeatedly does not give the same result (converter may not be deterministic). Running a few times. This is tricky to isolate as make tfgen takes a fair bit to run.
Also need to spot-check some example changes especially for top resources.

Waiting on one more p/p release.. https://github.com/pulumi/pulumi/pull/15214 updates YAML to 1.5.0 - unreleased as of v3.103.1. Then will try again and expecting to succeed.

Noting Java example quality regresses a bit "exampleResourceXYZ" names - this is already tracked in https://github.com/pulumi/pulumi-converter-terraform/issues/88

Finding something suspect with metrics here as only the Java examples seem to be actually changing. Perhaps something is changed in wow we're counting examples. Double-checking.

Hm, some more instability
     ///     var exampleResource6 = new Azure.MSSql.ManagedInstanceSecurityAlertPolicy("example", new()
     ///     {
     ///         ResourceGroupName = testazurermResourceGroup.Name,
-    ///         ManagedInstanceName = testazurermMssqlManagedInstance.Name,
+    ///         ManagedInstanceName = test.Name,
     ///         Enabled = true,
-    ///         StorageEndpoint = test.PrimaryBlobEndpoint,
-    ///         StorageAccountAccessKey = test.PrimaryAccessKey,
+    ///         StorageEndpoint = testazurermStorageAccount.PrimaryBlobEndpoint,
+    ///         StorageAccountAccessKey = testazurermStorageAccount.PrimaryAccessKey,
     ///         RetentionDays = 30,
     ///     });
     ///
diff --git a/sdk/dotnet/Mobile/NetworkSim.cs b/sdk/dotnet/Mobile/NetworkSim.cs
index e82e2e461..3f83ef752 100644
--- a/sdk/dotnet/Mobile/NetworkSim.cs
+++ b/sdk/dotnet/Mobile/NetworkSim.cs
@@ -90,8 +90,8 @@ namespace Pulumi.Azure.Mobile
     ///         {
     ///             new Azure.Mobile.Inputs.NetworkSimStaticIpConfigurationArgs
     ///             {
-    ///                 AttachedDataNetworkId = testdataazurermMobileNetworkAttachedDataNetwork.Id,
-    ///                 SliceId = test.Id,
+    ///                 AttachedDataNetworkId = test.Id,
+    ///                 SliceId = testazurermMobileNetworkSlice.Id,
     ///                 StaticIpv4Address = "2.4.0.1",
     ///             },
     ///         },

repo: pulumi/pulumi-azure


text:
Inputs failed to validate in the Task resource

What happened?
Importing an existing Task gives the following error:
warning: One or more imported inputs failed to validate. This is almost certainly a bug in the `snowflake` provider. The import will still proceed, but you will need to edit the generated code after copying it into your program.
warning: snowflake:index/task:Task resource 'usages' has a problem: Conflicting configuration arguments: "schedule": conflicts with after. Examine values at 'Task.Schedule'.
warning: snowflake:index/task:Task resource 'usages' has a problem: Conflicting configuration arguments: "after": conflicts with schedule. Examine values at 'Task.After'.

Steps to reproduce
pulumi import snowflake:index/task:Task usages 'DATABASE|SCHEMA|TASK'

Then pulumi up
Expected Behavior
We should be able to run pulumi up straight after import with no error
Actual Behavior
Running pulumi up after import gives the following error:
    error: 1 error occurred:
        * updating urn:pulumi:prod::snowflake::snowflake:index/task:Task::usages: 1 error occurred:
        * error retrieving root task MY_TASK: failed to locate the root node of: []: sql: no rows in result set

It seems like it's trying to fetch a task named "[]" (which doesn't exist), whereas my task is actually a root task being run on a schedule and not after a given task.
Maybe after has a default value of [] and is messing around ?
Versions used
Dependencies:
NAME              VERSION
black             22.6.0
flake8            4.0.1
pip               22.0.4
pulumi-snowflake  0.10.0
pylint            2.14.4
pyright           1.1.256
Additional context
No response
Contributing
Vote on this issue by adding a 👍 reaction.
To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).

@LouisAmon Thanks for submitting this issue. Could you provide the task definition, replacing the actual SQL query with SELECT 0 so as to provide a minimal and portable example? I'm not seeing this behavior with the following task, and I'm not especially familiar with Snowflake:
create or replace task jkodroff_test warehouse=compute_wh schedule = '60 minute' as select 1

I ran into this too. It seems to be an issue with terraform-provider-snowflake used by pulumi-snowflake. It was resolved in v0.37.0 of the terraform-provider-snowflake. Upgrading to at least v0.11.0 of pulumi-snowflake should solve the issue.

source: gharchive/issue

authors: LouisAmon jkodroff samanthawalter

repo: pulumi/pulumi-snowflake

license_type: permissive

license_source: github-api


text:
Pulumi Registry: Exoscale Listing is missing

The Link in the Readme to the URL https://www.pulumi.com/registry/packages/exoscale/api-docs/ ends up with an error 404.
https://github.com/pulumiverse/pulumi-exoscale/blob/192808231dcb4966391d9efbd9a43b2e48c27544/README.md?plain=1#L57
Also, I get on a "non-pre-cached" system an error while installing the Exoscale plugin manually pulumi plugin install resource exoscale v0.1.2.
error: [resource plugin exoscale-0.1.2] downloading from: failed to download plugin: exoscale-0.1.2: 403 HTTP error fetching plugin from https://get.pulumi.com/releases/plugins/pulumi-resource-exoscale-v0.1.2-windows-amd64.tar.gz

Is there a misunderstanding on my side (changed URL)? Or is there something wrong?
Btw: I cannot find it here https://www.pulumi.com/registry/ too.
Thanks for checking.

Hi @matthiasbaldi,
thanks for creating the issue. Yes the PR to add this provider to the Pulumi registry is still on progress. See https://github.com/pulumi/registry/pull/1553 for the current state.
I prepared everything in the Readmes for the moment it's available in the registry.

Ahhh okay. I thought this is merged already.
Okay then this is related. 👍

As we saw today, it got merged 👍 👌
https://www.pulumi.com/registry/packages/exoscale/api-docs/compute/

Hi @matthiasbaldi,
-> https://www.pulumi.com/registry/packages/exoscale/
Ready to use, I just tested it! ❤

authors: dirien matthiasbaldi

repo: pulumiverse/pulumi-exoscale


text:
Adorner effect when drag over custom template

I have a custom listview template that contains several line of text like below

However, the adorned effect is shown only if my cursor is not overlapping these text. Is there any way to make the adorner effect be always shown? I tried ShowAlwaysDropTargetAdorner but seems not work

@Antastsy7 It would be nice if you can show the ListView/ListViewItem template. And how you do the drag&drop operation. Maybe you can make a simple app which reproduces this issue. With this it's then easier to debug and understand this. Thx

Here is my template

Here is my template, just a stackpanel with some textboxs

https://github.com/Antastsy7/dragdropdemo
Just did a sample for this, while I drag the item from left to right listbox, if the item is overlap with contents on it, the adorner effect does not show.

@Antastsy7 Thx for the sample! You have 2 options to get this working, because the TextBox allows hit testing:
First you can try useing dd:DragDrop.DropEventType="Tunneled" on the target ListBox
<ListBox
    Grid.Column="1"
    ItemsSource="{Binding CustomDatas}"
    dd:DragDrop.IsDropTarget="True"
    dd:DragDrop.DropEventType="Tunneled"
    dd:DragDrop.ShowAlwaysDropTargetAdorner="True"
    dd:DragDrop.UseDefaultDragAdorner="True"
    dd:DragDrop.DropHandler="{Binding}"
    >
    <ListBox.ItemTemplate>
        <DataTemplate>
            <StackPanel>
                <TextBox Text="{Binding Name}" />
                <TextBox Text="{Binding Description}" />
            </StackPanel>
        </DataTemplate>
    </ListBox.ItemTemplate>
</ListBox>

Or you can set IsHitTestVisible="False"
<ListBox
    Grid.Column="1"
    ItemsSource="{Binding CustomDatas}"
    dd:DragDrop.IsDropTarget="True"
    dd:DragDrop.ShowAlwaysDropTargetAdorner="True"
    dd:DragDrop.UseDefaultDragAdorner="True"
    dd:DragDrop.DropHandler="{Binding}"
    >
    <ListBox.ItemTemplate>
        <DataTemplate>
            <StackPanel IsHitTestVisible="False">
                <TextBox IsHitTestVisible="False" Text="{Binding Name}" />
                <TextBox Text="{Binding Description}" />
            </StackPanel>
        </DataTemplate>
    </ListBox.ItemTemplate>
</ListBox>

oh right that works perfectly!!! thanks so much!!!!!!!!!!!!!!!

license_source: bigquery


text:
[Feature request] allow to destroy all browser targets before close

Bug description
There is no way to destroy all targets of a browser before closing it...
Steps to reproduce the problem:
browser.on('targetcreated', function (target) {
    console.log(target.type() + ' was created');
});

or
browser.targets()
puppeteer does not allow to properly manage the targets of a given browser (except of "page" type : target.page().close())
Puppeteer version
9.1.1
Node.js version
12.16.1
npm version
6.13.4
What operating system are you seeing the problem on?
Linux
Relevant log output
No response

FYI you can try using CDP directly to close the target:

https://chromedevtools.github.io/devtools-protocol/tot/Target/#method-closeTarget
https://github.com/puppeteer/puppeteer/blob/main/docs/api.md#class-cdpsession

Feature request is still valid, Puppeteer does not offer a dedicated API for this.

The idea is to close all targets within a browser not only a target of a page.
In puppeteer, a target can have several types <"page"|"background_page"|"service_worker"|"shared_worker"|"other"|"browser">

How is it possible to close a target using cdpsession (a cdpsession is attached to a target)

Target.closeTarget dos not obviously work: "targetdestroyed" event is never emitted.
the targetdestroyed event is emitted when I call page.close() but not when I use the script below :
A target can be <"page"|"background_page"|"service_worker"|"shared_worker"|"other"|"browser">
browser.on('targetcreated', async target => {
    browserTargets.push(target);
});
browser.on('targetdestroyed', async target => {
    browserTargets.splice(browserTargets.findIndex(a => a._targetId === target._targetId) , 1);
});

for (const target of browserTargets) {
    targetClient = await target.createCDPSession();
    await targetClient.send('Target.closeTarget');
}

while i am connect to browser through websocket and i used this method Target.setDiscoverTargets for target creation.sometime it work fine but some time target will destroying why
it my output
"{"method":"Target.targetCreated","params":{"targetInfo":{"targetId":"128c8ff6-a1bb-46cc-9ef8-7bfe4f737d41","type":"browser","title":"","url":"","attached":true,"canAccessOpener":false}}}
{"method":"Target.targetCreated","params":{"targetInfo":{"targetId":"447BC996BD655AC97E844E1791AE9FE9","type":"page","title":"New Tab","url":"chrome://newtab/","attached":false,"canAccessOpener":false,"browserContextId":"E39A3D669A8ED5EF56B7FC943FE1DC71"}}}
{"method":"Target.targetCreated","params":{"targetInfo":{"targetId":"9805946A029A5789082D5F03F2CB994A","type":"background_page","title":"Google Network Speech","url":"chrome-extension://neajdppkdcdipfabeoofebfddakdcjhd/_generated_background_page.html","attached":false,"canAccessOpener":false,"browserContextId":"E39A3D669A8ED5EF56B7FC943FE1DC71"}}}
{"method":"Target.targetCreated","params":{"targetInfo":{"targetId":"9BAA60A1DC027766BF111B0C3B56EB26","type":"background_page","title":"Google Hangouts","url":"chrome-extension://nkeimhogjdpnpccoofpliimaahmaaome/background.html","attached":false,"canAccessOpener":false,"browserContextId":"E39A3D669A8ED5EF56B7FC943FE1DC71"}}}
{"id":1607898415,"result":{}}
{"method":"Target.targetCreated","params":{"targetInfo":{"targetId":"5734D15CC4C3A01DA62589892C4699F2","type":"iframe","title":"","url":"","attached":false,"canAccessOpener":false,"browserContextId":"E39A3D669A8ED5EF56B7FC943FE1DC71"}}}
{"method":"Target.targetInfoChanged","params":{"targetInfo":{"targetId":"5734D15CC4C3A01DA62589892C4699F2","type":"iframe","title":"chrome-untrusted://new-tab-page/one-google-bar?paramsencoded=","url":"chrome-untrusted://new-tab-page/one-google-bar?paramsencoded=","attached":false,"canAccessOpener":false,"browserContextId":"E39A3D669A8ED5EF56B7FC943FE1DC71"}}}
{"method":"Target.targetDestroyed","params":{"targetId":"9BAA60A1DC027766BF111B0C3B56EB26"}}
{"method":"Target.targetDestroyed","params":{"targetId":"9805946A029A5789082D5F03F2CB994A"}}
"

Target.closeTarget requires a target ID as a parameter. We are likely not going to support this for all targets: pages can already be closed and now workers can be closed too https://pptr.dev/api/puppeteer.webworker.close/ Since some target types cannot be destroyed in a good way (e.g., iframes or browser) it does not make sense to support it for all targets.

authors: Devhercule OrKoN Rajkumar0718

repo: puppeteer/puppeteer


text:
(PUP-6140) Acceptance test for init.d services when systemd is default

An acceptance test for managing init.d services on systems where the
systemd provider is the default. This doesn't work without PUP-2744,
which ensures the fallback on RedHat systems is the RedHat provider

which works - instead of the init provider - which doesn't on RedHat.

It also helps verify that managing SysV init scripts continues to work
after a fix for PUP-5296/PUP-5825, where enabled status was reported
incorrectly.
[skip ci]

This should be extended to the level of coverage the launchd provider has. @whopper is working on some cleanup to support that.

CLA signed by all contributors.

👍

We should add Debian testing to this as well.

@er0ck this is the start of the test. Looking at expanding it to all EL and Debian platforms, and sharing implementation with the launchd acceptance test.
There's a little overlap with service_enable_linux, but that test is covering the default providers. This ensures that, where the system default doesn't apply, the fallback provider works correctly.

definitely some benefit in sharing code, obviously, but lots of benefit for keeping the actual test isolated so we can quickly tell what breaks when the test fails (subsequent asserts in a test get skipped).  trade-offs here constantly in cognitive load of understanding the test coverage when looking in the acceptance dir, and creating lots of isolated, independent, slow tests.

source: gharchive/pull-request

authors: MikaelSmith er0ck puppetcla whopper

repo: puppetlabs/puppet


text:
(PUP-5027) Prevent that metadata.json is parsed multiple times

This commit ensures that the number of system calls needed to determine that
a metadata.json file exists and to load it, is kept to a minimum. The check
to see if the file exists was removed. Instead, an attempt is made to read
the file directly and the ENOENT error that might be the result is rescued.
The file is also read and parsed only once.

CLA signed by all contributors.

authors: puppetcla thallgren


text:
(PUP-7736) Conditionally require 'puppet'

The generate_ast_model rake task requires puppet, which requires facter.
At build-time, we don't always have facter gems available (but we also
don't need the tasks defined in generate_ast_model). To make it possible
to build puppet, we need to not load the generate_ast_model tasks if
facter is not available.

👍

Could you add a ticket for this?

Just out of curiosity - this rake task has been in since February.. did something change so that we can no longer build?

@MosesMendoza typically we only build the tarball/gem near release time (though it's a good idea for devs to kick-off uber_builds of puppet periodically, to make sure things haven't broken on the builders but not locally), so we probably haven't build puppet5 tarballs/gems ever, or if we did we got incredibly lucky about which builder the job kicked off on, most don't have facter/puppet installed as a gem.

@MosesMendoza opened PUP-7736

Ah I see. so our regular vanagon build that we use in CI doesn't load these rake files, but the automation for the tarball and gem creation do.

CLA signed by all contributors.

authors: McdonaldSeanp MosesMendoza puppetcla underscorgan


text:
Revert "Merge pull request #6550 from joshcooper/ticket/4.10.x/PUP-82…

…67-beaker-subcommands"
This reverts commit c928ddd4e8af08de2985691ca6dc41678b794486, reversing
changes made to 24102cf835fbb3381d096c4004db94e33d5c90ca.
Beaker subcommands do not play well with additional arguments passed in
with ENV['OPTIONS']. This causes acceptance tests to break when they
pass in OPTIONS='--test-tag-exclude=server'.

Jenkins, please test this

jenkins please test this

I'm pretty darn confident this is what's currently making things red, but would be nice to confirm it's not masking anything else nefarious before we land this and try to run full CI again. Kicked jenkins to get a bit of insight

authors: branan melissa


text:
(maint) PQL fixes & corrections from Scott Walker

Convert examples to double quotes, so they can be cut & paste using the curl example
Show better path and array regexp examples that actually work
Use a better explicit subquery example for multiple fields
Allow question marks in a field
Add more tests for the above bugs/problems

Signed-off-by: Ken Barber ken@bob.sh

Refer to this link for build results (access rights to CI server needed):
http://jenkins-enterprise.delivery.puppetlabs.net/job/enterprise_puppetdb_init-multijob_githubpr-master/547/
Test PASSed.

Refer to this link for build results (access rights to CI server needed):
http://jenkins-enterprise.delivery.puppetlabs.net/job/enterprise_puppetdb_init-multijob_githubpr-master/551/
Test PASSed.

:+1: from me, just one question

authors: kbarber puppetlabs-jenkins senior

repo: puppetlabs/puppetdb


text:
apt-key is deprecated for key usage on debian and ubuntu

## Describe the Bug
apt::key use tha apt-key command which is deprecated
https://manpages.debian.org/bullseye/apt/apt-key.8.fr.html
NAME
apt-key - Deprecated APT key management utility
## Expected Behavior
The module should put keys in
/etc/apt/trusted.gpg.d/${name}.gpg
## Steps to Reproduce
Use apt::key in any modern debian and you will got the error:
Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.
each time you use apt.
## Environment

Version debian 10+, ubuntu 22.04+
Platform  all the debian familly

Additional Context
as apt-key is deprecated the module should add the keys in /etc/apt/trusted.gpg.d
and not anymore use the debian deprecated utility apt-key.
best regards,
Ghislain.

Duplicates #1034.

authors: aqueos kenyon

repo: puppetlabs/puppetlabs-apt


text:
Error on Emacs 27: load-history-filename-element: Wrong type argument: stringp, (require . server)

every time I open a org file or enter org-mode manually, it shows Wrong type argument: stringp, (require . server) on minibuffer. I tried reset whole .emacs.d to the latest status of origin master, it persist.

Upgrade the emacs version.
https://emacsformacosx.com/ the newest version is 27.1-1

I'm running 27.1 now, having upgraded from 26.3, and I haven't seen this issue at all. Additionally, all the startup tests pass in CI for all the stable versions of Emacs. If you can provide a method for reproducing this, let me know.

Upgrade the emacs version.
https://emacsformacosx.com/ the newest version is 27.1-1

It works!!! thank you!!!

I'm running 27.1 now, having upgraded from 26.3, and I haven't seen this issue at all. Additionally, all the startup tests pass in CI for all the stable versions of Emacs. If you can provide a method for reproducing this, let me know.

Thanks for the reply, the problem is gone after I upgraded to 27.1-1   :-)

authors: luozikuan purcell vietor


text:
Implements Index for NonEmptyArray

What does this pull request do?
Implements Index for NonEmptyArray
Where should the reviewer start?
https://github.com/purescript-contrib/purescript-profunctor-lenses/pull/104/files#diff-cf192d53c3af7699c0d259d7bf1e8ba6R71
How should this be manually tested?
It's basically copypasta of the Array implementation.
Other Notes:
No tests. Should I add some?

Thanks 👍

authors: garyb reactormonk

license: mit


text:
[WIP] Remove Eff in favor of Effect

In furtherance of #93 I've swapped out Eff for Effect. Once this PR is merge (in the not too distant future :pray:) work can being on breaking the non-DOM related web APIs out into their own packages.
Everything builds, but there's a transitive dependency on Aff via https://github.com/bodil/purescript-test-unit.
Until Aff (and then Test.Unit) is updated to use Effect or a test library not reliant on Aff replaces it, a merge is not possible.

Thanks for your work on this, I'll merge where it's at now, break out anything that isn't strictly dom-ish, and then make the 0.12 branch from what's left 👍

I can still work on breaking things out if you'd like. I'm already working on https://github.com/purescript-web/purescript-web-storage/pull/1 and https://github.com/purescript-web/purescript-web-socket/pull/1

Ah, I've been doing those too :smile:... I'm trying to work out a good way of breaking things up, so have been doing a lot of stuff locally. One thing that's happened so far is I've extracted specifically the DOM part of the the spec out as its own thing (purescript-web-dom) so we don't just end up having these packages pull in almost everything anyway.
I thing -web-dom has enough stuff in it for the other libraries too all work from, as it has important types like Node, Event, and EventTarget, so I think the HTML part of the spec will not be necessary as a requirement for this other stuff... will see how it goes anyway. I'm intending on having this somewhat usable today.

Sounds good! I'll halt on my PRs 😄

I'm trying to work out a good way of breaking things up

I'm putting together a straw man  categorization of Web APIs. The idea is to have  a plan for breaking things up now and extending with additional APIs later. I'll open an issue in this repo once it's ready.

authors: gabejohnson garyb

repo: purescript-web/purescript-dom


text:
Joplin support

New module supported : https://github.com/laurent22/joplin
Todo : docs

fixed 32175655d477a6d697c50a4ac0a7a5368b42786e

repo: push-things/django-th


text:
setNotificationListener is not working for ios

I followed guide in https://pushy.me/docs/additional-platforms/cordova and everything is working for android, in ios register device is also working but setNotificationListener is never called. I also tested setNotificationClickListener which is also not called when we tap on the notification

Hi @CrackerakiUA,
We'd be glad to assist.

Where are you calling Pushy.setNotificationListener((data) => {})?

We recommend placing this method invocation in your www/js/index.js file's onDeviceReady() method.
Please move it there and see if it resolves the issue.

Does your Cordova app use any other push plugin such as phonegap-plugin-push or OneSignal? These may collide with the Pushy SDK.

I will try it there for testing, I am using it inside of device ready. As I mentioned Pushy.register(function (err, deviceToken) {}); is giving me the deviceToken normally and app is receiving pushes.
No, Pushy is the only push plugin I am using on the app.

Hi @CrackerakiUA,
Please update on whether moving the method to onDeviceReady() resolves the issue.

This issue was due to I was using xcode 10 and plugin was not working. After build  on latest xcode everything was working smoothly.

authors: CrackerakiUA pushy-me

repo: pushy-me/pushy-cordova


text:
🛑 Media Fetcher is down

In ba21061, Media Fetcher ($SITES_URL_DOWNLOADS) was down:

HTTP code: 503
Response time: 503 ms

Resolved: Media Fetcher is back up in a139614.

Resolved: Media Fetcher is back up in 5794078.

license: MIT


text:
🛑 Media Fetcher is down

In c5d0dc0, Media Fetcher ($SITES_URL_DOWNLOADS) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Media Fetcher is back up in e789b16.

Resolved: Media Fetcher is back up in e9c673f.


text:
Feature/request id header in response

Added supporting of header echoing back for Express, Koa, Hapi, Fastify;
Added tests to verify header echoing back;
Relates #1

Thanks for comments. I've updated the PR.

@denis-buravlev thanks once again for your contribution!

authors: denis-buravlev puzpuzpuz

repo: puzpuzpuz/cls-rtracer


text:
Add URL parameter mechanism to automatically progress to game states

This enhancement is intended to speed up development by allowing developers to quickly jump to the game state they are currently working on.
Phaser has an API that provides for easy parsing and access to parameters that the user can provide via the web URL.
For example,
http://locahost:8081/gjweb/index.html?state=MainMenu
http://locahost:8081/gjweb/index.html?state=Game
When the Preloader state is ready to progress to the "next" state, it should look to see if the user provided the "state" parameter. If so, the value should drive the name of the state which is changed to next.
Extra credit or additional enhancement:
If possible, do a quick check to see if such a state with the supplied name exists. If it does not, issue an error message to the console error log.

Added ability to jump straight to a screen after preloader completes, by specifying state parameter in the host URL.

repo: puzzud/gjweb


text:
Unc0ver with last release issue Iphone 5S 12.1.2

Describe the bug
A clear and concise description of what the bug is and what you expected to happen.
To Reproduce
Steps to reproduce the behavior:

Go to '...'
Click on '....'
Scroll down to '....'
See error

Screenshots
If applicable, add screenshots to help explain your problem.
Device (please complete the following information):

iOS Version:
iOS Device:
unc0ver Version:

Place an "x" between the brackets if true:

[ ] this is a bug others will be able to reproduce
[ ] this issue is present with all tweaks uninstalled(except for default packages) or disabled
[ ] this issue is present after a rootfs restore
[ ] this issue is present on the latest version of unc0ver

Logs
If applicable, add logs or error messages here.

https://ghostbin.com/paste/x8ckw/download


text:
Update all dependencies at once

Since https://github.com/dependabot/dependabot-core/issues/5766 was recently fixed, dependabot opens 5 PRs a day to update all dependencies.
This PR will release lock of 5 PRs, and once dependabot will run - I will open another PR with undoing the changes here.

No more urgent (I hope this is the right word), as dependabot ended to update all dependencies.
See #472.

repo: py-mine/mcstatus


text:
Plotter-Object as parameter for plotting-functions

It would be nice to give an optional plotter-object to plotting-functions, which is used instead of creating a new one. This would enable the use of pv.Plotter(shape=(2, 2)) for multiplots.

duplicate of #424 ^^

Agreed, general_plotter needs more work...

repo: pyansys/pymapdl


text:
[Bug]: Binary operators on concatenations assume that each concatenation has the same number of orphans

PyBaMM Version
develop
Python Version
3.12
Describe the bug
If a binary operator, such as +, is invoked with 2 concatenations (i.e. isinstance(left, pybamm.Concatenation) and isinstance(right, pybamm.Concatenation) == True), and the concatenations have a different number of orphans, the "extra orphans" are dropped. This can be easily seen here.
This is causing reaction heating to not be present in DFN half-cell models (see comments in #4557)
Steps to Reproduce
no MWE yet, but should be self evident in the code.
Relevant log output
No response

I think there are two different options for "solving" this:

Raise an error when this situation occurs
Pass the identity of the "unmatched orphans".

I implemented (1) to check how impactful it will be, and the only test that fails is the specific case I found this bug in: Half-cell DFN models. Therefore, I am of the opinion that we should implement (1) and fix the underlying issue that causes it in the half-cell case.

On board with option 1.

authors: aabills rtimms

repo: pybamm-team/PyBaMM


text:
step by step instructions for windows users

based on WSL - describe how WSL works
virtual-env, how to install. remember to re-activate
how to install scikits.odes dependencies

based on the exact order

TO INVESTIGATE: file saving/creating between WSL and windows

For file saving/creating Visual Studio Code works very well and you can get it to run directly in WSL. It is a bit tricky to set up and you need to open a port (not sure if that is the right wording) so you can see the plots in Windows. We could suggest that Windows users do that in the basic instructions (if they are not advanced users probably they won't have a preference about the editor).

authors: ferranbrosa martinjrobins


text:
[COMMS] - Draft email to invite mentors from 2019

Draft a small email that we can send to the previous mentors in case they want to be involved again

Hi ,
Thank you so much for mentoring at PyCon Mentored Sprints in 2019! With your help, it was a great success and everyone was enjoying contributing to open-source.
We are proud to announce that the Mentored Sprints will be coming back this year at PyCon, on 17th April (Friday) at  to . We would like to invite you once again to join us. For more information about the sprint, you can visit the PyCon US hatchery program website: https://us.pycon.org/2020/hatchery/mentoredsprints/
We would love to see you again!
Best,
PyCon Mentored Sprint Organizing Team

authors: Cheukting trallard

repo: pycon-mentored-sprints/organisational


text:
Create function for email text formating

Create function for email text formatting. Currently we use just format on python text which raises exception if in email body is variable unknown for the format. Therefore email is not send I think it is better to send untranslated variable in email as not send email at all.

so we want a tool to admin the email templates or just handle invalid format?

I was thinking to build a function in utils that will handle the whole email notification. In general we always have to check if setting is enabled, than collect the variables, format them and send the email, and check and log the exceptions. It seems that in this pattern for all emails several things are repeating.
My idea was to build a function that will do the email sending and handle all exceptions, and we will use this function for sending. eg. if mail is configured inappropriately if will fail here, if the format will wrong it will fail here, etc...
We should also update the admin area so admin is not allowed to store wrong email, but I would suggest that as a phase two ;) so it is not huge issue.

It seems interesting, I would like to take care about it

PR merged.

repo: pyconsk/django-konfera


text:
Short project name causes failure in flake8-isort

What happened?
flake8-isort fails on two files if the project name is too short.
For my project name with 8 characters, it fails in [project_apps_dir]/users/tests/test_views.py and [project_apps_dir]/users/urls.py
Originally posted by @alexche77 in https://github.com/pydanny/cookiecutter-django/issues/2502#issuecomment-638589822
What should've happened instead?
No flake8 failure. All style failures should either not be there, or be fixed by pre-commit hooks.
Steps to reproduce
# cookiecutter gh:pydanny/cookiecutter-django --no-input project_slug=abcdefgh
# git init
# pre-commit install
# git add .
# git commit
# (pre-commit fix cycle for trailing-whitespace, end-of-file-fixer and black)
# git commit
Trim Trailing Whitespace.................................................Passed
Fix End of Files.........................................................Passed
Check Yaml...............................................................Passed
black....................................................................Passed
flake8...................................................................Failed
- hook id: flake8
- exit code: 1

abcdefgh/users/urls.py:3:1: I001 isort found an import in the wrong position
abcdefgh/users/urls.py:4:1: I001 isort found an import in the wrong position
abcdefgh/users/urls.py:5:1: I001 isort found an import in the wrong position
abcdefgh/users/urls.py:6:1: I001 isort found an import in the wrong position
abcdefgh/users/urls.py:7:1: I001 isort found an import in the wrong position
abcdefgh/users/tests/test_views.py:8:1: I001 isort found an import in the wrong position
abcdefgh/users/tests/test_views.py:9:1: I001 isort found an import in the wrong position
abcdefgh/users/tests/test_views.py:10:1: I001 isort found an import in the wrong position
abcdefgh/users/tests/test_views.py:11:1: I001 isort found an import in the wrong position
abcdefgh/users/tests/test_views.py:12:1: I001 isort found an import in the wrong position

Suggested solution
Either use a different import clause depending on the project name length (ugly?), or put isortas a separate hook in pre-commit (before flake8) so it will auto-correct before flake8 runs. I tested the latter and it works.

I think we can indeed add isort to pre-commit config and autofix these issues. I think that pre-commit might fail the first time, when it does the fixes, though.
We should be aware that currently flake8-isort is imcompatible with isort 5+, hence we're still on isort 4 for now. I'm not sure if that would affect the sorting logic, we might be fine to use in a pre-commit hooks context.

I think that pre-commit might fail the first time, when it does the fixes, though.

Is this an issue? I have had pre-commit failures (fixes) on trailing-whitespace, end-of-file-fixer and black in my initial project generated by this cookie cutter, should I report them as separate issues?

We should be aware that currently flake8-isort is imcompatible with isort 5+, hence we're still on isort 4 for now. I'm not sure if that would affect the sorting logic, we might be fine to use in a pre-commit hooks context.

If isort is used in pre-commit, does it still need to be in flake8?

Is this an issue? I have had pre-commit failures (fixes) on trailing-whitespace, end-of-file-fixer and black in my initial project generated by this cookie cutter, should I report them as separate issues?

That's a small annoyance IMO, I don't think there is an easy way to fix black 100% of the time, but the others would be nice if not too complicated.

If isort is used in pre-commit, does it still need to be in flake8?

Probably not, but since we have it in our requirements, people might use it in their CI via flake8:
https://github.com/pydanny/cookiecutter-django/blob/ed90a04bdb981e7e7c5c7419e2727a822f5efc01/{{cookiecutter.project_slug}}/requirements/local.txt#L29
I'm not sure if this is actually a problem, but I thought I mention that we're a bit in a transitional state currently with versions, just in case there isort 4 and 5 end up with different formatting. But yes, using isort as pre-commit hook means we no longer need flake8-isort in the flake8 pre-commit hook.

authors: browniebroke janfabry

repo: pydanny/cookiecutter-django


text:
Celery breaks upgrading from 4.4.6 to 4.4.7

What happened?
The requirements in Django Cookie Cutter changed Celery from 4.4.6 to 4.4.7 recently. I upgraded my projects that were based off of this project, and then I could no longer get my tasks to be pulled in to production. There is more on this issue in Celery issues
What should've happened instead?
Production tasks should have been properly registered as tasks. Instead, when you invoke tasks in production, it says that there are no registered tasks. This can be verified by running celery from an init.d script, opening a shell on production, and executing the following tasks:
from celery.task.control import  inspect
i = inspect()
i.registered_tasks()

Additional details

Host system configuration:

Celery is run on ubuntu via an init script generating a command like the following: celery -c /home/ubuntu/venv/bin/celery multi start w1 --workdir=/home/ubuntu/project --pidfile=/var/run/celery/%n.pid --logfile=/var/log/celery/%n%I.log --loglevel=INFO --app=config.celery_app --time-limit=300 --concurrency=4. This will not pass the --app=config.celery_app to the workers.
Version of cookiecutter CLI (get it with cookiecutter --version): 1.7.2
OS: Problem happens using production settings but not local settings.
Python version: 3.8
Docker versions (if using Docker): N/A

Options selected and/or replay file: Choosing Celery with the latest build of django-cookiecutter will use 4.4.7 instead 4.4.6 which exhibits the problem.

The solution is simply to downgrade to Celery 4.4.6 until Celery pushes out a new version. Posting here to save other people a lot of time and headaches trying to debug what was happening with this recent upgrade.

I saw this issue in Celery a few days ago, but didn't get around to fix it here. We shoudl definitely downgrade if it's affecting us.

Actually this is pretty interesting. The fix is using CELERY_APP as an environment variable, according to that repo, for now (which happens to be in the entrypoint file) since I didn't realize that my celery 4.4.7 on Docker was working fine. This may just be a local setup issue.

@Andrew-Chen-Wang I think you're right about that. All those inspect tasks fail to be registered iff flower gets started before celery. Somehow that wasn't an issue before 4.4.6 perhaps because of that env var you mention but I have no idea about that.
To resolve the issue, I added a custom script that waits for 1 or more celery workers to be online and only then the flower service gets started. And so far everything seems to be working fine.
Also, celery 5.0.0 has quite a few breaking changes ....

authors: Andrew-Chen-Wang arnav13081994 browniebroke jskitz


text:
Error when building docs

After updating to the latest version, i've been getting a new error which I cannot seem to resolve.
Traceback
Traceback (most recent call last):
  File "c:\users\isa\appdata\local\programs\python\python39\lib\site-packages\sphinx\events.py", line 96, in emit
    results.append(listener.handler(self.app, *args))
  File "c:\users\isa\appdata\local\programs\python\python39\lib\site-packages\pydata_sphinx_theme\__init__.py", line 223, in update_and_remove_templates
    context[section] = list(filter(_remove_empty_templates, context[section]))
  File "c:\users\isa\appdata\local\programs\python\python39\lib\site-packages\pydata_sphinx_theme\__init__.py", line 218, in _remove_empty_templates
    rendered = app.builder.templates.render(tname, context)
  File "c:\users\isa\appdata\local\programs\python\python39\lib\site-packages\sphinx\jinja2glue.py", line 196, in render
    return self.environment.get_template(template).render(context)
  File "c:\users\isa\appdata\local\programs\python\python39\lib\site-packages\jinja2\environment.py", line 1304, in render
    self.environment.handle_exception()
  File "c:\users\isa\appdata\local\programs\python\python39\lib\site-packages\jinja2\environment.py", line 925, in handle_exception
    raise rewrite_traceback_stack(source=source)
  File "C:\Users\Isa\AppData\Local\Programs\Python\Python39\Lib\site-packages\pydata_sphinx_theme\theme\pydata_sphinx_theme\components\navbar-logo.html", line 13, in top-level template code
    {% set is_logo = "light" in theme_logo["image_relative"] %}
jinja2.exceptions.UndefinedError: 'dict object' has no attribute 'image_relative'

The above exception was the direct cause of the following exception: ...

Extension error (pydata_sphinx_theme):
Handler <function update_and_remove_templates at 0x000001CA9046AEE0> for event 'html-page-context' threw an exception (exception: 'dict object' has no attribute 'image_relative')

Pydata Sphinx Theme Version

0.13.4.dev0

Sphinx Version

7.0.1

Python Version

3.9.5

Getting the same error, using Pydata Sphinx Theme v0.13.0 and Sphinx v6.1.3

@Seniatical , For the first issue I think the problem is coming from the Version 7 of Sphinx. this has been solved since then in main but I would suggest to pin version of Sphinx for the time being.
@mlange-42, Could you update your version to the latest one (0.13.4) I remember working on this issue some time ago, it should be available now.

v0.13.4 is not available via pip, and the repo also has no such tag. Installing from the main branch of the repo does not solve the issue.

my bad it's 0.13.3 but if you still face it with main it's an issue.
Would you mind sharing your conf.py ?

I've just release v0.14.0 you can give it a try but I guess it won't change anything from your side as you already checked with main.
Would you minde sharing your conf.py so I see what parameter you use ? or even better the repository you are working with so I can make a fork for testing purposes.

I have this error with pydata_sphinx_theme==0.14.1, but I am unsure if this is due to sphinx-multiversion or pydata_sphinx_theme. Link to the full error, including system info and MRE here.

@adam-grant-hendry your error seems to be related to sphinx-multiversion only. you should try to run the call that is raising the rror to get a more meaningful traceback.
This issue is only focusing on the management of the image_relative that seems broken for some of our users.

repo: pydata/pydata-sphinx-theme


text:
to_dataset lossy

I am looking at saving a DataArray to netcdf. This appears to require turning into a dataset. However, the conversion to and from datasets appears to be lossy.
d = DataArray(...)
n = d.to_dataset().to_array()
looses attrs and the name of the DataArray gets moved to a "variable" coordinate.
I can manually add the attrs to the created dataset, but it seems like they should either be transfered by default, or have an option to preserve them. Is there a reason this is not done?

If you don't use to_array() but simply acces the variable everything is fine:
import xarray as xr
da = xr.DataArray([1, 2, 3], name='da', attrs={'myattr':3})
da.to_dataset().da
<xarray.DataArray 'da' (dim_0: 3)>
array([1, 2, 3])
Coordinates:
  * dim_0    (dim_0) int64 0 1 2
Attributes:
    myattr: 3

Ah thanks. Would you be be interested in a pull request to make that more clear in the docs?

Sure, improvements to the docs are always welcome!
Note that in the next release of xarray we will have a DataArray.to_netcdf method (and open_dataarray).

Oh, that will be excellent. When is that coming out?
On Fri, Oct 14, 2016 at 4:12 PM, Stephan Hoyer notifications@github.com
wrote:

Sure, improvements to the docs are always welcome!
Note that in the next release of xarray we will have a DataArray.to_netcdf
method (and open_dataarray).
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
https://github.com/pydata/xarray/issues/1047#issuecomment-253907612, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AArz9M4l7AKamroG_E8swXNbZoxxxzJIks5qz-IigaJpZM4KXT2N
.

I'm trying to get a couple of big PRs (#1017 and #1028) into the next major release. So probably 2-4 weeks.

authors: fmaussion shoyer tdimiduk

repo: pydata/xarray


text:
Remove pd.Panel checks

Since it appears the min pandas version is 1.1, these Panel checks should never be true.

Looks good - if you remove the unused imports we can merge this.
xarray/core/merge.py:22:1: F401 '.pdcompat' imported but unused
xarray/core/dataarray.py:29:1: F401 '.pdcompat' imported but unused

xarray/core/dataarray.py

Thanks, addressed

@mroeschke, could you add an entry to the https://github.com/pydata/xarray/blob/main/doc/whats-new.rst?

authors: andersy005 mathause mroeschke


text:
Get Appveyor to build GEOS and pygeos whl files for Windows

This PR builds binary .whl files for Windows on AppVeyor, and the artefacts should be suitable to be uploaded to PyPi as discussed on #98
GEOS static and dynamic libraries are built with MSVC 2017 for Python 3.5-3.8, and the *.dll files (required by lib.cp38-win_amd64.pyd) are copied to the .whl file.
See working example at https://ci.appveyor.com/project/mwtoews/pygeos
It's currently draft as I'm uncertain that this repo is the best place to put this code. Is https://github.com/pygeos/pygeos-wheels a better home? (I'll admit I'm not 100% certain what's going on with multibuild)

This is great, thanks for pushing this. I enabled appveyor on pygeos-wheels, so could you instead move the PR there?
When committing you could just put [skip travis] in your commit messages so that only appveyor is triggered.

Closing through https://github.com/pygeos/pygeos-wheels/pull/1

authors: caspervdw mwtoews

repo: pygeos/pygeos


text:
None of the custom renderers change mouse cursor

imgui wants to change cursor state when it is hovering over something reactive (window edge for resizing, for example).
pyimgui lacks this functionality and cursor is always the default one which feels counterintuitive.
I'm using windows 10.
I've tested pygame and glfw renderers (Demo>Configuration>Backend Flags shows that HasMouseCursors flag is not set). sdl2 renderer doesnt work at all, it just shows white screen, so im not sure if it supports changing cursor state.

Yeah, I noticed this issue as well with the glfw renderer. It's not too difficult to implement a software rendered cursor (probably not as fast as a hardware cursor but more than good enough for my use cases) with your own cursor images loaded from file, and drawn on top using the imgui foreground draw list. Would be good to have a builtin solution though.

pyglet changes the cursor for me:

@KinoxKlark Against which branch should we make PR's for this?

pyglet indeed has this feature, i can confirm
it also has this feature: when imgui viewport is not focused and you interact with it in any way (hover over something, scroll something, ...), it responds.
pygame and glfw backends process events only if their window is focused
it also works well with my gpu, i no longer see artifacts (they are not caused by imgui or pyimgui, i guess they are caused by bad gpu drivers)
example of such artifact:

authors: Aman-Anas denballakh learn-more

repo: pyimgui/pyimgui


text:
Two relevant links

There has been recently (2019-20) similar activity at https://github.com/python-data-acquisition/meta/issues/

A more up-to-date list of fragmented python-instrumentation interfaces is here: https://ethercalc.net/1anmq248ktu6

This is mostly to prevent fragmentation of defragmentation efforts :)

While we're at it, it might make sense to also link to the discussion where that ethercalc sheet comes from (and yet another venure for--mostly past--defragmentation discussion):
https://github.com/LabPy/labpy-discussion/issues/23

authors: FilipDominec bilderbuchi

repo: pyinstruments/pyinstruments


text:
Conda release test failure

The weekly CI testing the latest conda release (conda install -c conda-forge pyiron_workflow) failed. The error was consistently ModuleNotFoundError: No module named 'pyiron_snippets'.
This is actually no shocking and just a side effect of having made a release so close to the CI cron time; it successfully checked out the code for 0.9.0 (which uses pyiron_snippets, but this version isn't live on conda yet so the installed package was 0.8.0.
We could consider updating the script to more specifically try to conda-install the same version as the tag; the test still would have failed, it just would have been more obvious why. Given that this only took about two minutes to figure out, I am unmotivated to make such a change.

This is just documentation for the failure.


text:
build.rs will panic on windows when run as regular user.

https://github.com/pykeio/ort/blob/584a6e3479dcdc4ea97e5886f569101c758a6384/ort-sys/build.rs#L278-L279
This code will panic if it doesn't run as administrator on windows.
Please consider replacing it with or falling back to copying the file directly.
#[cfg(windows)]
std::fs::copy(&lib_path, out_path).unwrap();

I'm aware of this. It can be fixed by enabling "Developer Mode" in Settings > For developers (W11). Windows is odd 🙃
I'm currently overhauling the build.rs; soon it'll fall back to copying if symlinking is not available.

repo: pykeio/ort


text:
Fix get_recent_tracks (and more)

Fixes https://github.com/pylast/pylast/issues/141.
_collect_nodes() contains the line:
        main = doc.documentElement.childNodes[1]

However, doc.documentElement.childNodes looks like this:
[<DOM Element: recenttracks at 0x10ba9e9e0>, <DOM Text node "u'\n'">]

Whatever used to be in index [1] is clearly not what we want now. Changing that [1] to [0] fixes it.
Without the fix:

71 failed, 85 passed
https://travis-ci.org/pylast/pylast/builds/78444843

With the fix:

63 failed, 93 passed
https://travis-ci.org/hugovk/pylast/jobs/78438621

This'll break Libre.fm. See https://github.com/pylast/pylast/issues/141#issuecomment-137420462. A more robust fix is needed.

Replaced by PR https://github.com/pylast/pylast/pull/145, which doesn't break Libre.fm support.

repo: pylast/pylast


text:
scaling control vars

Hi all - I think it’s easy for an unscaled control to go unnoticed. I think it’d be beneficial to either:

provide the option to scale control vars in the same way channels are in the DelayedSaturatedMMM class, or
raise a warning to the user if controls appear to not be scaled

Still working on PR #444 in order to address the lack of scaling

repo: pymc-labs/pymc-marketing


text:
Incompatible with pydantic 2

First of all, thanks for creating this fork!  I just used it for https://github.com/microsoft/bistring, and the only trouble I had was this error:

  File "/home/tavianator/.local/share/virtualenvs/docs-BrgkGiab/lib/python3.11/site-packages/sphinx_js/__init__.py", line 8, in <module>
    from .directives import (
  File "/home/tavianator/.local/share/virtualenvs/docs-BrgkGiab/lib/python3.11/site-packages/sphinx_js/directives.py", line 21, in <module>
    from .renderers import AutoAttributeRenderer, AutoClassRenderer, AutoFunctionRenderer
  File "/home/tavianator/.local/share/virtualenvs/docs-BrgkGiab/lib/python3.11/site-packages/sphinx_js/renderers.py", line 31, in <module>
    from .typedoc import Analyzer as TsAnalyzer
  File "/home/tavianator/.local/share/virtualenvs/docs-BrgkGiab/lib/python3.11/site-packages/sphinx_js/typedoc.py", line 765, in <module>
    cls.update_forward_refs()
  File "/home/tavianator/.local/share/virtualenvs/docs-BrgkGiab/lib/python3.11/site-packages/typing_extensions.py", line 2562, in wrapper
    return __arg(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^
  File "/home/tavianator/.local/share/virtualenvs/docs-BrgkGiab/lib/python3.11/site-packages/pydantic/main.py", line 1196, in update_forward_refs
    cls.model_rebuild(force=True)
  File "/home/tavianator/.local/share/virtualenvs/docs-BrgkGiab/lib/python3.11/site-packages/pydantic/main.py", line 450, in model_rebuild
    _model_construction.unpack_lenient_weakvaluedict(cls.__pydantic_parent_namespace__) or {}
                                                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/tavianator/.local/share/virtualenvs/docs-BrgkGiab/lib/python3.11/site-packages/pydantic/_internal/_model_construction.py", line 205, in __getattr__
    raise AttributeError(item)
AttributeError: __pydantic_parent_namespace__

Eventually I figured out that I needed to pipenv install "pydantic<2.0".

Thanks!

authors: hoodmane tavianator

repo: pyodide/sphinx-js


text:
Rename this repo to pypa/advisory-database

I propose we rename this repository to be pypa/advisory-database to make the name more clear and more inline with other advisory databases on GitHub.
Thinking about what might be depending on the name:

[x] PyPI does not use this repository directly
[x] pip-audit does not use this repository directly
[x] This repository itself does not refer to the repo name in automation and workflows
[ ] OSV refers to the name in a number of places

GitHub will redirect to the new name, but are we aware of any important external links that would be worth updating?

I'm not aware of anything.  All of the data consumers I know of are fetching from OSV

+1 to this. I don't think this would cause any issues.

Done!

authors: di oliverchang westonsteimel

repo: pypa/advisory-db


text:
pyproject: bump packaging >=23.0.0

Fixes #464.
Signed-off-by: William Woodruff william@trailofbits.com

cc @tserg: could you give these changes a spin and let us know if they resolve the issue for you? I no longer see any errors in local testing.

cc @tserg: could you give these changes a spin and let us know if they resolve the issue for you? I no longer see any errors in local testing.

Yes, the issue is now resolved. Do you have an estimate as to when the next GH action release will be? Thanks!

Glad to hear it!
I can do a patch release (both here and for the action) in a bit.

This should be fully resolved with 2.4.13 and gh-action-pip-audit 1.0.5.

authors: tserg woodruffw

repo: pypa/pip-audit


text:
Django commands work with pipenv run, but not in pipenv shell activated environment

I believe this is a unique concern after checking through open issues and reviewing the diagnose documentation, including the No module named  section.
I have pipenv 2018.7.1 (latest) installed according to the Pragmatic Installation of Pipenv instructions in a debian/contrib-stretch64 Vagrant VM running Python 3.7 (same issue in 3.6 as well). Django version 2.0.7 (latest) is installed with pipenv.
Issue description
I am able to run Django commands using pipenv run python manage.py ..., but with pipenv shell a ModuleNotFoundError exception is thrown.
Expected result
pipenv run <command> and pipenv shell + <command> should produce the same result.
$ pipenv run python manage.py check
System check identified no issues (0 silenced).

$ pipenv shell
(vagrant) $ python manage.py check
System check identified no issues (0 silenced).

Actual result
pipenv run <command> works as expected but pipenv shell + <command> produces ModuleNotFoundError
$ pipenv run python manage.py check
Loading .env environment variables...
System check identified no issues (0 silenced).

$ pipenv shell
Loading .env environment variables...
Launching subshell in virtual environment…
$  . /vagrant/.venv/bin/activate
(vagrant) $ python manage.py check
Traceback (most recent call last):
  File "manage.py", line 8, in <module>
    from django.core.management import execute_from_command_line
ModuleNotFoundError: No module named 'django'

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "manage.py", line 14, in <module>
    ) from exc
ImportError: Couldn't import Django. Are you sure it's installed and available on your PYTHONPATH environment var
iable? Did you forget to activate a virtual environment?

Steps to replicate
$ python3 -m pip install --user pipenv
$ cd myproject
$ pipenv install django
$ pipenv shell
(myproject-gKDsaKU3) $ python manage.py check

$ pipenv --support
Pipenv version: '2018.7.1'
Pipenv location: '/home/vagrant/.local/lib/python3.7/site-packages/pipenv'
Python location: '/usr/bin/python3.7'
Other Python installations in PATH:

2.7: /usr/bin/python2.7

2.7: /usr/bin/python2.7

3.6: /usr/bin/python3.6m

3.6: /usr/bin/python3.6

3.7: /usr/bin/python3.7m

3.7: /usr/bin/python3.7

2.7.15: /usr/bin/python

2.7.15: /usr/bin/python2

3.6.6: /usr/bin/python3

PEP 508 Information:
{'implementation_name': 'cpython',
 'implementation_version': '3.7.0',
 'os_name': 'posix',
 'platform_machine': 'x86_64',
 'platform_python_implementation': 'CPython',
 'platform_release': '4.9.0-6-amd64',
 'platform_system': 'Linux',
 'platform_version': '#1 SMP Debian 4.9.88-1+deb9u1 (2018-05-07)',
 'python_full_version': '3.7.0',
 'python_version': '3.7',
 'sys_platform': 'linux'}

System environment variables:

LS_COLORS
ALLOWED_HOSTS
PROJECT_NAME
SSH_CONNECTION
LANG
OLDPWD
DEBUG
SECRET_KEY
XDG_SESSION_ID
USER
PIP_PYTHON_PATH
PWD
HOME
SSH_CLIENT
POSTGRES_PORT
POSTGRES_DB
PIPENV_ACTIVE
SSH_TTY
MAIL
EMAIL_HOST_USER
SHELL
TERM
POSTGRES_PASSWORD
EMAIL_HOST
POSTGRES_USER
PYTHONDONTWRITEBYTECODE
SHLVL
LOGNAME
XDG_RUNTIME_DIR
EMAIL_PORT
PATH
PS1
POSTGRES_HOST
EMAIL_HOST_PASSWORD
_

Pipenv–specific environment variables:

PIPENV_ACTIVE: 1

Debug–specific environment variables:

PATH: /usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/home/vagrant/.local/bin:/home/vagrant/.local/bin
SHELL: /bin/bash
LANG: en_US.UTF-8
PWD: /vagrant

Contents of Pipfile ('/vagrant/Pipfile'):
[[source]]
url = "https://pypi.org/simple"
verify_ssl = true
name = "pypi"

[packages]
django = "*"
"psycopg2" = "*"

[dev-packages]

[requires]
python_version = "3.7"

Contents of Pipfile.lock ('/vagrant/Pipfile.lock'):
{
    "_meta": {
        "hash": {
            "sha256": "0350b2d3dd5c14854a848f6456f7d0a4f0079a4b2a6a3b79bf68366faa70c6eb"
        },
        "pipfile-spec": 6,
        "requires": {
            "python_version": "3.7"
        },
        "sources": [
            {
                "name": "pypi",
                "url": "https://pypi.org/simple",
                "verify_ssl": true
            }
        ]
    },
    "default": {
        "django": {
            "hashes": [
                "sha256:97886b8a13bbc33bfeba2ff133035d3eca014e2309dff2b6da0bdfc0b8656613",
                "sha256:e900b73beee8977c7b887d90c6c57d68af10066b9dac898e1eaf0f82313de334"
            ],
            "index": "pypi",
            "version": "==2.0.7"
        },
        "psycopg2": {
            "hashes": [
                "sha256:0b9e48a1c1505699a64ac58815ca99104aacace8321e455072cee4f7fe7b2698",
                "sha256:0f4c784e1b5a320efb434c66a50b8dd7e30a7dc047e8f45c0a8d2694bfe72781",
                "sha256:0fdbaa32c9eb09ef09d425dc154628fca6fa69d2f7c1a33f889abb7e0efb3909",
                "sha256:11fbf688d5c953c0a5ba625cc42dea9aeb2321942c7c5ed9341a68f865dc8cb1",
                "sha256:19eaac4eb25ab078bd0f28304a0cb08702d120caadfe76bb1e6846ed1f68635e",
                "sha256:3232ec1a3bf4dba97fbf9b03ce12e4b6c1d01ea3c85773903a67ced725728232",
                "sha256:36f8f9c216fcca048006f6dd60e4d3e6f406afde26cfb99e063f137070139eaf",
                "sha256:59c1a0e4f9abe970062ed35d0720935197800a7ef7a62b3a9e3a70588d9ca40b",
                "sha256:6506c5ff88750948c28d41852c09c5d2a49f51f28c6d90cbf1b6808e18c64e88",
                "sha256:6bc3e68ee16f571681b8c0b6d5c0a77bef3c589012352b3f0cf5520e674e9d01",
                "sha256:6dbbd7aabbc861eec6b910522534894d9dbb507d5819bc982032c3ea2e974f51",
                "sha256:6e737915de826650d1a5f7ff4ac6cf888a26f021a647390ca7bafdba0e85462b",
                "sha256:6ed9b2cfe85abc720e8943c1808eeffd41daa73e18b7c1e1a228b0b91f768ccc",
                "sha256:711ec617ba453fdfc66616db2520db3a6d9a891e3bf62ef9aba4c95bb4e61230",
                "sha256:844dacdf7530c5c612718cf12bc001f59b2d9329d35b495f1ff25045161aa6af",
                "sha256:86b52e146da13c896e50c5a3341a9448151f1092b1a4153e425d1e8b62fec508",
                "sha256:985c06c2a0f227131733ae58d6a541a5bc8b665e7305494782bebdb74202b793",
                "sha256:a86dfe45f4f9c55b1a2312ff20a59b30da8d39c0e8821d00018372a2a177098f",
                "sha256:aa3cd07f7f7e3183b63d48300666f920828a9dbd7d7ec53d450df2c4953687a9",
                "sha256:b1964ed645ef8317806d615d9ff006c0dadc09dfc54b99ae67f9ba7a1ec9d5d2",
                "sha256:b2abbff9e4141484bb89b96eb8eae186d77bc6d5ffbec6b01783ee5c3c467351",
                "sha256:cc33c3a90492e21713260095f02b12bee02b8d1f2c03a221d763ce04fa90e2e9",
                "sha256:d7de3bf0986d777807611c36e809b77a13bf1888f5c8db0ebf24b47a52d10726",
                "sha256:db5e3c52576cc5b93a959a03ccc3b02cb8f0af1fbbdc80645f7a215f0b864f3a",
                "sha256:e168aa795ffbb11379c942cf95bf813c7db9aa55538eb61de8c6815e092416f5",
                "sha256:e9ca911f8e2d3117e5241d5fa9aaa991cb22fb0792627eeada47425d706b5ec8",
                "sha256:eccf962d41ca46e6326b97c8fe0a6687b58dfc1a5f6540ed071ff1474cea749e",
                "sha256:efa19deae6b9e504a74347fe5e25c2cb9343766c489c2ae921b05f37338b18d1",
                "sha256:f4b0460a21f784abe17b496f66e74157a6c36116fa86da8bf6aa028b9e8ad5fe",
                "sha256:f93d508ca64d924d478fb11e272e09524698f0c581d9032e68958cfbdd41faef"
            ],
            "index": "pypi",
            "version": "==2.7.5"
        },
        "pytz": {
            "hashes": [
                "sha256:a061aa0a9e06881eb8b3b2b43f05b9439d6583c206d0a6c340ff72a7b6669053",
                "sha256:ffb9ef1de172603304d9d2819af6f5ece76f2e85ec10692a524dd876e72bf277"
            ],
            "version": "==2018.5"
        }
    },
    "develop": {}
}

Here is a project with all of the relevant code and Vagrant configuration: https://gitlab.com/ryangallen/vagrant-django

Hmmm I can't actually replicate this....

Any chance you can give me a dockerfile that can reproduce this? I don't really use vagrant so it's hard to know whats going on in that

I get the impression the virtual environment may be broken, similar to #2493.

@techalchemy - I can try to create a Dockerfile for you
@uranusjr - I will give that a shot
Thank you for the quick replies

Any updates @ryangallen?

Tried using installing python3.7-dev and python3.7-pip, the pip package doesn't exist though. After installing python3.7-dev, the error persists.

@ryangallen is pipenv installing the correct django version here? I can't actually replicate this (copied your manage.py exactly and ran pipenv install django followed by pipenv shell) -- python manage.py --help works just fine for me
not sure if this is still a problem, closing for now but feel free to file a new issue if this persists

For anyone stumbling upon this issue, i got this exact error because I was aliasing python to python3 and pip to pip3. Removing the aliases did it for me.

For anyone stumbling upon this issue, i got this exact error because I was aliasing python to python3 and pip to pip3. Removing the aliases did it for me.

Thank you. This helped me as well

For anyone stumbling upon this issue, i got this exact error because I was aliasing python to python3 and pip to pip3. Removing the aliases did it for me.

Yes ! This worked for me too (I had an alias to another python thing). Thanks

For anyone stumbling upon this issue, i got this exact error because I was aliasing python to python3 and pip to pip3. Removing the aliases did it for me.

Yes ! This worked for me too (I had an alias to another python thing). Thanks

authors: lorenzorapetti nicholasjhs ryangallen santhoshck techalchemy uranusjr

repo: pypa/pipenv


text:
Allow for a minimum python_version

Is your feature request related to a problem? Please describe.
I'm always frustrated when I can't choose a minimum version of Python, so my pipenv directories get stuck at the Python version I specified earlier instead of working with later released versions.
Describe the solution you'd like
Pipenv should allow setting a "≥" for Python versions.
Describe alternatives you've considered
You could manually update the Pipfile every time a new version of Python is released, but that defeats the purpose of the Pipfile.
Additional context
Add any other context or screenshots about the feature request here. It may be a good idea to mention that platform and Python version you are on.

$ pipenv --support
Pipenv version: '2022.7.24'
Pipenv location: '/home/xxx/.local/lib/python3.10/site-packages/pipenv'
Python location: '/usr/bin/python3'
Python installations found:

3.10.0: /usr/bin/python3
3.10.0: /usr/bin/python
3.10.0: /bin/python3
3.10.0: /bin/python
3.9.2: /usr/bin/python3.9
3.9.2: /bin/python3.9

PEP 508 Information:
{'implementation_name': 'cpython',
 'implementation_version': '3.10.0',
 'os_name': 'posix',
 'platform_machine': 'armv7l',
 'platform_python_implementation': 'CPython',
 'platform_release': '5.15.32-v7+',
 'platform_system': 'Linux',
 'platform_version': '#1538 SMP Thu Mar 31 19:38:48 BST 2022',
 'python_full_version': '3.10.0',
 'python_version': '3.10',
 'sys_platform': 'linux'}

System environment variables:

SHELL
PWD
LOGNAME
XDG_SESSION_TYPE
MOTD_SHOWN
HOME
LANG
LS_COLORS
SSH_CONNECTION
XDG_SESSION_CLASS
TERM
USER
SHLVL
XDG_SESSION_ID
XDG_RUNTIME_DIR
SSH_CLIENT
PATH
DBUS_SESSION_BUS_ADDRESS
SSH_TTY
TEXTDOMAIN
_
PIP_SHIMS_BASE_MODULE
PIP_DISABLE_PIP_VERSION_CHECK
PIP_PYTHON_PATH
PYTHONDONTWRITEBYTECODE
PYTHONFINDER_IGNORE_UNSUPPORTED

Pipenv–specific environment variables:
Debug–specific environment variables:

PATH: /home/xxx/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/games:/usr/games
SHELL: /bin/bash
LANG: en_US.UTF-8
PWD: /home/xxx

I opened a prototype PR that allows specifiers for the Python versions.   However so, pip uses the current interpreter as the python version in the resolution process.  It is possible to override this, but the decision logic on how to decide what version to pass in would not be straight forward.    The concern is it would be possible to get differing locks on different systems by using different versions of python -- say PkgA supports python 3.10 only on its latest version and you specify Python > 3.8 -- so now on one system with 3.10 it locks to support latest version of PkgA but on a system with only 3.9 it will lock to be the version less than the latest version of PkgA.

You can create Pipfile without Python version specified. You still have to remove and re-create the associated venv, but it would use the current Python version when doing so.

authors: kalebmckale matteius melyux


text:
How to get data files in the right director

Hi i am new to useing setuptools to make python packages .
I got a project i need to turn into a package .
Currently its in the stored in
project/
         setup.py
          mo/
                some code
          extensions /
                 other extensions to the code
          requriments.txt
.

here my setup.py
from setuptools import setup, find_packages
setup(
    name="name",
    version="version",
    packages=find_packages(),
	package_data={'': ['*.txt']},
	include_package_data=True,
	entry_points ={
            'console_scripts': [
                'mo_onnx = mo.mo_onnx:main'
            ]
        }
)

when i run  python setup.py install the package is installed  as
python3.7/site-packages/name-version-py3.7.egg/mo
python3.7/site-packages/name-version-py3.7.egg/extensions
but the  requriments.txt if placed inside the mo direcotr not inside name-version-py3.7.egg .
Is it possible for me to place is there instead of inside mo if so how .

A few general comments, until you clarify what you mean by mo and extensions (gettext translation and C/C++ code?):

There's no reason to install requriments.txt to sites, and with setuptools you can put the install requirements to install_requires.
IIRC package_data is to provide data for packages, so it should refer to data inside a package.  Since I can't see what's in mo and extensions, there's no way I can tell what's found by find_packages but I think mo is one (also from the entry point).
Usually posting your actual configuration would make it easier for others to help, which in this case mean the actual tree at the root of your project as well as the real content of setup.py.

Cheers.

Hi sorry about not giveing full information . I was trying to avoid giveing infomation about something not yet released.
Both MO and extensions  contains Python modules .
Due to the fact the trees for both directors are really big i attached txt files with them below
extensions_tree.txt
mo_tree.txt
from setuptools import setup, find_packages
setup(
    name= "mo",
    version="2020.1",
    packages=find_packages(),
	package_data={'': ['*.txt']},
	include_package_data=True,
	entry_points ={
            'console_scripts': [
                'mo_onnx = mo.mo_onnx:main'
            ]
        }
)

Currently the system reads the requirements.txt to ensure all the correct version of python packages are installed before running . As i understand this is not necessary I want to avoid changeing the code forverification reasons .
Thanks for you help and comments .

Currently the system reads the requirements.txt to ensure all the correct version of python packages are installed before running . As i understand this is not necessary I want to avoid changeing the code forverification reasons .

I don't think it is necessary at all.  IMHO you should list the requirements as install_requires in setup.py with version range included.  Then the package manager installing your package will make sure that everything are of the right version.  Slightly related, pip 20.1 now have (experimental) dependency resolution which can ensure that installing/upgrading one package won't break another (in this case, your package).

Ok thats fair  ill have a look at it .
Thank for your help

authors: McSinyx abdjava

repo: pypa/setuptools


text:
[Docs]  Missing requires-python in "using pyproject.toml"

Summary
The field requires-python is undocumented on:

https://setuptools.pypa.io/en/latest/userguide/pyproject_config.html
https://github.com/pypa/setuptools/blob/main/docs/userguide/pyproject_config.rst

OS / Environment
n/a
Additional Information
n/a
Code of Conduct

[X] I agree to follow the PSF Code of Conduct

Hi @xsc27, thank you very much for reporting this.
The linked document does not exhaustively list all the fields covered in the PEP 621 specification, instead it points out the following:

The project table contains metadata fields as described by Declaring project metadata guide.

Although we can argue that this is not the best approach, it at least prevents setuptools docs from drifting away when the standard changes[^1].
What are the changes you are suggesting?
Would you like to submit a PR to improve this documentation?
[^1]: The standards involving pyproject.toml are "living standards" and can be modified when the community reaches consensus about a particular topic or when a new PEP is approved.

How about adding a comment line in the example toml file at about line 66, like this?
   # other project metadata fields as specified in PEP 621

Yeah, that sounds great. We can also add the requires-python to the example.
Would you like to submit a PR?

authors: abravalheri jacalata xsc27


text:
please include the CHANGES.rst file in the source distribution

please re-add the CHANGES.rst file.

Fine by me. Probably when it was renamed the manifest.in needed to be updated.


text:
Remove unnecessary code paths for 3.9+

Follow-up on https://github.com/pypa/setuptools/commit/e47994c81ce3e97502f761bdef60b20fe72bf02a.

Summary of changes

Bump version check in pkg_resources
Remove 'm' SOABI flag that no longer exists in 3.9+

See https://docs.python.org/3/library/sys.html#sys.abiflags

Remove conditional requirement on importlib_resources in favour of importlib.resources
Removed vendored version of importlib_resources

Probably this is the most risky changes, but it seems that no vendored dependencies require it for 3.9+
If 3rdparty packages are relying on the vendored version in setuptools, I think it is fair that they start to fail... It is not a good development practice to rely on indirect dependencies - instead they should be declared directly.

Closes
Pull Request Checklist

[ ] Changes have tests
[ ] News fragment added in newsfragments/.
(See documentation for details)

I have added the news fragments as feature, although they are removals...
For 3.9+, this should not matter much.
This seems to be consistent with the existing changelog that classifies these changes as features.
I can rename the files if necessary.

You can move setuptools._path.StrPath out of the TYPE_CHECKING check !
Callable, Generator, Iterator, Iterable, Sequence, Mapping, MutableMapping should be imported from collections.abc instead of typing
Type, Dict, List, Tuple should be replaced by their builtin variant
Optional should be replaced by Union for consistency

UP035 (which includes https://github.com/PyCQA/flake8-pyi/blob/main/ERRORCODES.md#Y022 ) should catches those, but it looks like the include = ["pyproject.toml"] workaround broke it ! :O

Additional tidbit I found: setuptools.package_index._splituser has a comment about Python 3.8, but it would be nice if it linked to https://github.com/python/cpython/issues/80072

Thank you @Avasam, I implemented the suggestions in:

https://github.com/pypa/setuptools/pull/4721
https://github.com/pypa/setuptools/pull/4722
https://github.com/pypa/setuptools/pull/4723

I am leaving the fix to ruff.toml to skeleton, we can see the feedback there and then decide what to do.

I don't know if it was a false negative but apparently after merging this in top of the previous merges we have a mypy error:

https://github.com/pypa/setuptools/actions/runs/11617414532/job/32352587471#step:9:71
Maybe there is a new version of mypy?
@Avasam, do you have any info?

authors: Avasam abravalheri


text:
Nuke: use reformat instead of crop in render write

Problem
We had been ading crop into render write node after client requenst but it should really be Reformat to delivery resolution. This way we could remove yet another  unnecessary Validator.
[cuID:PYPE-1315]

What is the reason for reformating instead of cropping?
Maybe reformat checkbox in the crop node would be sufficient to have the same bounding box as delivery resolution?

I am concerned about the crop, because if production will change the delivery resolution and since the crop is inside the Render group node, so a user might miss this and validators are gone (since the time we had added the crop into the render node). The crop is there only for cases when some pixels are out of the format in overscan and this can be done even with a reformat.

In that case, maybe the easiest solution would be to have a crop with expression linked to the Project Settings root format?

I think that Project settings format should be decoupled from delivery format, but that is maybe for separate discussion.

repo: pypeclub/OpenPype


text:
What is the "hash" in the metadata dataset exacly, are you sure it is SHA256?

According to the docs, the metadata-dataset about every file uploaded to PyPI, i.e. the parquet files listed in https://github.com/pypi-data/data/raw/main/links/dataset.txt, contain a SHA256 hash. However, it is not described how the hash is calculated.
When trying to verify that you calculate the SHA256 over the respective file itself, i encountered some issues:

your hash is too short for a SHA256, it has the same length as a SHA1 though
however, when i calculate the SHA1 of a downloaded file, it does not match yours (neither does SHA256)
two files in your dataset that have the same hash, also have the same SHA1 hash on my end, however, my and your hashes are different

Can you explain, which hash you are using and if you are hashing the contents of the file linked to via the path?
Thank you very much for the awesome dataset!

Hey! Thanks for the kind words @venthur. Sorry about the late reply: I had these messages filtered out.
It's been a while since I looked at this project, but you're right: it's not a SHA256 hash. I dug into where I generate this, and for some reason I chose to use Oid::hash_object here, from libgit2.
That was... an unfortunate decision, and I can't see why I chose to do it that way. Parts of this project where pretty experimental, and I was pretty much learning Rust at the time.
So it's going to be a SHA1 hash of blob ${length}\0${content}.

authors: orf venthur

repo: pypi-data/data


text:
Entered incorrect email and now can't fix it

Describe the bug
I entered my email incorrectly and now my newly-created account can't be verified and I can't add a new email either.
Expected behavior
The website says I can add a new address but no option is to be seen.
To Reproduce
Create an account with an invalid email address and try to add a functional email.
My Platform
Chrome, Windows 11
Additional context
Using a @users.noreply.github.com email address.

Please see https://pypi.org/help/#account-recovery.

authors: di travisgk

repo: pypi/warehouse


text:
Collapse instead of dismiss role descriptions

Collapsible <details> for role descriptions
collapsible controller to save collapse state
Closes #11651

Rebased against main to include changes from #11986.


text:
Increase (default) poll interval and/or configurable

Currently the integration polls the API every 15 seconds. Sometimes this will result in requests being blocked by Cloudflare.
If every user polls every 15 seconds it's more likely they will try to block the API for this use case. This has happened to other integrations as well. I would suggest to make increase this to somewhere between 1-5 minutes.
We can also make this poll interval configurable so a user can choose the interval themselves.
@jschlyter If you don't have time, I'd be happy to implement this as well after you're done refactoring.

While looking into it I noticed that there is caching, but I think because of new the shorter-lived access tokens it seems to be retrieving a new token every 15 seconds (the SCAN_INTERVAL). See: https://github.com/pypolestar/polestar_api/blob/12ba7a5a39581eedd3886a545de8f684482fe326/custom_components/polestar_api/pypolestar/polestar.py#L118

Thanks for the heads up. Please review https://github.com/pypolestar/polestar_api/pull/210 and https://github.com/pypolestar/polestar_api/pull/211.

authors: jschlyter wouterhardeman


text:
Add CI test

See here how PyPSA is doing this with Github Actions.

closed by commit 9c73561ac35ec27fed7a29940260cfa5e8e66288

authors: mnm-matin pz-max

repo: pypsa-meets-earth/earth-osm


text:
self-invite is not working

err msg:
404 Not Found
"The endpoint you're looking for is not implemented by our system."
"instances/wrld_f44bfdc0-a153-4eea-b11a-a247894ae9f6:~~~/invite"

Update to Nightly build.

repo: pypy-vrc/VRCX


text:
fix and activate W391

another fix, for empty lines near the end of files ;
activated as a new check in the linter ;
done using the script autopep8

If I may suggest, a big chunk of the python community is moving from pycodestyle/flak8 to ruff, which is better and has an auto fix option which makes it much less cumberstone to use.
to set it up reliably you just need to include a pyproject.toml file with a section like that and then you can run it with ruff check pyscf --fix.

The empty lines at the end of a file is not a problem IMO. It does not help clarify the code

so, would you merge if I disactivate the check in the linter ?

I don't think it is necessary to enable W391. I will merge if there are fixes after removing the check of W391.

ok, here is a branch which does not activate the check for W391

authors: PhilipVinc fchapoton sunqm

repo: pyscf/pyscf


text:
batch merge

This is an update from the "batch fork" from the burgasser team, aimed at getting us up to synch with the rest of the code. Note that there are changes to find_peak.py and telluric_correction.py that need to be considered

Do you mean you have made changes to find_peak.py and telluric_correction or that I will have to make changes to those after accepting this change?

There was one minor conflict in telluric_correction.py that has been addressed.  you shouldn't have to make changes to those, although if you've got a version of the code that is well away from main that you're working on that may cause problems. @kelle

Looks like I have a test failure anyways so let me resolve that first

authors: aburgasser michaelcushing

repo: pyspextool/pyspextool


text:
Features we need before we can trial threads in topical channels

Description
We'd love to trial people having the ability to create threads within topical channels to have more focused and less disruptive help sessions.
In some of the busier topical channels, you'll often have multiple help chats going on at the same time. This can make it overall difficult to follow, a bit harder to help. It also may not be feasible to shift to a help channel because some of the help may be back and forth over a few hours, depending on availability of the people and scope of the issue.
Limitations To Make This Reasonable
Of course, because the internet is the internet we can't let this be a free-for-all. So we'd like to set some limitations to what people can do:

[ ] limit of 1 new thread per day across all the topical channels per person
[ ] Ensure our filters will check for creation and edits to the thread name
[ ] Ensure reasonable default timeouts for threads, and once archived can only be brought back by the thread creator or a staff member/mod
[ ] Double check our !clean command will function correctly and also erase the thread from existence

Once the above steps are complete, we can begin trialing letting users create their own threads within topical channels in specific topical channels such as: #data-science-and-ai and #user-interfaces!

Ensure reasonable default timeouts for threads, and once archived can only be brought back by the thread creator or a staff member/mod
Make sure bringing back a thread also respects the cooldown, re-archiving it if the user is currently on cooldown.

On question I have right now is what wee would expect to happen if the name is found in violation of our filters. Maybe just hard-deleting and notifying mods?

Also as for implementation, I think a redis cache of member_id: cooldown_expiry_ISO_datetime would be good here. making sure that on startup the bot uses await guild.active_threads() to ensure the cache is up to date.

On question I have right now is what wee would expect to happen if the name is found in violation of our filters. Maybe just hard-deleting and notifying mods?

You can delete threads?
I would also notify the user, so they know that it was actually deleted, and not just an error, so they don't keep retrying

You can delete threads?
yea

limit of 1 new thread per day across all the topical channels per person

I'm not sure about this, especially if the only way to enforce it would be auto-deleting further threads, which would be quite annoying (not sure we could easily prevent opening threads with permissions?).
If someone was helping they could reasonably want to reply in threads to someones message in a fast-moving channel, so I think there's a pretty good use case for opening lots of threads in a day, especially in channels like discord-bots.

One thread per day sounds a bit limiting, I'd recommend that opposite approach and use something like needle to force threads for every message

What if we allow creating 1 thread per user via a command ? That way we can have more control over how many threads a user can open, and it can be scoped in terms of allowed channels ?
The limit would still be one thread / user / topical channel,  and we can use the redis cache to store how many threads this user has open in a particular channel to determine whether we should allow it or not.
However, we run the risk of having our Redis DB die, which will allow users to create another thread if they want.
We'd also need to make sure that these threads are active (last message is less then a day old for example), and then we'd archive/delete the thread accordingly ?

authors: ChrisLovering graingert janine9vn shenanigansd shtlrs wookie184

repo: python-discord/bot


text:
add flag validation

We had slightly different flag names in our old mitmproxy code (e.g. https://github.com/mitmproxy/netlib/commit/d7ada2f6b6a3b4dc2525c12c2ae24bf3d5e043b4), which went unnoticed because hyperframe just swallowed invalid flags. I personally think it would be nice to have some validation here. If you want to keep things simpler, that'd be okay as well as we found our offenders now. :wink:
Cheers,
Max

This is a really good idea, and I think the implementation is fantastic, thanks so much! I have a few small notes around testing and docstrings, but otherwise I'm happy to merge this.

Updated! :smiley:

Sadly I have merge conflicts again. =(

Rebased! :smiley:

authors: Lukasa mhils

repo: python-hyper/hyperframe


text:
Avoiding passing pyproject.toml options as command-line arguments

See discussion in #1.

\cc @jhossbach

I think it should be fine to either: (1) let Ruff handle the pyproject.toml, and only pass CLI arguments that come directly from the LSP config (which could include config, allowing users to override); or (2) keep the current logic of letting the LSP find the pyproject.toml, pass it in as --config if the user hasn't provided a config override in the LSP settings.

I'd rather go with (1), it feels cleaner to let ruff handle the project-wide settings.
What do you think should be the configuration hierarchy for the LSP? If we start pylsp with e.g. the line-length to be 100 and work in different projects
Shouldn't the configuration hierarchy be project config > pylsp config? Say e.g. you disagree with the default line length of 88, so instead you configure your lsp via neovim to be 100 by default. If you now work in a project with a pyproject.toml, you would expect the LSP to use the configuration there instead, shouldn't it?
We could add some logic to use the user-configured options only if the pyproject.toml file doesn't contain this option

Yeah I think you're right that project configuration should take precedence. I don't really have a great answer for how we should enable "defaults" in those other cases. 🤔

This should work:
for key, value in toml_config.items():
    if key in [
        "exclude",
        "ignore",
        "line-length",
        "per-file-ignore",
        "select",
    ]:
        settings[key] = value

It will skip any entries in the pyproject.toml that are not in the list. We can extend this list if we want, but additional arguments in the toml file are used automatically by ruff anyway so unless someone wants to have more configurability from within pylsp I don't think this is necessary.

Ruff is likely to support extending pyproject files (i.e., you could point to another pyproject file, and it’ll automatically merge in its settings). Which could make this hard to maintain, since you’d miss extended properties (or have to resolve the extension).
I think the safest thing to do would be: look for a pyproject.toml in all ancestor directories of the file. If we find one, don’t apply any of the LSP settings as command-line arguments (defer to Ruff). If we don’t, then apply the LSP settings as command-line arguments. What do you think?

I think this makes sense. In case I was working in a project with some configuration for ruff, I would expect that the default for ruff should still apply even if the option is not specified, so even if e.g. line-length was not explicitly set to 88 it would still apply within the project. I will create a PR for this.

Awesome, happy to review!

authors: charliermarsh jhossbach

repo: python-lsp/python-lsp-ruff


text:
Loop through all elements of a doc and determine their type?

I have a word doc that's structured with two tables, both of the same column headers, but different purposes. I need the second table. There's some text that precedes each table which I can use to figure out if the table is the one I want, but in order to do that, I need to loop over all the elements in the doc and see which one is the text I need, and then look at the table after that. I don't see in the documentation how to loop through all elements, can anyone help please?

If you search Google on iter_block_items you'll find what you need. This is the first search result:
https://github.com/python-openxml/python-docx/issues/40
There were several refinements, so I think this implementation at the bottom is what you're after:
https://github.com/python-openxml/python-docx/issues/40#issuecomment-1503337928

repo: python-openxml/python-docx


text:
Add bold on specific text after creating table

table = document.add_table(rows=1, cols=2)
table.style = document.styles['Table Grid']
row_cells = table.add_row().cells
row_cells[0].text = 'Some Text'
row_cells[1].text = 'This is text with some BOLD and some non bold text'
How i will achieve this

You need to use runs. Something like this:
run = paragraph.add_run()
run.text = "This is text with some "
run.font.bold = True
run = paragraph.add_run()
run.text = "BOLD "
run.font.bold = False
run = paragraph.add_run()
run.text = "and some non bold text"

row_cells[1].text = run

I didn't test this, but something like this should work. That last line might be off a bit. Check the documentation!


text:
Add Audit Logs for all Important Actions

Is your feature request related to a problem? Please describe.
Audit logs are only added for Stripe Payments and Authentication Success or Failures. Adding audit logging for all other relevant actions is useful.
Describe the solution you'd like
Add audit logging for; Administrator Actions and user logging in.

Added logging administrator actions related to user, and administrator actions related to comments.