Skip to content

Commit fbb6793

Browse files
authored
Upgrade cirro_api_client (#187)
* upgrade api client * type -> type_ * remove mypy
1 parent f958250 commit fbb6793

7 files changed

Lines changed: 280 additions & 367 deletions

File tree

.github/workflows/lint.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,30 +15,30 @@ jobs:
1515
contents: read
1616
strategy:
1717
matrix:
18-
python-version: [ "3.9", "3.10", "3.11", "3.12" ]
18+
python-version: [ "3.10", "3.11", "3.12", "3.13", "3.14" ]
1919

2020
steps:
2121
# For SonarCloud scan
2222
- uses: actions/checkout@v4
23-
if: matrix.python-version == '3.12'
23+
if: matrix.python-version == '3.14'
2424
with:
2525
fetch-depth: 0
2626

2727
- uses: actions/checkout@v4
28-
if: matrix.python-version != '3.12'
28+
if: matrix.python-version != '3.14'
2929

3030
- name: Set up Python ${{ matrix.python-version }}
3131
uses: actions/setup-python@v5
3232
with:
3333
python-version: ${{ matrix.python-version }}
34-
34+
3535
# for nextflow
3636
- name: Set up Java Runtime Environment
3737
uses: actions/setup-java@v4
3838
with:
3939
java-version: '21'
4040
distribution: 'temurin'
41-
41+
4242
- name: Install Nextflow 25.04.2 (standalone)
4343
run: |
4444
curl -sL https://github.com/nextflow-io/nextflow/releases/download/v25.04.2/nextflow-25.04.2-dist -o nextflow
@@ -62,7 +62,7 @@ jobs:
6262
6363
- name: SonarCloud Scan
6464
uses: sonarsource/sonarcloud-github-action@master
65-
if: matrix.python-version == '3.12' # Only run once
65+
if: matrix.python-version == '3.14' # Only run once
6666
env:
6767
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
68-
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
68+
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}

.github/workflows/package.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ jobs:
2020
steps:
2121
- uses: actions/checkout@v2
2222

23-
- name: Set up Python 3.12
23+
- name: Set up Python 3.14
2424
uses: actions/setup-python@v2
2525
with:
26-
python-version: "3.12"
26+
python-version: "3.14"
2727

2828
- name: Install deps
2929
run: |

cirro/sdk/project.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ def list_references(self, reference_type: str = None) -> DataPortalReferences:
134134
for ref in self._client.references.get_for_project(
135135
self.id
136136
)
137-
if reference_type is None or ref.type == reference_type
137+
if reference_type is None or ref.type_ == reference_type
138138
]
139139
)
140140

cirro/sdk/reference.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def name(self) -> str:
4040
@property
4141
def type(self) -> str:
4242
"""Type of reference data (e.g. genome_fasta)"""
43-
return self._data.type
43+
return self._data.type_
4444

4545
@property
4646
def absolute_path(self):

cirro/services/dataset.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ def get_assets_listing(self, project_id: str, dataset_id: str, file_limit: int =
227227
]
228228
artifacts = [
229229
Artifact(
230-
artifact_type=a.type,
230+
artifact_type=a.type_,
231231
file=File.from_file_entry(
232232
FileEntry(a.path),
233233
project_id=project_id,

poetry.lock

Lines changed: 266 additions & 353 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "cirro"
3-
version = "1.9.5"
3+
version = "1.10.0"
44
description = "CLI tool and SDK for interacting with the Cirro platform"
55
authors = ["Cirro Bio <support@cirro.bio>"]
66
license = "MIT"
@@ -11,7 +11,7 @@ packages = [{include = "cirro"}]
1111
[tool.poetry.dependencies]
1212
python = ">3.10.0,<4.0"
1313
attrs = ">=21.3.0"
14-
cirro_api_client = "1.2.2"
14+
cirro_api_client = "~1.3.0"
1515
click = "^8.1.3"
1616
boto3 = "~=1.41"
1717
questionary = "^2.0.1"

0 commit comments

Comments
 (0)