-
Notifications
You must be signed in to change notification settings - Fork 3
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
json.decoder.JSONDecodeError for https://github.com/scikit-hep/awkward-1.0 #25
Comments
The issue is related to this bit of code:
The url from This is not a case I had considered where the repo name in GitHub does not match the package name in pypi |
The current design of the package is GitHub first .... but maybe too naive. When the Maybe a better way to do it is to start at the PyPi API url first. First thing might be to output an error / warning message when using the PyPi API url, but that would impact 5 of the 12 questions and make the tool less useful. |
A good nights sleep may help clarify which direction to go in |
After a good night’s sleep, and good morning jog, I think that instead of using url as the starting point, we should start with the package name. Then, that can be fed into he PyPi API and that can get the various GitHub API URLs. So, instead of:
We would instead have:
We can keep the url argument for backwards compatibility BUT we’d also switch it from being I’m in the middle of an update for v0.7.0 so I think that I’ll add this change to the roadmap for v0.8.0. @matthewfeickert what do you think of the proposed change above? |
The |
Describe the bug
the-well-maintained-test
v0.6.0
fails with ajson.decoder.JSONDecodeError
for a url target ofhttps://github.com/scikit-hep/awkward-1.0
To Reproduce
Expected behavior
For an argument of
https://github.com/scikit-hep/awkward-1.0
to give valid output.The text was updated successfully, but these errors were encountered: