flit
flit copied to clipboard
Add `flit publish --certificate *Path_to_certificate*` option
:bookmark_tabs: Description
It could be very helpful to add the possibility to verify with certificate when using the command flit publish.
Adding the path of the desired public key certificate with an option like --cert or --certificate.
:bulb: Solution Idea
requests.post() take the optionnal argument verify=*Path_to_certificate* adding an optionnal argument to upload_file(), do_upload(), main() and adding parsing in __init__.py could maybe do the trick.
:rotating_light: Slightly Unrelated Problem
Some tests are failling out of the box
I get few InstallTests failed running on win11.
Globally it's an error with the uppercase letter of the disk drive.
assert 'C:\\Users\\y...les\\package1' == 'c:\\Users\\y...les\\package1'
Does anyone get the same errors ?
Any idea if it's solvable without messing with CI ?
:pen: PS
I'm trying to implement it but I'm not an expert so... if someone with more experience want to implement it I will be happy to learn with your version. 😉
I assume this is to publish to a private index that uses a self-signed cert or something? It sounds like a reasonable addition. If you need a workaround in the meantime, you can use flit build to create the packagesand thentwine upload` to upload them.
I get few InstallTests failed running on win11. Globally it's an error with the uppercase letter of the disk drive.
Oh, Windows... I thought drive letters were always uppercase, but I guess not. Feel free to open a new issue about this, with the full details of the test failures. I don't have Windows locally, so I haven't seen this (the Windows CI appears to be OK).
Thanks for your feedback. Exactly I tend to use flit everywhere... (more reliable than others tools for my uses) Yep I use twine actually but after making another CI yaml I was thinking it can be way cleaner with flit.
I will just try on a win10 machine before posting the issue for the failed test.
I also would like to have this option: as I makes it easier to use your own pypi repo like: https://www.sonatype.com/products/nexus-repository
For now switching to TWINE for the publish step.