Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release 1.23.22 #999

Merged
merged 6 commits into from
Mar 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
OasisPlatform Changelog
=======================

.. _`1.23.22`: https://github.com/OasisLMF/OasisPlatform/compare/1.23.21...1.23.22

.. _`1.23.21`: https://github.com/OasisLMF/OasisPlatform/compare/1.23.20...1.23.21

.. _`1.23.20`: https://github.com/OasisLMF/OasisPlatform/compare/1.23.19...1.23.20
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile.api_server
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ RUN pip install --user --no-warn-script-location -r ./requirements-server.txt &&
FROM ubuntu:22.04
RUN apt-get update \
&& apt-get upgrade -y \
&& apt-get install -y --no-install-recommends python3 python3-pip curl libmariadbclient-dev-compat \
&& apt-get install -y --no-install-recommends python3 python3-pkg-resources curl libmariadbclient-dev-compat \
&& rm -rf /var/lib/apt/lists/

COPY --from=build-packages /root/.local /root/.local
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.23.21
1.23.22
4 changes: 2 additions & 2 deletions requirements-server.txt
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ coreschema==0.0.4
# via
# coreapi
# drf-yasg
cryptography==41.0.6
cryptography==42.0.4
# via
# autobahn
# pyopenssl
Expand Down Expand Up @@ -169,7 +169,7 @@ pyjwt==2.7.0
# via djangorestframework-simplejwt
pymysql==1.0.3
# via -r requirements-server.in
pyopenssl==23.2.0
pyopenssl==24.0.0
# via twisted
pyrsistent==0.19.3
# via jsonschema
Expand Down
4 changes: 1 addition & 3 deletions requirements-worker.txt
Original file line number Diff line number Diff line change
Expand Up @@ -123,9 +123,7 @@ numpy==1.24.3
# scipy
# shapely
oasislmf[extra]==1.23.20
# via
# -r requirements-worker.in
# oasislmf
# via -r requirements-worker.in
packaging==23.1
# via
# fastparquet
Expand Down
8 changes: 3 additions & 5 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ coverage[toml]==7.2.5
# pytest-cov
cramjam==2.6.2
# via fastparquet
cryptography==41.0.6
cryptography==42.0.4
# via
# autobahn
# pyopenssl
Expand Down Expand Up @@ -263,9 +263,7 @@ numpy==1.24.3
# scipy
# shapely
oasislmf[extra]==1.23.20
# via
# -r ./requirements-worker.in
# oasislmf
# via -r ./requirements-worker.in
ods-tools==2.3.2
# via -r ./requirements-server.in
packaging==23.1
Expand Down Expand Up @@ -325,7 +323,7 @@ pymysql==1.0.3
# via
# -r ./requirements-server.in
# -r ./requirements-worker.in
pyopenssl==23.2.0
pyopenssl==24.0.0
# via
# -r requirements.in
# twisted
Expand Down
5 changes: 3 additions & 2 deletions src/conf/celeryconf.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import urllib
from src.conf.iniconf import settings

#: Celery config - ignore result?
Expand All @@ -21,8 +22,8 @@
else:
CELERY_RESULT_BACKEND = '{DB_ENGINE}://{DB_USER}:{DB_PASS}@{DB_HOST}:{DB_PORT}/{DB_NAME}'.format(
DB_ENGINE=settings.get('celery', 'db_engine'),
DB_USER=settings.get('celery', 'db_user'),
DB_PASS=settings.get('celery', 'db_pass'),
DB_USER=urllib.parse.quote(settings.get('celery', 'db_user')),
DB_PASS=urllib.parse.quote(settings.get('celery', 'db_pass')),
DB_HOST=settings.get('celery', 'db_host'),
DB_PORT=settings.get('celery', 'db_port'),
DB_NAME=settings.get('celery', 'db_name', fallback='celery'),
Expand Down
2 changes: 1 addition & 1 deletion src/model_execution_worker/storage_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ def _store_file(self, file_path, suffix=None):
self.media_root,
self._get_unique_filename(ext))
self.logger.info('Store file: {} -> {}'.format(file_path, stored_fp))
return shutil.copy(file_path, stored_fp)
return shutil.copyfile(file_path, stored_fp)

def _store_dir(self, directory_path, suffix=None, arcname=None):
""" Compress and store a directory
Expand Down
2 changes: 1 addition & 1 deletion src/model_execution_worker/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -619,7 +619,7 @@ def prepare_complex_model_file_inputs(complex_model_files, run_directory):
to_path = os.path.join(run_directory, orig_fn)
if os.name == 'nt':
logging.info(f'complex_model_file: copy {from_path} to {to_path}')
shutil.copy(from_path, to_path)
shutil.copyfile(from_path, to_path)
else:
logging.info(f'complex_model_file: link {from_path} to {to_path}')
os.symlink(from_path, to_path)
Expand Down