Skip to content

Commit 06f0b00

Browse files
authored
Merge pull request #1120 from OasisLMF/release/1.28.10
Release 1.28.10
2 parents 1bf178e + 37d310e commit 06f0b00

9 files changed

+190
-84
lines changed
+60
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
name: DB migration Test
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
workflow_dispatch:
9+
inputs:
10+
prev_release_tag:
11+
description: 'OasisPlatform tag [semvar]'
12+
required: false
13+
14+
workflow_call:
15+
inputs:
16+
prev_release_tag:
17+
description: 'Platform tag to set the DB migration from'
18+
required: false
19+
type: string
20+
platform_branch:
21+
description: "Platform branch to migrate to (remote trigger) [git ref]"
22+
required: True
23+
type: string
24+
25+
jobs:
26+
DB_migrate:
27+
runs-on: ubuntu-22.04
28+
env:
29+
PLAT_BRANCH: ${{ github.ref }}
30+
PREV_RELEASE_TAG: ${{ inputs.prev_release_tag }}
31+
32+
steps:
33+
- name: Branch selection (remote trigger)
34+
if: inputs.platform_branch != ''
35+
run: echo "PLAT_BRANCH=${{ inputs.platform_branch }}" >> $GITHUB_ENV
36+
37+
- name: Checkout
38+
uses: actions/checkout@v3
39+
with:
40+
repository: OasisLMF/OasisPlatform
41+
ref: ${{ env.PLAT_BRANCH }}
42+
fetch-depth: 0
43+
44+
- name: Find 'prev_release_tag'
45+
if: inputs.prev_release_tag == ''
46+
run: |
47+
tag=$( ./scripts/find_release.sh -t 1)
48+
echo "PREV_RELEASE_TAG=$tag" >> $GITHUB_ENV
49+
- name: Create DB to migrate from
50+
run: |
51+
./scripts/create-db-sqlite3.sh ${{ env.PREV_RELEASE_TAG }}
52+
- name: Set up Python 3.10
53+
uses: actions/setup-python@v4
54+
with:
55+
python-version: '3.10'
56+
- run: pip install -r requirements-server.txt
57+
58+
- name: Run Migration
59+
run: |
60+
python ./manage.py migrate

CHANGELOG.rst

+7
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
OasisPlatform Changelog
22
=======================
33

4+
`1.28.10`_
5+
---------
6+
* [#1114](https://github.com/OasisLMF/OasisPlatform/pull/1114) - Release 1.28.9
7+
* [#1141](https://github.com/OasisLMF/OasisPlatform/pull/1141) - Add setttings from platform v2 for running the v1.28.x server on azure cloud
8+
* [#1146](https://github.com/OasisLMF/OasisPlatform/pull/1146) - Fix CVE issues in release 1.28.10
9+
.. _`1.28.10`: https://github.com/OasisLMF/OasisPlatform/compare/1.28.9...1.28.10
10+
411
`1.28.9`_
512
---------
613
* [#1117](https://github.com/OasisLMF/OasisPlatform/pull/1117) - Updated Package Requirements

Dockerfile.model_worker_debian

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM python:3.8
1+
FROM python:3.10
22

33
RUN apt-get update && apt-get install -y --no-install-recommends git vim libspatialindex-dev && rm -rf /var/lib/apt/lists/*
44
RUN adduser --home /home/worker --shell /bin/bash --disabled-password --gecos "" worker

VERSION

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.28.9
1+
1.28.10

requirements-server.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ cryptography==42.0.4
7979
# service-identity
8080
daphne==4.0.0
8181
# via -r requirements-server.in
82-
django==3.2.23
82+
django==3.2.25
8383
# via
8484
# -r requirements-server.in
8585
# channels

requirements-worker.txt

+10-17
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ argparsetree==0.0.6
1212
# via oasislmf
1313
attrs==22.2.0
1414
# via
15-
# fiona
1615
# jsonschema
1716
# pytest
1817
azure-core==1.26.3
@@ -33,7 +32,7 @@ celery==5.2.7
3332
# via -r requirements-worker.in
3433
certifi==2023.7.22
3534
# via
36-
# fiona
35+
# pyogrio
3736
# pyproj
3837
# requests
3938
cffi==1.15.1
@@ -52,18 +51,12 @@ click==8.1.3
5251
# click-didyoumean
5352
# click-plugins
5453
# click-repl
55-
# cligj
56-
# fiona
5754
click-didyoumean==0.3.0
5855
# via celery
5956
click-plugins==1.1.1
60-
# via
61-
# celery
62-
# fiona
57+
# via celery
6358
click-repl==0.2.0
6459
# via celery
65-
cligj==0.7.2
66-
# via fiona
6760
configparser==5.3.0
6861
# via -r requirements-worker.in
6962
cramjam==2.6.2
@@ -76,15 +69,11 @@ fasteners==0.18
7669
# via -r requirements-worker.in
7770
fastparquet==2023.2.0
7871
# via oasislmf
79-
fiona==1.9.6
80-
# via
81-
# geopandas
82-
# oasislmf
8372
forex-python==1.8
8473
# via oasislmf
8574
fsspec==2023.3.0
8675
# via fastparquet
87-
geopandas==0.12.2
76+
geopandas==1.0.1
8877
# via oasislmf
8978
greenlet==2.0.2
9079
# via sqlalchemy
@@ -115,20 +104,22 @@ numba==0.56.4
115104
# -r requirements-worker.in
116105
# oasislmf
117106
# ods-tools
118-
numexpr==2.8.4
107+
numexpr==2.10.0
119108
# via oasislmf
120109
numpy==1.22.4
121110
# via
122111
# fastparquet
112+
# geopandas
123113
# numba
124114
# numexpr
125115
# oasislmf
126116
# pandas
127117
# pyarrow
118+
# pyogrio
128119
# scikit-learn
129120
# scipy
130121
# shapely
131-
oasislmf[extra]==1.28.9
122+
oasislmf[extra]==1.28.10
132123
# via -r requirements-worker.in
133124
ods-tools==3.1.5
134125
# via oasislmf
@@ -137,6 +128,7 @@ packaging==23.0
137128
# fastparquet
138129
# geopandas
139130
# ods-tools
131+
# pyogrio
140132
# pytest
141133
pandas==1.5.3
142134
# via
@@ -158,6 +150,8 @@ pycparser==2.21
158150
# via cffi
159151
pymysql==1.1.1
160152
# via -r requirements-worker.in
153+
pyogrio==0.10.0
154+
# via geopandas
161155
pyproj==3.4.1
162156
# via geopandas
163157
pyrsistent==0.19.3
@@ -204,7 +198,6 @@ six==1.16.0
204198
# anytree
205199
# azure-core
206200
# click-repl
207-
# fiona
208201
# isodate
209202
# pathlib2
210203
# python-dateutil

0 commit comments

Comments
 (0)