Skip to content

Commit 5c6e70f

Browse files
authored
Update pipenv from 2020.11.15 to 2023.2.4 (/2022.4.8) (#1407)
Updates Pipenv from 2020.11.15 to: - 2022.4.8 for Python 3.6 - 2023.2.4 for Python 3.7+ Release notes: https://github.com/pypa/pipenv/blob/main/CHANGELOG.rst#pipenv-202324-2023-02-04 Full changes: pypa/pipenv@v2020.11.15...v2023.2.4 Closes #1403. GUS-W-9348641.
1 parent a784207 commit 5c6e70f

File tree

21 files changed

+98
-94
lines changed

21 files changed

+98
-94
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44

55
- Python 3.10.10 and 3.11.2 are now available ([#1405](https://github.com/heroku/heroku-buildpack-python/pull/1405)).
66
- The default Python version for new apps is now 3.10.10 (previously 3.10.9) ([#1405](https://github.com/heroku/heroku-buildpack-python/pull/1405)).
7+
- Update Pipenv from 2020.11.15 to: ([#1407](https://github.com/heroku/heroku-buildpack-python/pull/1407))
8+
- 2022.4.8 for Python 3.6
9+
- 2023.2.4 for Python 3.7+
710
- Add a deprecation warning for Python 3.7 ([#1404](https://github.com/heroku/heroku-buildpack-python/pull/1404)).
811

912
## v224 (2022-12-07)

bin/steps/pipenv

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,16 @@ if [ ! "$SKIP_PIPENV_INSTALL" ]; then
4242
mcount "buildvar.PIP_EXTRA_INDEX_URL"
4343
fi
4444

45-
PIPENV_VERSION='2020.11.15'
45+
PIPENV_VERSION='2023.2.4'
4646

47-
# Install pipenv.
48-
# Due to weird old pip behavior and pipenv behavior, pipenv upgrades pip
49-
# to latest if only --upgrade is specified. Specify upgrade strategy to
50-
# avoid this eager behavior.
51-
/app/.heroku/python/bin/pip install "pipenv==${PIPENV_VERSION}" --upgrade --upgrade-strategy only-if-needed &> /dev/null
47+
case "${PYTHON_VERSION}" in
48+
python-3.6.*)
49+
# Python 3.6 support was dropped in pipenv 2022.4.20.
50+
PIPENV_VERSION='2022.4.8'
51+
;;
52+
esac
53+
54+
/app/.heroku/python/bin/pip install --quiet --disable-pip-version-check --no-cache-dir "pipenv==${PIPENV_VERSION}"
5255

5356
# Install the test dependencies, for CI.
5457
if [ "$INSTALL_TEST" ]; then

bin/steps/python

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ if ! curl --silent --show-error --fail --retry 3 --retry-connrefused --connect-t
213213
exit 1
214214
fi
215215

216-
/app/.heroku/python/bin/python "${PIP_WHEEL}/pip" install --quiet --disable-pip-version-check --no-cache \
216+
/app/.heroku/python/bin/python "${PIP_WHEEL}/pip" install --quiet --disable-pip-version-check --no-cache-dir \
217217
"${PIP_WHEEL}" "setuptools==${SETUPTOOLS_VERSION}" "wheel==${WHEEL_VERSION}"
218218

219219
hash -r

spec/fixtures/pipenv_and_requirements_txt/Pipfile.lock

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

spec/fixtures/pipenv_and_runtime_txt/Pipfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ urllib3 = "*"
99
[dev-packages]
1010

1111
[requires]
12-
python_version = "3.8"
12+
python_version = "3.9"

spec/fixtures/pipenv_and_runtime_txt/Pipfile.lock

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

spec/fixtures/pipenv_lockfile_out_of_sync/Pipfile.lock

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

spec/fixtures/pipenv_python_2.7/Pipfile.lock

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

spec/fixtures/pipenv_python_3.10/Pipfile.lock

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

spec/fixtures/pipenv_python_3.11/Pipfile.lock

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)