Include gunicorn and gevent in [full]
continuous-integration/drone/push Build is failing Details

master
pictuga 2021-11-23 20:32:22 +01:00
parent 8f576adb64
commit 37e08f8b4c
3 changed files with 5 additions and 4 deletions

View File

@ -3,7 +3,7 @@ FROM alpine:latest
RUN apk add --no-cache python3 py3-pip py3-wheel git py3-lxml py3-gevent py3-zope-interface py3-zope-event
ADD . /app
RUN pip3 install --no-cache-dir /app[full] gunicorn
RUN pip3 install --no-cache-dir /app[full]
USER 1000:1000

View File

@ -61,7 +61,8 @@ pip install git+https://git.pictuga.com/pictuga/morss.git#egg=morss[full]
```
The full install includes mysql, redis and diskcache (possible cache backends).
Otherwise, only in-memory and sqlite3 caches are available.
Otherwise, only in-memory and sqlite3 caches are available. The full install
also includes gunicorn and gevent (for more efficient HTTP handling).
The dependency `lxml` is fairly long to install (especially on Raspberry Pi, as
C code needs to be compiled). If possible on your distribution, try installing
@ -123,7 +124,7 @@ write_files:
runcmd:
- update-ca-certificates
- pip install git+https://git.pictuga.com/pictuga/morss.git#egg=morss[full] gunicorn gevent
- pip install git+https://git.pictuga.com/pictuga/morss.git#egg=morss[full]
- gunicorn --bind 0.0.0.0:${PORT:-8000} --workers 4 --worker-class=gevent --preload --access-logfile - morss
```

View File

@ -14,7 +14,7 @@ setup(
license = 'AGPL v3',
packages = [package_name],
install_requires = ['lxml', 'bs4', 'python-dateutil', 'chardet'],
extras_require = {'full': ['pymysql', 'redis', 'diskcache']},
extras_require = {'full': ['pymysql', 'redis', 'diskcache', 'gunicorn', 'gevent']},
package_data = {package_name: ['feedify.ini']},
data_files = [
('share/' + package_name, ['README.md', 'LICENSE']),