Skip to content

Commit 8427d8a

Browse files
authored
Merge pull request #39 from mxstack/drop-pre
Remove --pre on generated sources
2 parents 4051dec + 93fbe63 commit 8427d8a

File tree

6 files changed

+41
-14
lines changed

6 files changed

+41
-14
lines changed

.github/workflows/release.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
steps:
1818
- uses: actions/checkout@v4
1919
- name: Set up Python
20-
uses: actions/setup-python@v4
20+
uses: actions/setup-python@v5
2121
with:
2222
python-version: "3.12"
2323
- name: Install pypa/build

.github/workflows/tests.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,13 @@ jobs:
1111
lint:
1212
runs-on: ubuntu-latest
1313
steps:
14-
- uses: actions/checkout@v3
15-
- uses: actions/setup-python@v4
14+
- uses: actions/checkout@v4
15+
- uses: actions/setup-python@v5
1616
- uses: pre-commit/[email protected]
1717
build:
1818
strategy:
1919
matrix:
2020
python-version:
21-
- "3.7"
2221
- "3.8"
2322
- "3.9"
2423
- "3.10"

CHANGES.md

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,23 @@
11
## Changes
22

3+
### 4.0.0 (2024-02-28)
4+
5+
- Breaking: Remove `--pre` on sources from generated `requirements-mxdev.txt`.
6+
Usually it is not needed any longer, at least withy pip 23.x.
7+
This is a breaking change if you rely on the `--pre` option being present in the generated file.
8+
Now the `--pre` option should be added to `pip install` when the generated file is used.
9+
This change enables the use of the generated file with the alternative pip replacement `uv`.
10+
[jensens]
11+
12+
- Breaking: Drop official support for Python 3.7 (it is end of life).
13+
[jensens]
14+
15+
- Document `mx.ini` sections `vcs` setting.
16+
[jensens]
17+
318
### 3.1.0 (2023-12-10)
419

5-
- Provide `directory` default setting [rnix]
20+
- Feature: Provide `directory` default setting [rnix]
621
- Feature: Include other INI config files [jensens]
722

823
### 3.0.0 (2023-05-08)

README.md

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,22 @@ Optional a writable URL for pushes can be specified.
191191
If the `pushurl` is set after initial checkout it is not applied.
192192
To apply it remove the repository and checkout again.
193193

194+
#### `vcs = VCS`
195+
196+
The version control system to use.
197+
198+
Supported are:
199+
- `git` (stable, tested)
200+
- `fs` (stable, tested) - in fact no vcs, but points to a local directory.
201+
This can be achieved without mxdev by using `-e PATH` in the requirements input file.
202+
- `svn` (unstable, test needs rewrite)
203+
- `gitsvn` (unstable, test needs rewrite)
204+
- `hg` (unstable, test needs rewrite)
205+
- `bzr` (unstable, test needs rewrite)
206+
- `darcs` (unstable, test needs rewrite)
207+
208+
Defaults to `git`.
209+
194210
#### `branch = BRANCHNAME_OR_TAG`
195211

196212
The branch name or tag to checkout.
@@ -208,6 +224,7 @@ For specifying the path to the Python package, when it is not in the root of the
208224
Default empty.
209225

210226
#### `target`
227+
211228
The target directory for source from this section.
212229

213230
Default to default target directory configured in the main section `[settings]` `default-target =` value.
@@ -261,7 +278,7 @@ Mxdev will
261278

262279
Now, use the generated requirements and constraints files with i.e. `pip install -r requirements-mxdev.txt`.
263280

264-
**mxdev >=2.0 needs pip version 22 at minimum to work properly**
281+
**mxdev >=4.0 needs pip version 23 at minimum to work properly**
265282

266283
## Example Configuration
267284

pyproject.toml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,20 @@
11
[project]
22
name = "mxdev"
33
description = "Enable to work with Python projects containing lots of packages, of which you only want to develop some."
4-
version = "3.1.0"
4+
version = "4.0.0"
55
keywords = ["pip", "vcs", "git", "development"]
66
authors = [
77
{name = "MX Stack Developers", email = "[email protected]" }
88
]
9-
requires-python = ">=3.7"
9+
requires-python = ">=3.8"
1010
license = { text = "BSD 2-Clause License" }
1111
classifiers = [
12-
"Development Status :: 4 - Beta",
12+
"Development Status :: 5 - Production/Stable",
1313
"Intended Audience :: Developers",
1414
"Topic :: Software Development :: Build Tools",
1515
"License :: OSI Approved :: BSD License",
1616
"Operating System :: OS Independent",
1717
"Programming Language :: Python",
18-
"Programming Language :: Python :: 3.7",
1918
"Programming Language :: Python :: 3.8",
2019
"Programming Language :: Python :: 3.9",
2120
"Programming Language :: Python :: 3.10",

src/mxdev/processing.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -205,10 +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 = " --pre"
209-
editable = (
210-
f"""-e ./{package['target']}/{name}{subdir}{extras}{install_options}\n"""
211-
)
208+
editable = f"""-e ./{package['target']}/{name}{subdir}{extras}\n"""
212209
logger.debug(f"-> {editable.strip()}")
213210
fio.write(editable)
214211
fio.write("\n\n")

0 commit comments

Comments
 (0)