Skip to content

Commit

Permalink
fix more edge cases of linux
Browse files Browse the repository at this point in the history
  • Loading branch information
matteius committed Jul 30, 2023
1 parent 9ed349a commit 8a627fc
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ jobs:
with:
python-version: "3.11"
- run: |
python -m pip install --upgrade wheel invoke parver beautifulsoup4 towncrier requests parse hatch-fancy-pypi-readme pdm-backend
python -m pip install --upgrade wheel invoke parver beautifulsoup4 towncrier requests parse hatch-fancy-pypi-readme
python -m invoke vendoring.update
tests:
name: ${{matrix.os}} / ${{ matrix.python-version }}
Expand Down
2 changes: 2 additions & 0 deletions pipenv/utils/dependencies.py
Original file line number Diff line number Diff line change
Expand Up @@ -520,6 +520,8 @@ def find_package_name_from_tarball(tarball_filepath):


def find_package_name_from_zipfile(zip_filepath):
if zip_filepath.startswith("file://"):
zip_filepath = zip_filepath[7:]
with zipfile.ZipFile(zip_filepath, "r") as zip_ref:
for filename in zip_ref.namelist():
if filename.endswith(RELEVANT_PROJECT_FILES):
Expand Down
2 changes: 1 addition & 1 deletion tests/integration/test_install_uri.py
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ def test_vcs_entry_supersedes_non_vcs(pipenv_instance_pypi):
@pytest.mark.needs_internet
def test_vcs_can_use_markers(pipenv_instance_pypi):
with pipenv_instance_pypi() as p:
path = p._pipfile.get_fixture_path("git/six/.git")
path = p._pipfile.get_fixture_path("git/six/")
p._pipfile.install("six", {"git": f"{path.as_uri()}", "markers": "sys_platform == 'linux'"})
assert "six" in p.pipfile["packages"]
c = p.pipenv("install")
Expand Down

0 comments on commit 8a627fc

Please sign in to comment.