-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Added the function for downloading the badges locally and replace the url with downlaod path #4250
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
Conversation
|
Hello @Abelarm! Thanks for updating this PR.
Comment last updated at 2020-12-01 21:07:29 UTC |
|
I have no idea how to fix the issue with CodeFactor :( I can't use Requests how suggested by CodeFactor since is the setup and no external should be used (at least I think) |
Codecov Report
@@ Coverage Diff @@
## master #4250 +/- ##
======================================
- Coverage 93% 93% -0%
======================================
Files 123 124 +1
Lines 9255 9320 +65
======================================
+ Hits 8581 8640 +59
- Misses 674 680 +6 |
tchaton
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great addition for the doc. Would you mind testing those 2 functions ?
setup.py
Outdated
| return reqs | ||
|
|
||
|
|
||
| def _parse_README_for_badge(text): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any chance you could add tests for those functions ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@tchaton I am having a problem:
I wanted to create a test for the two functions, but since they are inside the setup.py file when i try to import them it runs the setup itself, and in this way it crash...how do you think I should proceed?
- Move the two functions outside the setup, but where?
- Modifying setup in someway that prevents its run when function from it are imported?
|
Not sure this will work on pypi page, but we can get .png from shields.io by replacing |
that's exactly what my script tries to do, first it asks for the |
|
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. If you need further help see our docs: https://pytorch-lightning.readthedocs.io/en/latest/CONTRIBUTING.html#pull-request or ask the assistance of a core contributor here or on Slack. Thank you for your contributions. |
|
@tchaton @SeanNaren can you chek, it shall be fine... |
|
@Abelarm thinking if we can add simple doctests to for the parsing, just add synthetic sample code and or just a line from readme and see what it return... |
OK I'll work on it. |
11bea37 to
6a6fa1c
Compare
|
Hi @Borda, I'm seeing a lot fo commits, is there something I can help you with? |
just finalizing and catching some last issues... like Win has problems with |
|
one more todo would be better determining the badge type, eg in the list of badge names also assign what is the type, if SVG or PNG... |
… url with downlaod path (#4250) * Added the function for downloading the badge locally, replacing the url * Fixed the pep8 errors, pointed out during pull request * Update setup.py * refactor * format * test * Added Doctest on the functions * test * test * fix * format * fix * fix * prune * fiix * fiix * flake8 * fix * imports * imports * imports * fixx * impoets * win * min Co-authored-by: Jirka Borovec <[email protected]> Co-authored-by: Jirka Borovec <[email protected]>
|
@Abelarm it seems that it did not work for PyPI page |
Hi Borda, sorry was out for vacation. Best, Luigi |
|
well, there is still Drone that does not have past version states... |
|
Sorry I didn't get exactly what is the problem, and hence how I am supposed to solve it :( |
Issue ref: #3905
Added a function to
setup.pyfor downloading the badge locally and replacing the url with the local path.Fixes #3914
Fixes #3905
Before submitting
PR review
Anyone in the community is free to review the PR once the tests have passed.
If we didn't discuss your PR in Github issues there's a high chance it will not be merged.
Did you have fun?
SURE!