Skip to content

Commit 6ab72ed

Browse files
committed
preventive breaking changes with pandas v3
1 parent be9213e commit 6ab72ed

2 files changed

Lines changed: 20 additions & 14 deletions

File tree

BUILDING.md

Lines changed: 19 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -18,27 +18,33 @@ pip install -e .
1818

1919
#### Manual Steps
2020
```bash
21-
# clean (-n is dry-run, remove to delete)
21+
# Ensure working tree is clean
22+
git status
23+
24+
# Clean (-n is dry-run, remove to delete)
2225
git clean -dfX -n
23-
git clean -dfX
26+
git clean -dfX # X removes only .gitignored files
2427
git clean -dfx -n
25-
git clean -dfx
26-
27-
# tags check
28-
git tag
28+
git clean -dfx # x removes all untracked (danger!)
2929

30-
# Create tags on the main branch!
31-
# tag create locally & upload
32-
git tag -a v0.3.12 -m 'minor future deprecation fix' && git push origin v0.3.12
30+
# Calculate the next tag
31+
git tag --sort=-version:refname -n | head
32+
python -m setuptools_scm
3333

34-
# delete tag locally & upstream
35-
git tag --delete v0.3.12 && git push --delete origin v0.3.12
34+
# Create tag LOCALLY first (don't push yet)
35+
git tag -a v0.3.13 -m 'preventive breaking changes with pandas v3'
3636

37-
# view calculated version to check is not dirty
37+
# NOW check version is clean
3838
python -m setuptools_scm
3939

40-
# build : creates `dist` with .whl & tar.gz files
40+
# Test build locally: creates `dist` with .whl & tar.gz files
4141
python -m build
42+
43+
# Push tag (triggers GitHub Actions workflow for PyPI publishing)
44+
git push origin v0.3.13
45+
46+
# [if failure] Undo delete tag locally & upstream
47+
git tag --delete v0.3.13 && git push --delete origin v0.3.13
4248
```
4349

4450
### Documentation

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ dependencies = [
2727
"networkx>=2.7",
2828
"numpy<2; python_version < '3.11'",
2929
"numpy; python_version >= '3.11'",
30-
"pandas",
30+
"pandas<3.0.0",
3131
"pyomo",
3232
"scikit-learn",
3333
"scipy",

0 commit comments

Comments
 (0)