-
Notifications
You must be signed in to change notification settings - Fork 35
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
Trouble following packaging libraries tutorial #170
Comments
I see that the line says |
pip is unable to find a dependency of you package (specifically tableprint). Perhaps it's not available on testpypi |
Ah, perhaps that is it. Is there a way to know for sure? I did not write the dependency, so I'm not sure how to proceed to isolate if that is the issue. |
Instead of trying to install your package, try installing the dependency via testpypi. If that fails, that's what causing the issue. (change the last argument in the Indeed, the dependency is not available on testpypi so, I'd expect that to fail. It is available on PyPI. That's basically what's happening here. Packages available on testpypi can differ from packages available on PyPI. As a workaround, you can try install the dependency first via a plain (on mobile, can't type out the commands to use) @theacodes I think that the guide should cover this, noting that the packages available on testpypi would be different from the ones on PyPI and providing advice on how to work around that. |
I'll leave this open until I can confirm that the solution works (about to board a plane) |
Agreed, can you file a bug over there, @pradyunsg? |
Done. :) |
I've done the following without success following the conventions in:
There was an error when installing tableprint that Checking my site-packages, it looks like the Any thoughts/solutions? |
@pradyunsg @theacodes so... I thought it would work on PyPI, but it didn't so... |
Does the following work for you?
That's odd. It's working for me:
|
Oh! Looking at https://github.com/DerekYu177/dynamictableprint/blob/master/setup.py#L136, you'd want to use |
Ohhh, using |
Instead I could uncomment and use https://github.com/DerekYu177/dynamictableprint/blob/master/setup.py#L135, what do you think? @pradyunsg Then I just rerun the |
Both would work. The latter is more portable across different packages, allowing you to copy-paste your setup.py across packages. |
Oh, I'm getting a 400 (File already exists) when I try to upload, is there a way to do this safely? I suppose I could nuke the release and start again? Oh, maybe I update the version and re-upload? Okay, the latter doesn't work and PyPI frowns against the former. Nope, I got it, I removed the previous versions. All good 😄 |
Closing this since we figured it out! Lots of love to all of you at pypa! ❤️ |
Well, not exactly. PyPI doesn't allow you to re-upload a release file with the same name. For fixing distribution related issues, you can create a post release though by adding a ".postN" (N is a number) to the version: https://www.python.org/dev/peps/pep-0440/#post-releases |
Yeah I didn't realize that running |
Hi there! First time trying to upload my package.
I've followed the guide for uploading my packages from within my folder, validating that the
dist
packages exist:I then followed the publishing instructions onto the test pypi platform:
Where both were uploaded successfully.
I first installed this on my system, and then installed in a conda environemnt
Being a
conda
user, I created a conda environment, installed pip into the environment, and attempted to pull down the package with the following command:(sorry, tmux didn't let me copy the second line for some reason)
The text was updated successfully, but these errors were encountered: