Skip to content

Commit f256833

Browse files
authored
Merge pull request #3760 from RonnyPfannschmidt/fix-3757-pin-pathlib
fix #3757 by pinning to pathlib2 that supports __fspath__
2 parents 4588130 + 57a8f20 commit f256833

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

changelog/3757.bugfix.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Pin pathlib2 to ``>=2.2.0`` as we require ``__fspath__`` support.

setup.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,19 +73,19 @@ def main():
7373
environment_marker_support_level = get_environment_marker_support_level()
7474
if environment_marker_support_level >= 2:
7575
install_requires.append('funcsigs;python_version<"3.0"')
76-
install_requires.append('pathlib2;python_version<"3.6"')
76+
install_requires.append('pathlib2>=2.2.0;python_version<"3.6"')
7777
install_requires.append('colorama;sys_platform=="win32"')
7878
elif environment_marker_support_level == 1:
7979
extras_require[':python_version<"3.0"'] = ["funcsigs"]
80-
extras_require[':python_version<"3.6"'] = ["pathlib2"]
80+
extras_require[':python_version<"3.6"'] = ["pathlib2>=2.2.0"]
8181
extras_require[':sys_platform=="win32"'] = ["colorama"]
8282
else:
8383
if sys.platform == "win32":
8484
install_requires.append("colorama")
8585
if sys.version_info < (3, 0):
8686
install_requires.append("funcsigs")
8787
if sys.version_info < (3, 6):
88-
install_requires.append("pathlib2")
88+
install_requires.append("pathlib2>=2.2.0")
8989

9090
setup(
9191
name="pytest",

0 commit comments

Comments
 (0)