Skip to content

Commit 2fae777

Browse files
fix: correct prerelease release-please version
Co-authored-by: Miles Cranmer <miles.cranmer@gmail.com>
1 parent 2fb1806 commit 2fae777

5 files changed

Lines changed: 4 additions & 14 deletions

File tree

.github/workflows/update_backend.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
run: |
4141
if git diff --quiet pysr/juliapkg.json; then
4242
echo "No changes to pysr/juliapkg.json. Restoring changes."
43-
git restore pyproject.toml .release-please-manifest.json
43+
git restore pyproject.toml
4444
fi
4545
4646
- name: "Create PR if necessary"
@@ -56,7 +56,6 @@ jobs:
5656
delete-branch: true
5757
commit-message: "chore: update backend to v${{ steps.get-latest.outputs.version }}"
5858
add-paths: |
59-
.release-please-manifest.json
6059
pyproject.toml
6160
pysr/juliapkg.json
6261

.github/workflows/update_backend_version.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,12 @@
1212
repo_root = Path(__file__).parent / ".." / ".."
1313
pyproject_toml = repo_root / "pyproject.toml"
1414
juliapkg_json = repo_root / "pysr" / "juliapkg.json"
15-
release_please_manifest = repo_root / ".release-please-manifest.json"
16-
1715
with open(pyproject_toml) as toml_file:
1816
pyproject_data = tomlkit.parse(toml_file.read())
1917

2018
with open(juliapkg_json) as f:
2119
juliapkg_data = json.load(f)
2220

23-
with open(release_please_manifest) as f:
24-
release_please_manifest_data = json.load(f)
25-
2621
current_version = pyproject_data["project"]["version"]
2722
parts = current_version.split(".")
2823

@@ -57,7 +52,6 @@
5752
new_version = f"{major}.{minor}.{new_patch}{new_suffix}{extra_parts}"
5853

5954
pyproject_data["project"]["version"] = new_version
60-
release_please_manifest_data["."] = new_version
6155

6256
# Update backend - maintain current format (either "rev" or "version")
6357
backend_pkg = juliapkg_data["packages"]["SymbolicRegression"]
@@ -77,6 +71,3 @@
7771
json.dump(juliapkg_data, f, indent=4)
7872
f.write("\n")
7973

80-
with open(release_please_manifest, "w") as f:
81-
json.dump(release_please_manifest_data, f, indent=2)
82-
f.write("\n")

.release-please-manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
".": "2.1.0"
2+
".": "2.0.0a2"
33
}

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Changelog
22

3-
## [2.1.0](https://github.com/MilesCranmer/PySR/compare/v2.0.0...v2.1.0) (2026-04-18)
3+
## [2.0.0a2](https://github.com/MilesCranmer/PySR/compare/v2.0.0a1...v2.0.0a2) (2026-04-18)
44

55

66
### Features

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
44

55
[project]
66
name = "pysr"
7-
version = "2.1.0"
7+
version = "2.0.0a2"
88
authors = [
99
{name = "Miles Cranmer", email = "miles.cranmer@gmail.com"},
1010
]

0 commit comments

Comments
 (0)