Skip to content

Commit

Permalink
fix(engine): remove uvloop requirement (#172)
Browse files Browse the repository at this point in the history
* remove  requirement
* openapi update
  • Loading branch information
pcanto-hopeit committed Feb 14, 2024
1 parent 1b61452 commit ee292a7
Show file tree
Hide file tree
Showing 9 changed files with 16 additions and 10 deletions.
2 changes: 1 addition & 1 deletion apps/examples/client-example/api/openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -834,7 +834,7 @@
},
"engine_version": {
"type": "string",
"default": "0.21.1"
"default": "0.21.2"
}
},
"x-module-name": "hopeit.server.config",
Expand Down
2 changes: 1 addition & 1 deletion apps/examples/simple-example/api/openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -2132,7 +2132,7 @@
},
"engine_version": {
"type": "string",
"default": "0.21.1"
"default": "0.21.2"
}
},
"x-module-name": "hopeit.server.config",
Expand Down
7 changes: 7 additions & 0 deletions docs/source/release-notes.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
Release Notes
=============

Version 0.21.2
______________
- Engine:

- Fix: Remove `uvloop` library requirement


Version 0.21.1
______________
- Engine:
Expand Down
1 change: 1 addition & 0 deletions engine/requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,4 @@ isort
# Plugin dependencies
redis
watchdog
uvloop
3 changes: 1 addition & 2 deletions engine/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,4 @@ click
deepdiff
multidict
typing_inspect
gunicorn
uvloop
gunicorn
4 changes: 1 addition & 3 deletions engine/setup.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import sys
import setuptools

version = {}
Expand Down Expand Up @@ -112,8 +111,7 @@ def libversion(lib):
"aiohttp",
"aiohttp-cors",
"aiohttp-swagger3",
"gunicorn",
*(["uvloop"] if sys.platform != "win32" else [])
"gunicorn"
]],
"cli": [ f"{lib}>={libversion(lib)}" for lib in [
"click"
Expand Down
3 changes: 2 additions & 1 deletion engine/src/hopeit/cli/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ def server():
" can also be used explicitly to start only events with no group or 'DEFAULT' group label.")
@click.option('--workers', default=1, help="Number of workeres to start. Max number of workers is (cpu_count * 2) + 1")
@click.option('--worker-class', type=click.Choice(['GunicornWebWorker', 'GunicornUVLoopWebWorker']),
default="GunicornWebWorker", help="Gunicorn aiohttp worker class. Default value is GunicornWebWorker.")
default="GunicornWebWorker", help="Gunicorn aiohttp worker class. Default value is GunicornWebWorker. "
"GunicornUVLoopWebWorker requires `pip install uvloop`")
@click.option('--worker-timeout', default=0, help="Workers silent for more than this many seconds are killed and "
"restarted. Value is a positive number or 0. Setting it to 0 has the effect of infinite timeouts "
"by disabling timeouts for all workers entirely.")
Expand Down
2 changes: 1 addition & 1 deletion engine/src/hopeit/server/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import sys

ENGINE_NAME = "hopeit.engine"
ENGINE_VERSION = "0.21.1"
ENGINE_VERSION = "0.21.2"

# Major.Minor version to be used in App versions and Api endpoints for Apps/Plugins
APPS_API_VERSION = '.'.join(ENGINE_VERSION.split('.')[0:2])
Expand Down
2 changes: 1 addition & 1 deletion plugins/ops/apps-visualizer/api/openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -833,7 +833,7 @@
},
"engine_version": {
"type": "string",
"default": "0.21.1"
"default": "0.21.2"
}
},
"x-module-name": "hopeit.server.config",
Expand Down

0 comments on commit ee292a7

Please sign in to comment.