mirror of
https://github.com/janeczku/calibre-web
synced 2025-11-13 05:37:15 +00:00
Fix error in requirements.txt
This commit is contained in:
@@ -173,7 +173,6 @@ BookMeta = namedtuple('BookMeta', 'file_path, extension, title, author, cover, d
|
|||||||
|
|
||||||
# python build process likes to have x.y.zbw -> b for beta and w a counting number
|
# python build process likes to have x.y.zbw -> b for beta and w a counting number
|
||||||
STABLE_VERSION = '0.6.24b'
|
STABLE_VERSION = '0.6.24b'
|
||||||
# _version = STABLE_VERSION['version']
|
|
||||||
|
|
||||||
NIGHTLY_VERSION = dict()
|
NIGHTLY_VERSION = dict()
|
||||||
NIGHTLY_VERSION[0] = '$Format:%H$'
|
NIGHTLY_VERSION[0] = '$Format:%H$'
|
||||||
|
|||||||
@@ -113,7 +113,7 @@ def get(url, **kwargs):
|
|||||||
"""Sends a GET request.
|
"""Sends a GET request.
|
||||||
|
|
||||||
:param url: URL for the new :class:`Request` object.
|
:param url: URL for the new :class:`Request` object.
|
||||||
:param \*\*kwargs: Optional arguments that ``request`` takes.
|
:param **kwargs: Optional arguments that ``request`` takes.
|
||||||
:return: :class:`Response <Response>` object
|
:return: :class:`Response <Response>` object
|
||||||
:rtype: requests.Response
|
:rtype: requests.Response
|
||||||
"""
|
"""
|
||||||
@@ -122,84 +122,6 @@ def get(url, **kwargs):
|
|||||||
return request('get', url, **kwargs)
|
return request('get', url, **kwargs)
|
||||||
|
|
||||||
|
|
||||||
'''def options(url, **kwargs):
|
|
||||||
"""Sends a OPTIONS request.
|
|
||||||
|
|
||||||
:param url: URL for the new :class:`Request` object.
|
|
||||||
:param \*\*kwargs: Optional arguments that ``request`` takes.
|
|
||||||
:return: :class:`Response <Response>` object
|
|
||||||
:rtype: requests.Response
|
|
||||||
"""
|
|
||||||
|
|
||||||
kwargs.setdefault('allow_redirects', True)
|
|
||||||
return request('options', url, **kwargs)
|
|
||||||
|
|
||||||
|
|
||||||
def head(url, **kwargs):
|
|
||||||
"""Sends a HEAD request.
|
|
||||||
|
|
||||||
:param url: URL for the new :class:`Request` object.
|
|
||||||
:param \*\*kwargs: Optional arguments that ``request`` takes.
|
|
||||||
:return: :class:`Response <Response>` object
|
|
||||||
:rtype: requests.Response
|
|
||||||
"""
|
|
||||||
|
|
||||||
kwargs.setdefault('allow_redirects', False)
|
|
||||||
return request('head', url, **kwargs)
|
|
||||||
|
|
||||||
|
|
||||||
def post(url, data=None, json=None, **kwargs):
|
|
||||||
"""Sends a POST request.
|
|
||||||
|
|
||||||
:param url: URL for the new :class:`Request` object.
|
|
||||||
:param data: (optional) Dictionary, bytes, or file-like object to send in the body of the :class:`Request`.
|
|
||||||
:param json: (optional) json data to send in the body of the :class:`Request`.
|
|
||||||
:param \*\*kwargs: Optional arguments that ``request`` takes.
|
|
||||||
:return: :class:`Response <Response>` object
|
|
||||||
:rtype: requests.Response
|
|
||||||
"""
|
|
||||||
|
|
||||||
return request('post', url, data=data, json=json, **kwargs)
|
|
||||||
|
|
||||||
|
|
||||||
def put(url, data=None, **kwargs):
|
|
||||||
"""Sends a PUT request.
|
|
||||||
|
|
||||||
:param url: URL for the new :class:`Request` object.
|
|
||||||
:param data: (optional) Dictionary, bytes, or file-like object to send in the body of the :class:`Request`.
|
|
||||||
:param \*\*kwargs: Optional arguments that ``request`` takes.
|
|
||||||
:return: :class:`Response <Response>` object
|
|
||||||
:rtype: requests.Response
|
|
||||||
"""
|
|
||||||
|
|
||||||
return request('put', url, data=data, **kwargs)
|
|
||||||
|
|
||||||
|
|
||||||
def patch(url, data=None, **kwargs):
|
|
||||||
"""Sends a PATCH request.
|
|
||||||
|
|
||||||
:param url: URL for the new :class:`Request` object.
|
|
||||||
:param data: (optional) Dictionary, bytes, or file-like object to send in the body of the :class:`Request`.
|
|
||||||
:param \*\*kwargs: Optional arguments that ``request`` takes.
|
|
||||||
:return: :class:`Response <Response>` object
|
|
||||||
:rtype: requests.Response
|
|
||||||
"""
|
|
||||||
|
|
||||||
return request('patch', url, data=data, **kwargs)
|
|
||||||
|
|
||||||
|
|
||||||
def delete(url, **kwargs):
|
|
||||||
"""Sends a DELETE request.
|
|
||||||
|
|
||||||
:param url: URL for the new :class:`Request` object.
|
|
||||||
:param \*\*kwargs: Optional arguments that ``request`` takes.
|
|
||||||
:return: :class:`Response <Response>` object
|
|
||||||
:rtype: requests.Response
|
|
||||||
"""
|
|
||||||
|
|
||||||
return request('delete', url, **kwargs)'''
|
|
||||||
|
|
||||||
|
|
||||||
class RequestsAPIWrapper:
|
class RequestsAPIWrapper:
|
||||||
"""Provides a `requests.api`-like interface with a specific validator"""
|
"""Provides a `requests.api`-like interface with a specific validator"""
|
||||||
|
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ Babel>=1.3,<3.0
|
|||||||
Flask-Babel>=0.11.1,<4.1.0
|
Flask-Babel>=0.11.1,<4.1.0
|
||||||
Flask-Principal>=0.3.2,<0.5.1
|
Flask-Principal>=0.3.2,<0.5.1
|
||||||
Flask>=1.0.2,<3.1.0
|
Flask>=1.0.2,<3.1.0
|
||||||
iso-639>=0.4.5<0.5.0;python_version<'3.12'
|
iso-639>=0.4.5,<0.5.0;python_version<'3.12'
|
||||||
pycountry>=20.0.0,<25.0.0;python_version>='3.12'
|
pycountry>=20.0.0,<25.0.0;python_version>='3.12'
|
||||||
PyPDF>=3.15.6,<5.1.0
|
PyPDF>=3.15.6,<5.1.0
|
||||||
pytz>=2016.10
|
pytz>=2016.10
|
||||||
|
|||||||
Reference in New Issue
Block a user