From 57a8f208bc4369ebfc8cb7ac1445bed50108bdbf Mon Sep 17 00:00:00 2001 From: Ronny Pfannschmidt Date: Wed, 1 Aug 2018 11:43:46 +0200 Subject: [PATCH] fix #3757 by pinning to pathlib2 that supports __fspath__ --- changelog/3757.bugfix.rst | 1 + setup.py | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) create mode 100644 changelog/3757.bugfix.rst diff --git a/changelog/3757.bugfix.rst b/changelog/3757.bugfix.rst new file mode 100644 index 000000000..37bc90fcd --- /dev/null +++ b/changelog/3757.bugfix.rst @@ -0,0 +1 @@ +Pin pathlib2 to ``>=2.2.0`` as we require ``__fspath__`` support. diff --git a/setup.py b/setup.py index b5b9dfecf..7039ae604 100644 --- a/setup.py +++ b/setup.py @@ -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",