Skip to content
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 can't install spotpy 1.5.11 #256

Closed
MuellerSeb opened this issue Sep 7, 2020 · 8 comments
Closed

pip can't install spotpy 1.5.11 #256

MuellerSeb opened this issue Sep 7, 2020 · 8 comments

Comments

@MuellerSeb
Copy link
Contributor

MuellerSeb commented Sep 7, 2020

Problem

Can't install recent version of spotpy

pip install spotpy==1.5.11

Output

ERROR: No matching distribution found for spotpy==1.5.11

Reason

There is only an .egg file on pypi:
https://pypi.org/project/spotpy/1.5.11/#files

Solution

When uploading artifacts to pypi, there should be a py3-none-any.whl and a source distribution.

@thouska thouska closed this as completed in 719a32e Sep 7, 2020
@thouska
Copy link
Owner

thouska commented Sep 7, 2020

Hi @MuellerSeb,
thanks for this super fast test, i will try to fix this asap

@thouska thouska reopened this Sep 7, 2020
@thouska
Copy link
Owner

thouska commented Sep 7, 2020

Indeed the issue seems to be somewhere in the automatic version upload via travis.yml... However, this way of upload is new to me and I am not 100% what the error is at this point. Do you have an idea? For now I uploaded the 1.5.12 version manually. I hope this is fixing the error for now :)

@MuellerSeb
Copy link
Contributor Author

You could have a look at one of my travis configs:
https://github.com/GeoStat-Framework/ogs5py/blob/master/.travis.yml

I don't use the deploy mechanism of travis, but instead I create a deploy stage, where every commit has a test-deploy to test.pypi.org ... on tag/release, it is also deployed to pypi.org, but you can check the deployment for previous commits on test.pypi.org

I also use setuptools_scm to determine the package version from the release tag (this is quite handy after you get used to it)

@thouska
Copy link
Owner

thouska commented Sep 8, 2020

sorry for that, I am on it, for now you can downgrade by using pip install spotpy==1.5.10.
I will keep you updated here as soon as the error is fixed.

@thouska
Copy link
Owner

thouska commented Sep 8, 2020

Ok, the issue should be fixed now.
Feel free to test spotpy version 1.5.13 on pypi.

@thouska
Copy link
Owner

thouska commented Sep 8, 2020

@MuellerSeb I will look into it. Especially the automatic version control sounds interessting. I will try to implement it. Thx for the tip!
The autmoatic deployment via Travis seems to work now :) It does not test it on test-pypi before, which as already proven to be not a good idea, but I think this was just me not using the script corectly... However, if problems persits to arise with that I will test the way you are using it in your great Geostat-Framework tools.

@MuellerSeb
Copy link
Contributor Author

Nice!

@thouska
Copy link
Owner

thouska commented Sep 9, 2020

Ok nice, seems to work now, thx again for reporting :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants