Skip to content

Commit aeddead

Browse files
mhmdk0hasan7n
andauthored
Update Python to 3.11 (#668)
* update python to 3.11 * fix django package name in server requirements * remove image_tarball_url and image_tarball_hash from database/cube and update tests accordingly * set django version to 4.2.26 * more linting - fix test issue * fix cube server tests * make image_hash required on DB-level, add tests * add image hash to admin panel * update webui tutorial - use images instaed of videos * Adjust regex to overfit the activation URL message pattern * show encryption and access status to non-owners for a model/container --------- Co-authored-by: hasan7n <hasankassim7@hotmail.com>
1 parent 4b3ab91 commit aeddead

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+145
-333
lines changed

.github/workflows/auth-ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ jobs:
2121
with:
2222
ref: ${{ github.event.pull_request.head.sha }}
2323

24-
- name: Set up Python 3.9
24+
- name: Set up Python 3.11
2525
uses: actions/setup-python@v2
2626
with:
27-
python-version: '3.9'
27+
python-version: '3.11'
2828

2929
- name: Install dependencies
3030
working-directory: .

.github/workflows/docker-ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ jobs:
1212
- name: Checkout repository
1313
uses: actions/checkout@v2
1414

15-
- name: Set up Python 3.9
15+
- name: Set up Python 3.11
1616
uses: actions/setup-python@v2
1717
with:
18-
python-version: '3.9'
18+
python-version: '3.11'
1919

2020
- name: Install Singularity
2121
working-directory: ..

.github/workflows/docs-ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
- uses: actions/checkout@v2
1111
- uses: actions/setup-python@v2
1212
with:
13-
python-version: '3.9'
13+
python-version: '3.11'
1414
- run: pip install -r docs/requirements.txt
1515
- run: git config --global user.email "github-actions[bot]@users.noreply.github.com"
1616
- run: git config --global user.name "github-actions[bot]"

.github/workflows/encrypted-containers-ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ jobs:
1010
- name: Checkout repository
1111
uses: actions/checkout@v2
1212

13-
- name: Set up Python 3.9
13+
- name: Set up Python 3.11
1414
uses: actions/setup-python@v2
1515
with:
16-
python-version: "3.9"
16+
python-version: "3.11"
1717

1818
- name: Install Singularity
1919
# The way we install singularity shouldn't happen inside another git repo, otherwise

.github/workflows/local-ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ jobs:
1010
- name: Checkout repository
1111
uses: actions/checkout@v2
1212

13-
- name: Set up Python 3.9
13+
- name: Set up Python 3.11
1414
uses: actions/setup-python@v2
1515
with:
16-
python-version: '3.9'
16+
python-version: '3.11'
1717

1818
- name: Install Singularity
1919
# The way we install singularity shouldn't happen inside another git repo, otherwise

.github/workflows/train-ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ jobs:
1010
- name: Checkout repository
1111
uses: actions/checkout@v2
1212

13-
- name: Set up Python 3.9
13+
- name: Set up Python 3.11
1414
uses: actions/setup-python@v2
1515
with:
16-
python-version: '3.9'
16+
python-version: '3.11'
1717

1818
- name: Install dependencies
1919
working-directory: .

.github/workflows/unittests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ jobs:
1212

1313
steps:
1414
- uses: actions/checkout@v2
15-
- name: Set up Python 3.9
15+
- name: Set up Python 3.11
1616
uses: actions/setup-python@v2
1717
with:
18-
python-version: 3.9
18+
python-version: 3.11
1919
- name: Install dependencies
2020
run: |
2121
python -m pip install --upgrade pip

.github/workflows/webui-ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ jobs:
1010
- name: Checkout repository
1111
uses: actions/checkout@v2
1212

13-
- name: Set up Python 3.9
13+
- name: Set up Python 3.11
1414
uses: actions/setup-python@v2
1515
with:
16-
python-version: '3.9'
16+
python-version: '3.11'
1717

1818
- name: Install dependencies
1919
working-directory: .

cli/medperf/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "0.1.6"
1+
__version__ = "0.2.0"

cli/medperf/commands/compatibility_test/utils.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@ def prepare_local_cube(container_config_path, parameters=None, additional=None):
5858
"name": "local_" + generate_tmp_uid(),
5959
"container_config": container_config,
6060
"parameters_config": parameters_config,
61-
"image_tarball_hash": "",
6261
"additional_files_tarball_hash": "",
6362
"for_test": True,
6463
}

0 commit comments

Comments
 (0)