-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pip install jdcal==1.0 fails #5
Comments
Hello, This is my mistake. I wanted to replace existing jdcal-1.0.tar.gz on pypi with new file that has LICENSE.txt in it. So I deleted the existing file and tried to upload new one, but pypi refused to accept the new file saying that the file name was already used. I googled but couldn't find a solution to it. So, under version 1.0, I uploaded a new file jdcal-1.0.1.tar.gz that contains exactly the same code as in jdcal1.0 but with LICENSE.txt added to it. (While trying many thingsI also ended up uploading jdcal-1.1.tar.gz which is identical to jdcal-1.0.1.tar.gz except for version.) So the solution for your case would be to say pip install jdcal==1.0.1. Sorry for the trouble. I remembered doing this deleting business a few years ago, and didn't run into any problems. Apparently pypi changed their policy. Thank you for raising this issue. I will keep it open so that others can find this information. Once again sorry for the trouble. Regards, |
Required to ensure new installs are possible (including Travis running our tests). See phn/jdcal#5
pypi is a write once, read many system. I don't know if he can re-upload the old 1.0 release or not, but agreed in the future, never delete a version on pypi unless it is known to be directly harmful. |
of course we can re-upload it, click on files and add the new file, remove the old one. but leave the version there! |
Also, @phn, you should tag a new release of 1.0.1 too |
Hello, Thanks @chrislococo-wf @saily for your comments. I remember successfully deleting and uploading files with same name when I first used pypi (in 2011). Between then and now pypi have apparently changed their policy, and I wasn't aware of it until too late (as I wasn't making any changes on pypi). @saily I can't upload 1.0 again because as @chrislococo-wf mentions pypi won't allow me to upload a file name that has already been used, even if I delete it. I know this creates problems and the only solution I have now is to keep this issue open so that people will at-least know how to solve the issue. @chrislococo-wf I can't tag 1.0.1 on pypi since I won't be able to upload jdcal-1.0.1.tar.gz under that tag. I already used that file name! Thanks again! Regards, |
Hello, I have released a new version 1.2 on pypi and uploaded jdcal-1.2.tar.gz to pypi. This doesn't solve the issue of "pinned version 1.0" but thought I would note this here. No change in functionality but added test_jdcal.py and removed test functions from file jdcal.py. Contents of CHANGELOG.txt:
Regards, |
This was a useful find...thanks for keeping open. |
@chrislococo-wf Thanks for opening the issue with openpyxl. I think that project is the reason why jdcal gets installed a lot. @nsh87 Great! And sorry again for the inconvenience. |
No problem, sorry for the friction over there! 😀 |
This is still causing problems for us. We have an automatic build system for wheels and it trips over the misleading versions saved on pypi: at https://pypi.python.org/pypi/jdcal/json
The key says |
Hello, As you can see from the comments above, I have managed to get the tag 1.0 and associated file on pypi messed up in such a way that there doesn't seem to be any way of fixing version 1.0. Is it possible for you to change the version in your automated script to use jdcal==1.2. There are no differences in functionality. You could also change to 1.3, but it uses setuptools instead of distutils (which is supposed to enable package managers to create Python wheels). Sorry for the trouble. Regards, |
Required to ensure new installs are possible (including Travis running our tests). See phn/jdcal#5
Not sure about it, but probably uploading |
If I remember correctly trying to load a zip file had failed. Anyway, I have kept this issue open in case anyone |
Hello,
After jdcal version 1.0.1 appeared I can't install jdcal version 1.0 anymore using pip:
Is it possible to also keep jdcal version 1.0 on the pypi?
The text was updated successfully, but these errors were encountered: