Skip to content

Commit 0dde584

Browse files
committed
feat(ci): update version
1 parent eb3ae2a commit 0dde584

File tree

4 files changed

+13
-11
lines changed

4 files changed

+13
-11
lines changed

.github/workflows/publish.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
- name: Get version
3434
id: version
3535
run: |
36-
version=$(python -m setuptools_scm)
36+
version=$(sed -n 's/^ *version.*=.*"\([^"]*\)".*/\1/p' pyproject.toml)
3737
echo "version=$version" >> $GITHUB_ENV
3838
echo "Version : $version"
3939

.github/workflows/test.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
- name: Get version from setup.py
2424
id: version
2525
run: |
26-
version=$(python -m setuptools_scm)
26+
version=$(sed -n 's/^ *version.*=.*"\([^"]*\)".*/\1/p' pyproject.toml)
2727
echo "version=$version" >> $GITHUB_ENV
2828
2929
- name: Build package

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ description = "Scaleway provider implementation for Yardstiq"
99
requires-python = ">=3.12"
1010

1111
dependencies = [
12-
"yardstiq>=0.1.0",
12+
"yardstiq>=0.1.1",
1313
"scaleway-qaas-client>=0.1.23",
14-
"qami>=0.1.0",
14+
"qio>=0.1.17",
1515
]
1616

1717
[project.urls]

yardstiq_scaleway/scaleway_provider.py

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -65,23 +65,25 @@ def run(
6565
if not isinstance(program, list):
6666
program = [program]
6767

68-
computation_model_dict = QuantumComputationModel(
68+
computation_model_json = QuantumComputationModel(
6969
programs=program,
7070
backend=None,
7171
client=None,
72-
).to_dict()
72+
).to_json_str()
7373

74-
computation_parameters_dict = QuantumComputationParameters(
74+
computation_parameters_json = QuantumComputationParameters(
7575
shots=shots,
76-
).to_dict()
76+
).to_json_str()
7777

78-
model = self.__client.create_model(computation_model_dict)
78+
model = self.__client.create_model(computation_model_json)
7979

8080
if not model:
8181
raise RuntimeError("Failed to push model data")
8282

8383
job = self.__client.create_job(
84-
self.__session_id, model_id=model.id, parameters=computation_parameters_dict
84+
self.__session_id,
85+
model_id=model.id,
86+
parameters=computation_parameters_json
8587
)
8688

8789
while job.status in ["waiting", "running"]:
@@ -120,7 +122,7 @@ def _extract_payload_from_response(
120122
else:
121123
raise RuntimeError("Got result with empty data and url fields")
122124

123-
return QuantumProgramResult.from_json(result)
125+
return QuantumProgramResult.from_json_str(result)
124126

125127
@property
126128
def max_qubit_count(self) -> int:

0 commit comments

Comments
 (0)