File tree Expand file tree Collapse file tree 3 files changed +32
-2
lines changed Expand file tree Collapse file tree 3 files changed +32
-2
lines changed Original file line number Diff line number Diff line change
1
+ Fix regression with path installs on most recent release ``2023.11.14 ``
Original file line number Diff line number Diff line change @@ -667,11 +667,11 @@ def ensure_path_is_relative(file_path):
667
667
# Check if the paths are on different drives
668
668
if abs_path .drive != current_dir .drive :
669
669
# If on different drives, return the absolute path
670
- return abs_path
670
+ return str ( abs_path )
671
671
672
672
try :
673
673
# Try to create a relative path
674
- return abs_path .relative_to (current_dir )
674
+ return str ( abs_path .relative_to (current_dir ) )
675
675
except ValueError :
676
676
# If the direct relative_to fails, manually compute the relative path
677
677
common_parts = 0
Original file line number Diff line number Diff line change 7
7
from pipenv .utils .shell import temp_environ
8
8
9
9
10
+ @pytest .mark .extras
11
+ @pytest .mark .install
12
+ @pytest .mark .local
13
+ def test_local_path_issue_6016 (pipenv_instance_pypi ):
14
+ with pipenv_instance_pypi () as p :
15
+ setup_py = os .path .join (p .path , "setup.py" )
16
+ with open (setup_py , "w" ) as fh :
17
+ contents = """
18
+ from setuptools import setup, find_packages
19
+ setup(
20
+ name='testpipenv',
21
+ version='0.1',
22
+ description='Pipenv Test Package',
23
+ author='Pipenv Test',
24
+ author_email='test@pipenv.package',
25
+ license='MIT',
26
+ packages=find_packages(),
27
+ install_requires=[],
28
+ extras_require={'dev': ['six']},
29
+ zip_safe=False
30
+ )
31
+ """ .strip ()
32
+ fh .write (contents )
33
+ # project.write_toml({"packages": pipfile, "dev-packages": {}})
34
+ c = p .pipenv ("install ." )
35
+ assert c .returncode == 0
36
+ assert "testpipenv" in p .lockfile ["default" ]
37
+
38
+
10
39
@pytest .mark .extras
11
40
@pytest .mark .install
12
41
@pytest .mark .local
You can’t perform that action at this time.
0 commit comments