Drop dependency on pathlib2

Signed-off-by: Dan Ryan <dan@danryan.co>
This commit is contained in:
Dan Ryan
2018-05-07 17:48:56 -04:00
parent 5e41e8c6c1
commit 0eb95ecbfc
6 changed files with 7 additions and 6 deletions
+2
View File
@@ -1,3 +1,5 @@
11.10.3:
- Bugfix release (break dependency on pathlib2).
11.10.2:
- Backport NamedTemporaryFile for python 2.
- Implement atomic lockfile writing / rewriting.
+1 -1
View File
@@ -2,4 +2,4 @@
# // ) ) / / // ) ) //___) ) // ) ) || / /
# //___/ / / / //___/ / // // / / || / /
# // / / // ((____ // / / ||/ /
__version__ = '11.10.2'
__version__ = '11.10.3'
+1 -1
View File
@@ -9,7 +9,7 @@ from functools import partial, wraps
try:
from pathlib import Path
except ImportError:
from pathlib2 import Path
from pipenv.vendor.pathlib2 import Path
from tempfile import NamedTemporaryFile as _ntf
try:
from shutil import which
+1 -1
View File
@@ -11,7 +11,7 @@ from subprocess import CalledProcessError
try:
from pathlib import Path
except ImportError:
from pathlib2 import Path
from pipenv.vendor.pathlib2 import Path
try:
from shutil import get_terminal_size
-1
View File
@@ -27,7 +27,6 @@ required = [
'setuptools>=36.2.1',
'virtualenv-clone>=0.2.5',
'virtualenv',
'pathlib2;python_version<"3.4"',
'requests[security];python_version<"2.7"',
'ordereddict;python_version<"2.7"',
]
+2 -2
View File
@@ -23,7 +23,7 @@ index d1d8e0a..c45c37e 100644
+try:
+ from pathlib import Path
+except ImportError:
+ from pathlib2 import Path
+ from pipenv.vendor.pathlib2 import Path
from tempfile import NamedTemporaryFile as _ntf
try:
from shutil import which
@@ -39,7 +39,7 @@ index bcaabad..b8fc3e7 100644
+try:
+ from pathlib import Path
+except ImportError:
+ from pathlib2 import Path
+ from pipenv.vendor.pathlib2 import Path
try:
from shutil import get_terminal_size