Skip to content

Commit 6bda8b1

Browse files
authored
Merge pull request #377 from fgcz/deploy-20251203-01
Release
2 parents a037cb5 + b9360fa commit 6bda8b1

4 files changed

Lines changed: 9 additions & 16 deletions

File tree

.basedpyright/baseline.bfabric_scripts.json

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3141,14 +3141,6 @@
31413141
"lineCount": 1
31423142
}
31433143
},
3144-
{
3145-
"code": "reportAny",
3146-
"range": {
3147-
"startColumn": 4,
3148-
"endColumn": 17,
3149-
"lineCount": 1
3150-
}
3151-
},
31523144
{
31533145
"code": "reportExplicitAny",
31543146
"range": {

bfabric_scripts/docs/changelog.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,13 @@ Versioning currently follows `X.Y.Z` where
1010

1111
## \[Unreleased\]
1212

13+
## \[1.13.38\] - 2025-12-03
14+
1315
### Changed
1416

1517
- Minimal Python version is now 3.11.
1618
- `bfabric_flask` validate_token uses the newer functionality in bfabricPy.
17-
- Update `bfabric` dependency to `1.14.0` and as an experiment, replace the very strong constraint by `<1.15.0`.
19+
- Update `bfabric` dependency to `>=1.14.1,<1.15.0`.
1820

1921
### Fixed
2022

bfabric_scripts/pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ build-backend = "hatchling.build"
66
name = "bfabric_scripts"
77
description = "Python command line scripts for the B-Fabric API"
88
readme = "../README.md"
9-
version = "1.13.37"
9+
version = "1.13.38"
1010

1111
dependencies = [
12-
"bfabric>=1.14.0,<1.15.0",
12+
"bfabric>=1.14.1,<1.15.0",
1313
"cyclopts>=4.0,<5.0",
1414
"Flask>=3.0.3,<4.0",
1515
"xmltodict>=1.0.0,<2.0.0",

bfabric_scripts/src/bfabric_scripts/cli/executable/upload.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
import base64
22
from pathlib import Path
33
from typing import Literal, Any
4-
4+
from bfabric.entities import Executable
55
import xmltodict
66
import yaml
77
from rich.console import Console
88

99
from bfabric import Bfabric
10-
from bfabric.entities import Executable
1110
from bfabric.utils.cli_integration import use_client
1211

1312

@@ -57,11 +56,11 @@ def cmd_executable_upload(
5756

5857
# Perform the request
5958
result = client.save("executable", executable_data)
60-
executable_id = result[0]["id"]
59+
executable = Executable(data_dict=result[0], bfabric_instance=client.config.base_url)
6160

6261
console.print("Executable uploaded successfully.")
63-
console.print("Executable ID:", executable_id)
64-
console.print("Executable URL:", Executable({"id": executable_id}, client=client).web_url)
62+
console.print("Executable ID:", executable.id)
63+
console.print("Executable URI:", executable.uri)
6564

6665

6766
def read_executable_data(metadata_file: Path, metadata_file_format: Literal["xml", "yaml"]) -> dict[str, Any]:

0 commit comments

Comments
 (0)