The _requirements_has_constraints currently fails if the user's requirements.txt file is using custom encoding. I updated it such that it uses the auto_decode method from pip package to make sure we support whatever pip supports.
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
Issue #, if available: N/A
Description of changes:
The
_requirements_has_constraints
currently fails if the user'srequirements.txt
file is using custom encoding. I updated it such that it uses theauto_decode
method frompip
package to make sure we support whatever pip supports.By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.