fix #3757 by pinning to pathlib2 that supports __fspath__
This commit is contained in:
parent
253419316c
commit
57a8f208bc
|
@ -0,0 +1 @@
|
||||||
|
Pin pathlib2 to ``>=2.2.0`` as we require ``__fspath__`` support.
|
6
setup.py
6
setup.py
|
@ -73,11 +73,11 @@ def main():
|
||||||
environment_marker_support_level = get_environment_marker_support_level()
|
environment_marker_support_level = get_environment_marker_support_level()
|
||||||
if environment_marker_support_level >= 2:
|
if environment_marker_support_level >= 2:
|
||||||
install_requires.append('funcsigs;python_version<"3.0"')
|
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"')
|
install_requires.append('colorama;sys_platform=="win32"')
|
||||||
elif environment_marker_support_level == 1:
|
elif environment_marker_support_level == 1:
|
||||||
extras_require[':python_version<"3.0"'] = ["funcsigs"]
|
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"]
|
extras_require[':sys_platform=="win32"'] = ["colorama"]
|
||||||
else:
|
else:
|
||||||
if sys.platform == "win32":
|
if sys.platform == "win32":
|
||||||
|
@ -85,7 +85,7 @@ def main():
|
||||||
if sys.version_info < (3, 0):
|
if sys.version_info < (3, 0):
|
||||||
install_requires.append("funcsigs")
|
install_requires.append("funcsigs")
|
||||||
if sys.version_info < (3, 6):
|
if sys.version_info < (3, 6):
|
||||||
install_requires.append("pathlib2")
|
install_requires.append("pathlib2>=2.2.0")
|
||||||
|
|
||||||
setup(
|
setup(
|
||||||
name="pytest",
|
name="pytest",
|
||||||
|
|
Loading…
Reference in New Issue