Skip to content

Commit 3d6ab9d

Browse files
committed
Merge remote-tracking branch 'origin/release_bfabric_scripts'
2 parents 08dcd14 + a25ad79 commit 3d6ab9d

8 files changed

Lines changed: 46 additions & 5 deletions

File tree

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
#!/usr/bin/env python3
2+
import re
3+
import sys
4+
5+
6+
def extract_changelog(version, changelog_path):
7+
with open(changelog_path) as f:
8+
content = f.read()
9+
10+
match = re.search(rf"^## \[{re.escape(version)}\].*?(?=^## \[|\Z)", content, re.M | re.S)
11+
12+
if match:
13+
return match.group(0).strip()
14+
return ""
15+
16+
17+
if __name__ == "__main__":
18+
if len(sys.argv) != 3:
19+
print("Usage: extract_changelog.py VERSION CHANGELOG_PATH")
20+
sys.exit(1)
21+
22+
version = sys.argv[1]
23+
changelog_path = sys.argv[2]
24+
print(extract_changelog(version, changelog_path))

.github/workflows/run_unit_tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
name: PR Checks
22
on:
33
push:
4-
branches: [main, stable]
4+
branches: [main, stable, release_*]
55
pull_request:
6-
branches: [main, stable]
6+
branches: [main, stable, release_*]
77
workflow_dispatch:
88
jobs:
99
unit_tests:

bfabric/docs/changelog.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ Versioning currently follows `X.Y.Z` where
1010

1111
## \[Unreleased\]
1212

13+
### Removed
14+
15+
- `cyclopts` is not a dependency of `bfabric` anymore, but rather of `bfabric-scripts` and `bfabric-app-runner`.
16+
1317
## \[1.13.23\] - 2025-03-25
1418

1519
### Fixed

bfabric/pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ dependencies = [
2828
"pydantic>=2.9.2",
2929
"eval_type_backport; python_version < '3.10'",
3030
"python-dateutil >= 2.9.0",
31-
"cyclopts >= 2.9.9",
3231
"requests >= 2.26.0",
3332
#"platformdirs >= 4.3",
3433
]

bfabric_app_runner/docs/changelog.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
1313

1414
- Submitter params in app definition, use key `params` rather than `config` to be more explicit.
1515

16+
### Fixed
17+
18+
- Temporary workaround for https://github.com/fgcz/bfabricPy/issues/168.
19+
1620
## \[0.0.20\] - 2025-03-25
1721

1822
### Changed

bfabric_app_runner/pyproject.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ authors = [
1313
requires-python = ">=3.12"
1414
dependencies = [
1515
"bfabric==1.13.23",
16+
# TODO(leo): https://github.com/fgcz/bfabricPy/issues/168
17+
"cyclopts >= 3.8.0,<3.11.0",
1618
"pydantic",
1719
"glom",
1820
"mako",

bfabric_scripts/docs/changelog.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,12 @@ Versioning currently follows `X.Y.Z` where
1414

1515
- Remove `bfabric-cli api save` -> use `bfabric-cli api create` and `bfabric-cli api update` instead.
1616

17+
## \[1.13.25\] - 2025-03-27
18+
19+
### Fixed
20+
21+
- Temporary workaround for https://github.com/fgcz/bfabricPy/issues/168.
22+
1723
## \[1.13.24\] - 2025-02-19
1824

1925
### Fixed

bfabric_scripts/pyproject.toml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,12 @@ build-backend = "hatchling.build"
55
[project]
66
name = "bfabric_scripts"
77
description = "Python command line scripts for the B-Fabric API"
8-
version = "1.13.24"
8+
version = "1.13.25"
99

1010
dependencies = [
11-
"bfabric==1.13.22"
11+
"bfabric==1.13.22",
12+
# TODO(leo): https://github.com/fgcz/bfabricPy/issues/168
13+
"cyclopts >= 3.8.0,<3.11.0",
1214
]
1315

1416
[project.optional-dependencies]

0 commit comments

Comments
 (0)