Skip to content

Commit 5c80172

Browse files
committed
Fix usage of "--install-option='pre'" and use "--pre" option in requirements files instead.
The install options is deprecated in pip 23 which Plone switched to recently. More info: - pypa/pip#11358 - https://discuss.python.org/t/passing-command-line-arguments-to-pip-install-after-install-options-deprecation/22981/6
1 parent bdd3f44 commit 5c80172

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

CHANGES.md

+7
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@
22

33
### 3.0.0b3 (unreleased)
44

5+
- Fix usage of "--install-option='pre'" and use "--pre" option in requirements files instead.
6+
The install options is deprecated in pip 23 which Plone switched to recently.
7+
More info:
8+
https://github.com/pypa/pip/issues/11358
9+
https://discuss.python.org/t/passing-command-line-arguments-to-pip-install-after-install-options-deprecation/22981/6
10+
[thet, fredvd]
11+
512
- Fix reading sections from config parser without defaults if section contains setting which also exists as default.
613
[rnix]
714

src/mxdev/processing.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ def write_dev_sources(fio, packages: typing.Dict[str, typing.Dict[str, typing.An
205205
continue
206206
extras = f"[{package['extras']}]" if package["extras"] else ""
207207
subdir = f"/{package['subdirectory']}" if package["subdirectory"] else ""
208-
install_options = ' --install-option="--pre"'
208+
install_options = ' --pre'
209209
editable = (
210210
f"""-e ./{package['target']}/{name}{subdir}{extras}{install_options}\n"""
211211
)

0 commit comments

Comments
 (0)