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

enable duplicate-code warnings #90

Merged
merged 5 commits into from
Nov 5, 2018
Merged

Conversation

wdpypere
Copy link
Contributor

No description provided.

@wdpypere wdpypere requested a review from boegel October 18, 2018 09:16
@boegel
Copy link
Member

boegel commented Oct 18, 2018

@wdpypere Tests fail with:

pkg_resources.ContextualVersionConflict: (pylint 1.9.3 (/home/travis/build/hpcugent/vsc-install/.eggs/pylint-1.9.3-py2.7.egg), Requirement.parse('pylint>=2'), set(['prospector']))

@JensTimmerman
Copy link
Contributor

We once added pytlint < 2.0.0 because old prospector had issues with new pylint, this should be fixed if prospector is requiring pylint >=2 now
https://github.com/hpcugent/vsc-install/blob/master/lib/vsc/install/shared_setup.py#L1385

@boegel
Copy link
Member

boegel commented Oct 19, 2018

@wdpypere nope, I'm afraid...

pkg_resources.ContextualVersionConflict: (pylint 2.1.1 (/home/travis/build/hpcugent/vsc-install/.eggs/pylint-2.1.1-py2.7.egg), Requirement.parse('pylint<2'), set(['prospector']))

See https://travis-ci.org/hpcugent/vsc-install/jobs/443223864

@JensTimmerman
Copy link
Contributor

JensTimmerman commented Oct 19, 2018

They don't seem to be able to get their dependencies together at prospector, someone should go trought the dependency tree and see where the conflict lies, possibly related to this change
prospector-dev/prospector@7d17774

Last time I had to fix it with prospector-dev/prospector#252

@wdpypere
Copy link
Contributor Author

@boegel the tests now run fine on my machine and jenkins.

@wdpypere
Copy link
Contributor Author

@boegel the tests still fail on travis python 3 but I cannot reproduce it. It works fine on my machine.

@boegel
Copy link
Member

boegel commented Nov 5, 2018

@wdpypere Issue with Python 3 tests fixed with wdpypere#1

only require pylint < 2.0 for Python 2.x
@wdpypere
Copy link
Contributor Author

wdpypere commented Nov 5, 2018

@boegel nice. Tests run fine now.

@boegel boegel merged commit 12f845f into hpcugent:master Nov 5, 2018
tests_requires.append('prospector >= 1.1.4')
# Python 2.x requires pylint < 2.0, since pylint 2.0 or newer is Python 3 only
if sys.version_info < (2,):
tests_requires.append('pylint<2.0.0')
Copy link
Member

Choose a reason for hiding this comment

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

hah, this is actually bullshit, since:

>>> sys.version_info
sys.version_info(major=2, minor=7, micro=10, releaselevel='final', serial=0)
>>> sys.version_info < (2,)
False

So this can just be dropped...

Copy link
Member

Choose a reason for hiding this comment

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

fixed in #91

@wdpypere wdpypere deleted the similarities branch May 13, 2019 11:02
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.

3 participants