PMXBOT Log file Viewer

Help | Karma | Search:

#pypa logs for Saturday the 21st of April, 2018

(Back to #pypa overview) (Back to channel listing) (Animate logs)
[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...
[06:02:02] <njs> (https://github.com/python-trio/trio/issues/508)
[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.
[19:53:09] <toad_polo> Or twine? I dunno.
[21:01:39] <dstufft> ThiefMaster: pretty sure
[21:02:10] <dstufft> ThiefMaster: just double checked the code and it appears it still is just using whatever is provided
[21:02:11] <dstufft> didn't _actually_ test that tho
[21:05:40] <dstufft> ThiefMaster: looks like it's wheel doing it
[21:06:10] <dstufft> Name: foo-bar
[21:06:11] <dstufft> is oackage foo_bar when I create a wheel