https://pulumi.com logo
#python
Title
# python
a

ambitious-father-68746

01/31/2024, 10:09 AM
Hi, I just noticed something different:
Copy code
$ venv/bin/pip list | grep pulumi
pulumi                                  3.103.1
pulumi_aiven                            6.11.3
pulumi_aws                              6.19.0
pulumi-aws-native                       0.95.0
pulumi_azure_native                     2.27.0
pulumi-azuread                          5.47.0
pulumi-command                          0.9.2
pulumi_kafka                            3.6.0
pulumi-kubernetes                       3.30.2
pulumi-opsgenie                         1.3.4
pulumi_random                           4.15.1
pulumi-tls                              4.11.1
See all those inconsistencies between
-
and
_
? It wasn't like this before. Has something changed (very) recently?
d

dry-keyboard-94795

01/31/2024, 10:21 AM
This is odd, however with pip,
-
and
_
behave the same with package names, so won't change anything functionally
There's a suspect issue that was recently fixed in setuptools: https://github.com/pypa/setuptools/issues/2522
a

ambitious-father-68746

01/31/2024, 10:31 AM
For reasons (mitigating Pulumi slowness with S3 backend) I have a check in Pulumi that uses
lastversion
(https://github.com/dvershinin/lastversion) to guarantee that
pulumi-aws
is always the latest version.
lastversion
does interpret dashes and underscores differently, so it breaks for us. Nothing major, I was just curious. Thanks!
d

dry-keyboard-94795

01/31/2024, 10:32 AM
You'll need to report the issue to them, as it's part of the packaging spec that dashes and hyphens are the same
a

ambitious-father-68746

01/31/2024, 10:33 AM
Yup, will do
Thanks again, this was really helpful
d

dry-keyboard-94795

01/31/2024, 10:34 AM
No worries