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

Fixing OutputWriter._iter_lines for pip 8.1.1 or below #540

Merged
merged 3 commits into from
Jul 31, 2017
Merged

Fixing OutputWriter._iter_lines for pip 8.1.1 or below #540

merged 3 commits into from
Jul 31, 2017

Conversation

Lucas-C
Copy link
Contributor

@Lucas-C Lucas-C commented Jun 28, 2017

Contributor checklist

Copy link
Member

@vphilippon vphilippon left a comment

Choose a reason for hiding this comment

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

Could yo add a test in tests/test_writer.py:
Similar to test_format_requirement_environment_marker, but with a package such as test_foo, and the output being test-foo and the marker is kept.

You can skip the CHANGELOG entry.

@Lucas-C
Copy link
Contributor Author

Lucas-C commented Jul 10, 2017

I'm totally willing to add a test, but I don't understand what you want to test here ?

My change is in OutputWriter._iter_lines while you asked me to add a test for OutputWriter._format_requirement which is not affected by my changes (marker=None is going to be passed as an argument).

Also this aims to fix a compatibility issue with pip 8.1.1 or below, so maybe the best way to test it would be to add a pip==8.1.1 testenv in https://github.com/jazzband/pip-tools/blob/master/tox.ini#L7 ?

@vphilippon
Copy link
Member

You're right, I was under the impression that the formatting was changed, but it's actually the value passed that might be different. That would be a different test.

Adding a test suite in tox using pip 8.1.1 seems reasonable to me, as this version (while having a more recent bugfix version) seems to still be common in the wild.
You can go ahead and add a test environment with pip 8.1.1.

Also, sorry for the delay, life happened. Thank you for your time!

@Lucas-C
Copy link
Contributor Author

Lucas-C commented Jul 30, 2017

I added a test tox env,
but I'm not 100% sure I got it right :)

@vphilippon
Copy link
Member

@Lucas-C You also have to add the new pip 8.1.1 tox environment in .appveyor.yml, for each python version already listed. That's for the Windows tests.
We're almost there, pretty sure we'll be done after that.
Thanks again.

@vphilippon vphilippon added this to the 1.10 milestone Jul 31, 2017
@Lucas-C
Copy link
Contributor Author

Lucas-C commented Jul 31, 2017

No problem: done !

@vphilippon vphilippon merged commit f7b0549 into jazzband:master Jul 31, 2017
@vphilippon
Copy link
Member

Thanks for your contribution!

@Lucas-C
Copy link
Contributor Author

Lucas-C commented Jul 31, 2017

Thanks for your help :)

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.

None yet

2 participants