Skip to content

Commit c74f9a6

Browse files
matteiusoz123
authored andcommitted
Clean up lint, add news fragment and address issue 6167
1 parent b2c094b commit c74f9a6

File tree

4 files changed

+18
-11
lines changed

4 files changed

+18
-11
lines changed

README.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,6 @@ For most users, we recommend installing Pipenv using `pip`:
7878

7979
pip install --user pipenv
8080

81-
Or, if you\'re using Fedora:
82-
83-
sudo dnf install pipenv
84-
8581
Or, if you\'re using FreeBSD:
8682

8783
pkg install py39-pipenv

news/6276.bugfix.rst

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
Features & Bug Fixes
2+
-------------------
3+
- Refactored and simplified install routines, improving maintainability and reliability (#6276)
4+
- Split install logic into smaller, focused functions.
5+
- Eliminated Pipfile caching for now to prevent bugs and reduce complexity.
6+
- Fixed edge cases with package category selection.
7+
- Improved handling of VCS dependencies during updates, fixing when ref is a revision and not a branch.
8+
9+
- Enhanced VCS URL handling with better environment variable support (#6276)
10+
- More reliable expansion of environment variables in Git URLs.
11+
- Better handling of authentication components in VCS URLs.
12+
- Improved error messaging for missing environment variables.
13+
- Fixed issue where Git reference could be dropped during relock.

tests/integration/test_install_vcs.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
11
import os
2-
from unittest.mock import patch, Mock, MagicMock
32

43
import pytest
54

6-
from pipenv.patched.pip._internal.vcs.git import Git
7-
from pipenv.utils import requirementslib
8-
95

106
@pytest.mark.basic
117
@pytest.mark.install

tests/unit/test_vcs.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1-
import pytest
21
import os
2+
3+
import pytest
4+
35
from pipenv.exceptions import PipenvUsageError
46
from pipenv.utils.dependencies import (
57
VCSURLProcessor,
@@ -169,7 +171,7 @@ def test_git_ssh_shorthand_format():
169171

170172
# First test direct VCSURLProcessor
171173
processed = VCSURLProcessor.process_vcs_url(url)
172-
assert f"git@github.com:org/repo.git" == processed
174+
assert "git@github.com:org/repo.git" == processed
173175

174176
# Then test requirement string generation
175177
_, _, req_str = install_req_from_pipfile("package-name", pipfile)
@@ -215,7 +217,7 @@ def test_ssh_protocol_variations():
215217
test_cases = [
216218
"git+ssh://git@${HOST}/${REPO}.git",
217219
"ssh://git@${HOST}/${REPO}.git",
218-
f"git@${{HOST}}:${{REPO}}.git"
220+
"git@${{HOST}}:${{REPO}}.git"
219221
]
220222

221223
os.environ.update({

0 commit comments

Comments
 (0)