Merge pull request #3760 from RonnyPfannschmidt/fix-3757-pin-pathlib

fix #3757 by pinning to pathlib2 that supports __fspath__
This commit is contained in:
Bruno Oliveira 2018-08-01 09:44:30 -03:00 committed by GitHub
commit f25683354e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 3 deletions

View File

@ -0,0 +1 @@
Pin pathlib2 to ``>=2.2.0`` as we require ``__fspath__`` support.

View File

@ -73,11 +73,11 @@ def main():
environment_marker_support_level = get_environment_marker_support_level()
if environment_marker_support_level >= 2:
install_requires.append('funcsigs;python_version<"3.0"')
install_requires.append('pathlib2;python_version<"3.6"')
install_requires.append('pathlib2>=2.2.0;python_version<"3.6"')
install_requires.append('colorama;sys_platform=="win32"')
elif environment_marker_support_level == 1:
extras_require[':python_version<"3.0"'] = ["funcsigs"]
extras_require[':python_version<"3.6"'] = ["pathlib2"]
extras_require[':python_version<"3.6"'] = ["pathlib2>=2.2.0"]
extras_require[':sys_platform=="win32"'] = ["colorama"]
else:
if sys.platform == "win32":
@ -85,7 +85,7 @@ def main():
if sys.version_info < (3, 0):
install_requires.append("funcsigs")
if sys.version_info < (3, 6):
install_requires.append("pathlib2")
install_requires.append("pathlib2>=2.2.0")
setup(
name="pytest",