diff --git a/conf/app.src b/conf/app.src index f3b2c40..129ea79 100644 --- a/conf/app.src +++ b/conf/app.src @@ -1,3 +1,3 @@ -SOURCE_URL=https://github.com/janeczku/calibre-web/releases/download/0.6.18/calibre-web-0.6.18.zip -SOURCE_SUM=65a267fc44629f9373a391333154b277a3fb9124031c1e20cd1b3acac939c95a +SOURCE_URL=https://github.com/janeczku/calibre-web/releases/download/0.6.19/calibre-web-0.6.19.zip +SOURCE_SUM=fbb0b328dcba04d895a717c61af181897bf9ef081f1a3cf52a7223b1bbbfb015 SOURCE_FORMAT=zip diff --git a/manifest.json b/manifest.json index b66ef8c..5a70273 100644 --- a/manifest.json +++ b/manifest.json @@ -6,10 +6,10 @@ "en": "Browsing, reading and downloading eBooks using a Calibre database", "fr": "Explorer, lire et télécharger des eBooks à partir d'une base de données Calibre" }, - "version": "0.96.18~ynh1", + "version": "0.96.19~ynh1", "url": "https://github.com/janeczku/calibre-web", "upstream": { - "version": "0.6.18", + "version": "0.6.19", "license": "GPL-3.0-only", "admindoc": "https://github.com/janeczku/calibre-web/wiki", "code": "https://github.com/janeczku/calibre-web" diff --git a/scripts/install b/scripts/install index cac174d..051c9a2 100755 --- a/scripts/install +++ b/scripts/install @@ -125,8 +125,8 @@ chown -R "$app:" "$final_path" set -o nounset ynh_exec_as $app $final_path/venv/bin/python3 -m ensurepip ynh_exec_as $app $final_path/venv/bin/pip3 install --upgrade wheel pip setuptools - ynh_exec_as $app $final_path/venv/bin/pip3 install --no-cache-dir --upgrade --target $final_path/vendor -r "$final_path/requirements.txt" - ynh_exec_as $app $final_path/venv/bin/pip3 install --no-cache-dir --upgrade --target $final_path/vendor -r "$final_path/optional-requirements.txt" + ynh_exec_as $app $final_path/venv/bin/pip3 install --no-cache-dir --upgrade -r "$final_path/requirements.txt" + ynh_exec_as $app $final_path/venv/bin/pip3 install --no-cache-dir --upgrade -r "$final_path/optional-requirements.txt" ) diff --git a/scripts/upgrade b/scripts/upgrade index 49e2bf7..39e10c4 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -198,8 +198,8 @@ then set -o nounset ynh_exec_as $app $final_path/venv/bin/python3 -m ensurepip ynh_exec_as $app $final_path/venv/bin/pip3 install --upgrade wheel pip setuptools - ynh_exec_as $app $final_path/venv/bin/pip3 install --no-cache-dir --upgrade --target $final_path/vendor -r "$final_path/requirements.txt" - ynh_exec_as $app $final_path/venv/bin/pip3 install --no-cache-dir --upgrade --target $final_path/vendor -r "$final_path/optional-requirements.txt" + ynh_exec_as $app $final_path/venv/bin/pip3 install --no-cache-dir --upgrade -r "$final_path/requirements.txt" + ynh_exec_as $app $final_path/venv/bin/pip3 install --no-cache-dir --upgrade -r "$final_path/optional-requirements.txt" ) fi diff --git a/sources/patches/app-config_sql.py.patch.src b/sources/patches/app-config_sql.py.patch.src index 0594aed..6678766 100644 --- a/sources/patches/app-config_sql.py.patch.src +++ b/sources/patches/app-config_sql.py.patch.src @@ -1,6 +1,6 @@ ---- a/cps/config_sql.py 2022-03-06 16:10:41.000000000 +0100 -+++ b/cps/config_sql.py 2022-03-08 21:04:33.966228954 +0100 -@@ -61,7 +61,7 @@ +--- a/cps/config_sql.py 2022-08-12 13:48:46.980029500 +0200 ++++ b/cps/config_sql.py 2022-08-12 13:51:56.223434627 +0200 +@@ -62,7 +62,7 @@ mail_server_type = Column(SmallInteger, default=0) mail_gmail_token = Column(JSON, default={}) @@ -9,7 +9,7 @@ config_calibre_uuid = Column(String) config_port = Column(Integer, default=constants.DEFAULT_PORT) config_external_port = Column(Integer, default=constants.DEFAULT_PORT) -@@ -78,11 +78,11 @@ +@@ -79,11 +79,11 @@ config_theme = Column(Integer, default=0) config_log_level = Column(SmallInteger, default=logger.DEFAULT_LOG_LEVEL) @@ -25,7 +25,7 @@ config_anonbrowse = Column(SmallInteger, default=0) config_public_reg = Column(SmallInteger, default=0) config_remote_login = Column(Boolean, default=False) -@@ -108,11 +108,11 @@ +@@ -109,11 +109,11 @@ config_goodreads_api_key = Column(String) config_goodreads_api_secret = Column(String) config_register_email = Column(Boolean, default=False) @@ -39,7 +39,7 @@ config_ldap_port = Column(SmallInteger, default=389) config_ldap_authentication = Column(SmallInteger, default=constants.LDAP_AUTH_SIMPLE) config_ldap_serv_username = Column(String, default='cn=admin,dc=example,dc=org') -@@ -121,11 +121,11 @@ +@@ -122,11 +122,11 @@ config_ldap_cacert_path = Column(String, default="") config_ldap_cert_path = Column(String, default="") config_ldap_key_path = Column(String, default="") @@ -47,7 +47,7 @@ - config_ldap_user_object = Column(String, default='uid=%s') + config_ldap_dn = Column(String, default='dc=yunohost,dc=org') + config_ldap_user_object = Column(String, default='(&(objectClass=posixAccount)(permission=cn=calibreweb.main,ou=permission,dc=yunohost,dc=org)(uid=%s))') - config_ldap_member_user_object = Column(String, default='') # + config_ldap_member_user_object = Column(String, default='') config_ldap_openldap = Column(Boolean, default=True) - config_ldap_group_object_filter = Column(String, default='(&(objectclass=posixGroup)(cn=%s))') + config_ldap_group_object_filter = Column(String, default='(&(objectClass=posixGroup)(cn=%s.main))') diff --git a/sources/patches/app-optional-requirements.txt.patch b/sources/patches/app-optional-requirements.txt.patch index 28051d4..706845b 100644 --- a/sources/patches/app-optional-requirements.txt.patch +++ b/sources/patches/app-optional-requirements.txt.patch @@ -2,7 +2,7 @@ +++ b/optional-requirements.txt 2022-04-18 12:10:55.761291352 +0200 @@ -1,19 +1,5 @@ # GDrive Integration --google-api-python-client>=1.7.11,<2.43.0 +-google-api-python-client>=1.7.11,<2.50.0 gevent>20.6.0,<22.0.0 -greenlet>=0.4.17,<1.2.0 -httplib2>=0.9.2,<0.21.0 @@ -16,7 +16,7 @@ - -# Gmail -google-auth-oauthlib>=0.4.3,<0.6.0 --google-api-python-client>=1.7.11,<2.43.0 +-google-api-python-client>=1.7.11,<2.50.0 # goodreads goodreads>=0.3.2,<0.4.0 @@ -30,11 +30,4 @@ - # metadata extraction rarfile>=3.2 - scholarly>=1.2.0,<1.7 -@@ -42,3 +24,6 @@ - - # Kobo integration - jsonschema>=3.2.0,<4.5.0 -+ -+#readded to avoid 2.2 from dependencies -+werkzeug<2.1.0 + scholarly>=1.2.0,<1.8