kopia lustrzana https://github.com/simonw/datasette
rodzic
e6ca885883
commit
228bce83a3
|
@ -0,0 +1 @@
|
|||
from datasette.version import __version_info__, __version__ # noqa
|
|
@ -28,6 +28,7 @@ from .utils import (
|
|||
sqlite_timelimit,
|
||||
validate_sql_select,
|
||||
)
|
||||
from .version import __version__
|
||||
|
||||
app_root = Path(__file__).parent.parent
|
||||
|
||||
|
@ -223,6 +224,7 @@ class BaseView(HTTPMethodView):
|
|||
'url_json': path_with_ext(request, '.json'),
|
||||
'url_jsono': path_with_ext(request, '.jsono'),
|
||||
'metadata': self.ds.metadata,
|
||||
'datasette_version': __version__,
|
||||
}}
|
||||
r = self.jinja.render(
|
||||
template,
|
||||
|
@ -279,6 +281,7 @@ class IndexView(HTTPMethodView):
|
|||
request,
|
||||
databases=databases,
|
||||
metadata=self.ds.metadata,
|
||||
datasette_version=__version__,
|
||||
)
|
||||
|
||||
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
{% endblock %}
|
||||
|
||||
<div class="ft">
|
||||
Powered by <a href="https://github.com/simonw/datasette">Datasette</a>
|
||||
Powered by <a href="https://github.com/simonw/datasette" title="Datasette v{{ datasette_version }}">Datasette</a>
|
||||
{% if query_ms %}· Query took {{ query_ms|round(3) }}ms{% endif %}
|
||||
{% if metadata.license %}· Data license:
|
||||
{% if metadata.license_url %}
|
||||
|
|
|
@ -0,0 +1,2 @@
|
|||
__version_info__ = (0, 12)
|
||||
__version__ = '.'.join(map(str, __version_info__))
|
3
setup.py
3
setup.py
|
@ -1,10 +1,11 @@
|
|||
from setuptools import setup, find_packages
|
||||
from datasette import __version__
|
||||
|
||||
setup(
|
||||
name='datasette',
|
||||
description='An instant JSON API for your SQLite databases',
|
||||
author='Simon Willison',
|
||||
version='0.11',
|
||||
version=__version__,
|
||||
license='Apache License, Version 2.0',
|
||||
url='https://github.com/simonw/datasette',
|
||||
packages=find_packages(),
|
||||
|
|
Ładowanie…
Reference in New Issue