Skip to content

Conversation

dneise
Copy link
Contributor

@dneise dneise commented Jun 26, 2019

should fix #78

For reviewers:

  • This PR contains some automatic style fixes, using black -l 127
  • Apart from that, the only interesting commits are:

Dominik Neise added 3 commits June 26, 2019 14:10
 - make sure there is really a zerg in that replay, otherwise the
   test would test nothing at all

 - remove outdated comment, that test does not fail.
@dneise
Copy link
Contributor Author

dneise commented Jun 26, 2019

Ah so it seems not only did test_replays/test_all.py fail. Also test_s2gs/test_all.py fails.

So I am also trying to fix that now...

@dsjoerg
Copy link
Member

dsjoerg commented Jun 26, 2019

I think the s2gs functionality of this library may be safely removed. We added s2gs parsing back in 2012 because back then s2gs was a valuable source of information about matches for GGTracker. But the only way to get s2gs files en masse is to automate the SC2 client, and I'm not aware of anyone doing that kind of thing these days.

@dneise
Copy link
Contributor Author

dneise commented Jun 26, 2019

Thanks @dsjoerg for this comment. I propose to have a dedicated issue, in order to discuss the removal of an unused feature. Since the purpose of this PR was to make some existing tests run again.

@dneise dneise mentioned this pull request Jun 26, 2019
@@ -7,6 +7,7 @@

# Newer unittest features aren't built in for python 2.6
import sys

if sys.version_info[:2] < (2, 7):
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe not for this PR but do we really need to support Python versions < 2.7 -- They have been EOL for 5+ years.
https://devguide.python.org/devcycle/#end-of-life-branches

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I personally totally agree here.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

https://github.com/ggtracker/sc2reader#installation says 2.6 is supported! My vote would be to drop all legacy Python support.

Copy link
Contributor Author

@dneise dneise Jun 26, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agreed. Should I open a dedicated issue for this? So others can have a word?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@dneise
Copy link
Contributor Author

dneise commented Jun 26, 2019

Should we merge this?

@cclauss
Copy link
Collaborator

cclauss commented Jun 26, 2019

Are the format modification made by python/black?

@dneise
Copy link
Contributor Author

dneise commented Jun 26, 2019

yes. Sorry .. was maybe a bit forward of me. Should I remove that?

@cclauss
Copy link
Collaborator

cclauss commented Jun 26, 2019

I am a fan of python/black but others are free to disagree.

@StoicLoofah
Copy link
Collaborator

Looks good to me. Thanks for fixing this!

I am also okay using black. I'll make an issue for it

@StoicLoofah StoicLoofah merged commit f7550f2 into ggtracker:upstream Jun 26, 2019
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

Successfully merging this pull request may close these issues.

Numerous errors logged when running “python test_replays/test_all.py”
4 participants