[01:15:03] <jellycode> everywhere in my python package i have underscores for hte name... my_package... but, when i do python setup.py sdist, it creates PKG-INFO in the .egg directory using dashes in the name field: my-package. It's actually a real pain, as this seems to be what gets used for the package name in artifactory.
[01:15:39] <jellycode> meanwhile, there are two others i am integrating with on pypi which have underscores in the name somehow. Any ideas?
[01:17:48] <dstufft> jellycode: PEP 503 declares normalization rules, so that foo_bar foo.bar and foo-bar are considered equivilant (as does FooBar and foobar and FoObAr), this is implemented as having a "cannonical" form of the name, which is lowercase, with runs of _ and . turned into -. PyPI itself will use whatever name is given to it as the name, and I assume Artifactory is doing the same.
[01:18:00] <dstufft> setuptools used to just pass whatever you put in the name="..." along
[01:18:09] <dstufft> but it's possible it's started doing the normalization ahead of time
[06:01:30] <njs> does anyone know why pip *10.0.1* on macos, python 3.5, would be intermittently doing the "Could not find a version that satisfies the requirement pytest>=3.3 (from -r test-requirements.txt (line 1)) (from versions: )" thing?
[06:01:54] <njs> I'm suspicious of securetransport but that's just a guess...
[18:24:05] <ThiefMaster> dstufft: "PyPI itself will use whatever name is given to it as the name" <-- are you sure? i published a package a week ago and the underscores were converted to dashes (https://pypi.org/project/flask-url-map-serializer/ vs https://github.com/indico/js-flask-urls/blob/master/flask-cli/setup.py#L17)
[19:52:04] <toad_polo> ThiefMaster: Might be that setuptools did that.