From fd15157d1f1a72199b48891fdc309551eef88a8c Mon Sep 17 00:00:00 2001 From: "Jens W. Klein" Date: Wed, 28 Feb 2024 14:47:20 +0100 Subject: [PATCH] Remove --pre on generated sources --- CHANGES.md | 11 ++++++++++- src/mxdev/processing.py | 2 +- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index 0867a30..a256f0c 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,8 +1,17 @@ ## Changes +### 4.0.0 (2024-02-28) + +- Breaking: Remove `--pre` on sources from generated `requirements-mxdev.txt`. + Usually it is not needed any longer. + This is a breaking change if you rely on the `--pre` option being present in the generated file. + Now the `--pre` option should be added to `pip install` when the generated file is used. + This change enables the use of the generated file with the alternative pip replacement `uv`. + [jensens] + ### 3.1.0 (2023-12-10) -- Provide `directory` default setting [rnix] +- Feature: Provide `directory` default setting [rnix] - Feature: Include other INI config files [jensens] ### 3.0.0 (2023-05-08) diff --git a/src/mxdev/processing.py b/src/mxdev/processing.py index a8db81d..134bc30 100644 --- a/src/mxdev/processing.py +++ b/src/mxdev/processing.py @@ -205,7 +205,7 @@ def write_dev_sources(fio, packages: typing.Dict[str, typing.Dict[str, typing.An continue extras = f"[{package['extras']}]" if package["extras"] else "" subdir = f"/{package['subdirectory']}" if package["subdirectory"] else "" - install_options = " --pre" + install_options = "" editable = ( f"""-e ./{package['target']}/{name}{subdir}{extras}{install_options}\n""" )