Skip to content

Commit f50b405

Browse files
authored
Fix breakage that was almost released (#6302)
* Fix breakage that was almost released * remove spurious logic * and prep for actual release
1 parent 7ef4f16 commit f50b405

File tree

3 files changed

+14
-24
lines changed

3 files changed

+14
-24
lines changed

CHANGELOG.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
2024.3.0 (2024-10-30)
1+
2024.3.1 (2024-10-30)
22
=====================
33

44
Bug Fixes
@@ -8,6 +8,7 @@ Bug Fixes
88
- Fix regression of ``2024.3.0`` when using the ``--system`` flag without ``--deploy`` flag. `#6295 <https://github.com/pypa/pipenv/issues/6295>`_
99
- - **Bugfix:** Fixed Regression with the ``pipenv update`` routine to allow for package upgrades without requiring an existing lockfile. This change improves the flexibility of the update process by determining which packages require updating and handling cases where the lockfile is absent or partially defined.
1010
- **Tests Added:** Comprehensive integration tests for the updated functionality, covering scenarios like updating packages without a lockfile, detecting modified entries, handling VCS changes, and verifying the correct application of extras during installation. `#6299 <https://github.com/pypa/pipenv/issues/6299>`_
11+
1112
2024.3.0 (2024-10-29)
1213
=====================
1314

pipenv/__version__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
# // ) ) / / // ) ) //___) ) // ) ) || / /
33
# //___/ / / / //___/ / // // / / || / /
44
# // / / // ((____ // / / ||/ /
5-
__version__ = "2024.3.1"
5+
__version__ = "2024.3.0"

pipenv/routines/update.py

+11-22
Original file line numberDiff line numberDiff line change
@@ -380,28 +380,17 @@ def upgrade(
380380

381381
complete_packages = project.parsed_pipfile.get(pipfile_category, {})
382382

383-
full_lock_resolution = venv_resolve_deps(
384-
complete_packages,
385-
which=project._which,
386-
project=project,
387-
lockfile={},
388-
pipfile_category=pipfile_category,
389-
pre=pre,
390-
allow_global=system,
391-
pypi_mirror=pypi_mirror,
392-
)
393-
394-
if upgrade_lock_data is None:
395-
for package_name, package_data in full_lock_resolution.items():
396-
lockfile[category][package_name] = package_data
397-
else: # Upgrade a subset of packages
398-
# Verify no conflicts were introduced during resolution
399-
for package_name, package_data in full_lock_resolution.items():
400-
if package_name in upgrade_lock_data:
401-
version = package_data.get("version", "").replace("==", "")
402-
if not version:
403-
# Either vcs or file package
404-
continue
383+
if upgrade_lock_data is not None: # Upgrade a subset of packages
384+
full_lock_resolution = venv_resolve_deps(
385+
complete_packages,
386+
which=project._which,
387+
project=project,
388+
lockfile={},
389+
pipfile_category=pipfile_category,
390+
pre=pre,
391+
allow_global=system,
392+
pypi_mirror=pypi_mirror,
393+
)
405394

406395
# Update lockfile with verified resolution data
407396
for package_name in upgrade_lock_data:

0 commit comments

Comments
 (0)