Skip to content

Commit

Permalink
updates due to python3.11
Browse files Browse the repository at this point in the history
  • Loading branch information
peshence committed Sep 16, 2024
1 parent 19790a6 commit 8700923
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 41 deletions.
5 changes: 2 additions & 3 deletions polytope_server/frontend/common/application_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@

import gunicorn.app.base
from gunicorn import glogging
from gunicorn.six import iteritems


class CustomLogger(glogging.Logger):
Expand All @@ -46,9 +45,9 @@ def __init__(self, app, options=None):

def load_config(self):
config = dict(
[(key, value) for key, value in iteritems(self.options) if key in self.cfg.settings and value is not None]
[(key, value) for key, value in self.options.items() if key in self.cfg.settings and value is not None]
)
for key, value in iteritems(config):
for key, value in config.items():
self.cfg.set(key.lower(), value)

self.cfg.set("logger_class", CustomLogger)
Expand Down
4 changes: 2 additions & 2 deletions polytope_server/frontend/flask_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@ def create_handler(
SWAGGERUI_BLUEPRINT = get_swaggerui_blueprint(
SWAGGER_URL, tmp.name, config={"app_name": "Polytope", "spec": spec}
)
handler.register_blueprint(SWAGGERUI_BLUEPRINT, url_prefix=SWAGGER_URL)
handler.register_blueprint(SWAGGERUI_BLUEPRINT, url_prefix="/")
handler.register_blueprint(SWAGGERUI_BLUEPRINT, name="openapi", url_prefix=SWAGGER_URL)
handler.register_blueprint(SWAGGERUI_BLUEPRINT, name="home",url_prefix="/")

data_transfer = DataTransfer(request_store, staging)

Expand Down
70 changes: 34 additions & 36 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,36 +1,34 @@
attrdict
boto3
covjsonkit
deepmerge
docker
ecmwf-api-client
falcon
falcon-jsonify
Flask
flask-mongoengine
flask-restful
flask-restplus
flask-script
flask-swagger-ui
flask-wtf
gunicorn
hiyapyco
Jinja2
jsonschema
ldap3
markdown
minio
pika
polytope-mars
polytope-python
py-bcrypt
pykwalify
pymemcache
pymongo
pytest
python-jose
python-keycloak
pyyaml
redis
requests
werkzeug
attrdict==2.0.1
boto3==1.35.19
covjsonkit==0.0.20
deepmerge==2.0
docker==7.1.0
ecmwf-api-client==1.6.3
Flask==3.0.3
flask-mongoengine==1.0.0
Flask-RESTful==0.3.10
flask-restplus==0.13.0
Flask-Script==2.0.6
flask-swagger-ui==4.11.1
Flask-WTF==1.2.1
gunicorn==23.0.0
HiYaPyCo==0.6.1
Jinja2==3.1.4
jsonschema==4.23.0
ldap3==2.9.1
Markdown==3.7
minio==7.2.8
pika==1.3.2
polytope-mars==0.0.8
polytope-python==1.0.6
py-bcrypt==0.4
pykwalify==1.8.0
pymemcache==4.0.0
pymongo==4.8.0
pytest==8.3.3
python-jose==3.3.0
python-keycloak==4.4.0
PyYAML==6.0.2
redis==5.0.8
requests==2.32.3
Werkzeug==3.0.4

0 comments on commit 8700923

Please sign in to comment.