2017-10-27 07:08:24 +00:00
|
|
|
from setuptools import setup, find_packages
|
2018-04-13 18:22:15 +00:00
|
|
|
import os
|
2018-04-13 16:03:09 +00:00
|
|
|
|
|
|
|
|
|
|
|
def get_long_description():
|
2018-04-13 18:22:15 +00:00
|
|
|
with open(os.path.join(
|
|
|
|
os.path.dirname(os.path.abspath(__file__)), 'README.md'
|
|
|
|
), encoding='utf8') as fp:
|
2018-04-13 16:03:09 +00:00
|
|
|
return fp.read()
|
|
|
|
|
2017-10-27 07:08:24 +00:00
|
|
|
|
2018-04-16 04:28:24 +00:00
|
|
|
def get_version():
|
|
|
|
path = os.path.join(
|
|
|
|
os.path.dirname(os.path.abspath(__file__)), 'datasette', 'version.py'
|
|
|
|
)
|
|
|
|
g = {}
|
|
|
|
exec(open(path).read(), g)
|
|
|
|
return g['__version__']
|
|
|
|
|
|
|
|
|
2017-10-27 07:08:24 +00:00
|
|
|
setup(
|
2017-11-10 18:38:35 +00:00
|
|
|
name='datasette',
|
2017-11-13 21:17:34 +00:00
|
|
|
description='An instant JSON API for your SQLite databases',
|
2018-04-13 16:03:09 +00:00
|
|
|
long_description=get_long_description(),
|
|
|
|
long_description_content_type='text/markdown',
|
2017-11-13 21:17:34 +00:00
|
|
|
author='Simon Willison',
|
2018-04-16 04:28:24 +00:00
|
|
|
version=get_version(),
|
2017-11-13 21:17:34 +00:00
|
|
|
license='Apache License, Version 2.0',
|
|
|
|
url='https://github.com/simonw/datasette',
|
2017-10-27 07:08:24 +00:00
|
|
|
packages=find_packages(),
|
2017-11-10 18:38:35 +00:00
|
|
|
package_data={'datasette': ['templates/*.html']},
|
2017-10-27 07:08:24 +00:00
|
|
|
include_package_data=True,
|
|
|
|
install_requires=[
|
|
|
|
'click==6.7',
|
2017-11-04 23:53:50 +00:00
|
|
|
'click-default-group==1.2',
|
2017-12-09 03:00:33 +00:00
|
|
|
'Sanic==0.7.0',
|
2017-11-16 00:14:07 +00:00
|
|
|
'Jinja2==2.10',
|
2017-11-09 13:46:16 +00:00
|
|
|
'hupper==1.0',
|
2018-04-16 00:56:15 +00:00
|
|
|
'pint==0.8.1',
|
|
|
|
'pluggy>=0.1.0,<1.0',
|
2017-10-27 07:08:24 +00:00
|
|
|
],
|
|
|
|
entry_points='''
|
|
|
|
[console_scripts]
|
2017-11-10 18:38:35 +00:00
|
|
|
datasette=datasette.cli:cli
|
2017-10-27 07:08:24 +00:00
|
|
|
''',
|
2017-11-04 23:40:27 +00:00
|
|
|
setup_requires=['pytest-runner'],
|
2017-11-11 17:47:59 +00:00
|
|
|
tests_require=[
|
2017-11-22 20:15:29 +00:00
|
|
|
'pytest==3.2.1',
|
2017-11-11 17:47:59 +00:00
|
|
|
'aiohttp==2.3.2',
|
2017-12-09 23:32:54 +00:00
|
|
|
'beautifulsoup4==4.6.0',
|
2017-11-11 17:47:59 +00:00
|
|
|
],
|
2017-11-13 21:17:34 +00:00
|
|
|
classifiers=[
|
|
|
|
'Development Status :: 3 - Alpha',
|
|
|
|
'Intended Audience :: Developers',
|
|
|
|
'Intended Audience :: Science/Research',
|
|
|
|
'Intended Audience :: End Users/Desktop',
|
|
|
|
'Topic :: Database',
|
|
|
|
'License :: OSI Approved :: Apache Software License',
|
|
|
|
'Programming Language :: Python :: 3.6',
|
|
|
|
],
|
2017-10-27 07:08:24 +00:00
|
|
|
)
|