-
Notifications
You must be signed in to change notification settings - Fork 50
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
Refactors code for currently supported Python 3.6 to 3.9 #12
Conversation
Hey @funkyfuture, thank you for the pull request! Sorry for the delay in the response, I thought I had set up notifications on this repo but it seems that this one had slipped through the net. I'm going to look into this over the next 24hours. First thing I have noticed however was the failing CI (that isn't being reported correctly.. which I'll also look into). See here, seems to be running the |
Seems like Maybe coverage could be disabled for script: |
if [ $(python -c "import sys; print(sys.version_info.minor)") -lt 7 ];
nosetests
else
nosetests --with-coverage --cover-package=discogs_client
fi Also, maybe |
install: | ||
- pip install -r requirements.txt |
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.
install: | |
- pip install -r requirements.txt | |
install: | | |
pip install -r requirements.txt | |
pip install --upgrade coverage==5.0.3 |
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.
I think we could just specify coverage==5.0.3
in requirements.txt
along with nose
as you've suggested above. Seems strange to have specific version specified here and a different one in the requirements.txt
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.
yes that was my intention also, I just felt that I had to leave it somewhere and I couldn't suggest it in requirements.txt
directly without creating a fork.
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.
Yea no worries! I only realised that after putting that comment to as I was attempting to write it as a suggestion on here
thank you for looking into this. i'm just not sure whether it's worth the hassle, as me thinks switching to @alifhughes, i have no strong opinion on this. if you want to integrate @JKatzwinkel's suggestions, i'm fine with this. (assuming your review interface enables you to do so as mine does.) |
I don't think that switching to pytest would make coverage suddenly work with python 3.6.0 if I'm tbh. |
Cheers for looking into the I am in agreement with @JKatzwinkel, that although moving to Am going to look into the actual changes now |
@@ -23,7 +23,6 @@ | |||
], | |||
install_requires=[ | |||
'requests', | |||
'six', |
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.
As we've now removed the need for six
in the project here. I think we can remove it from the requirements.txt
too
Generally code changes LGTM 👍 I've added one minor comment and also if you could apply changes to get |
wait what do you mean by |
Sorry I should have been more specific! What I meant was: |
Yes I agree this is the better 'ugly' solution :-) Co-authored-by: Jakob Hoeper <JKatzwinkel@users.noreply.github.com>
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.
Thanks to all of you for these essential improvements of discogs_client! Appreciated! :-)
@funkyfuture I hope you don't mind but I took the liberty to update the |
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.
Travis is now playing up, however I am going to tackle this separately, I saw that the builds were green so I am going to approve and merge. Thanks for the discussion and suggestions everyone!
i took the time to remove the Python 2 specific code. also i think it's easier to maintain only currently supported Python versions. there's still a lot of opportunities to improve the code and i hope to have the time to contribute more.