2017-10-27 00:08:24 -07:00
|
|
|
from setuptools import setup, find_packages
|
2018-04-13 11:22:15 -07:00
|
|
|
import os
|
2018-04-13 09:03:09 -07:00
|
|
|
|
2018-05-22 17:33:29 +02:00
|
|
|
import versioneer
|
|
|
|
|
|
2018-04-13 09:03:09 -07:00
|
|
|
|
|
|
|
|
def get_long_description():
|
2018-04-13 11:22:15 -07:00
|
|
|
with open(os.path.join(
|
|
|
|
|
os.path.dirname(os.path.abspath(__file__)), 'README.md'
|
|
|
|
|
), encoding='utf8') as fp:
|
2018-04-13 09:03:09 -07:00
|
|
|
return fp.read()
|
|
|
|
|
|
2017-10-27 00:08:24 -07:00
|
|
|
|
2018-04-15 21:28:24 -07: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 00:08:24 -07:00
|
|
|
setup(
|
2017-11-10 10:38:35 -08:00
|
|
|
name='datasette',
|
2018-05-22 17:33:29 +02:00
|
|
|
version=versioneer.get_version(),
|
|
|
|
|
cmdclass=versioneer.get_cmdclass(),
|
2017-11-13 13:17:34 -08:00
|
|
|
description='An instant JSON API for your SQLite databases',
|
2018-04-13 09:03:09 -07:00
|
|
|
long_description=get_long_description(),
|
|
|
|
|
long_description_content_type='text/markdown',
|
2017-11-13 13:17:34 -08:00
|
|
|
author='Simon Willison',
|
|
|
|
|
license='Apache License, Version 2.0',
|
|
|
|
|
url='https://github.com/simonw/datasette',
|
2017-10-27 00:08:24 -07:00
|
|
|
packages=find_packages(),
|
2017-11-10 10:38:35 -08:00
|
|
|
package_data={'datasette': ['templates/*.html']},
|
2017-10-27 00:08:24 -07:00
|
|
|
include_package_data=True,
|
|
|
|
|
install_requires=[
|
2019-03-14 21:41:43 -07:00
|
|
|
'click>=6.7',
|
2017-11-04 16:53:50 -07:00
|
|
|
'click-default-group==1.2',
|
2017-12-08 19:00:33 -08:00
|
|
|
'Sanic==0.7.0',
|
2019-04-10 16:13:30 -07:00
|
|
|
'Jinja2==2.10.1',
|
2017-11-09 05:46:16 -08:00
|
|
|
'hupper==1.0',
|
2018-04-15 17:56:15 -07:00
|
|
|
'pint==0.8.1',
|
2018-08-07 18:11:12 -07:00
|
|
|
'pluggy>=0.7.1',
|
2017-10-27 00:08:24 -07:00
|
|
|
],
|
|
|
|
|
entry_points='''
|
|
|
|
|
[console_scripts]
|
2017-11-10 10:38:35 -08:00
|
|
|
datasette=datasette.cli:cli
|
2017-10-27 00:08:24 -07:00
|
|
|
''',
|
2017-11-04 16:40:27 -07:00
|
|
|
setup_requires=['pytest-runner'],
|
2018-06-23 18:03:46 -07:00
|
|
|
extras_require={
|
|
|
|
|
'test': [
|
2018-12-16 13:18:55 -08:00
|
|
|
'pytest==4.0.2',
|
2019-03-31 11:02:22 -07:00
|
|
|
'pytest-asyncio==0.10.0',
|
2019-01-10 16:47:15 -08:00
|
|
|
'aiohttp==3.5.3',
|
2018-08-07 18:11:12 -07:00
|
|
|
'beautifulsoup4==4.6.1',
|
2018-06-23 18:03:46 -07:00
|
|
|
]
|
|
|
|
|
},
|
2017-11-11 09:47:59 -08:00
|
|
|
tests_require=[
|
2018-06-23 18:03:46 -07:00
|
|
|
'datasette[test]',
|
2017-11-11 09:47:59 -08:00
|
|
|
],
|
2017-11-13 13:17:34 -08:00
|
|
|
classifiers=[
|
2018-04-17 17:30:46 -07:00
|
|
|
'Development Status :: 4 - Beta',
|
2017-11-13 13:17:34 -08:00
|
|
|
'Intended Audience :: Developers',
|
|
|
|
|
'Intended Audience :: Science/Research',
|
|
|
|
|
'Intended Audience :: End Users/Desktop',
|
|
|
|
|
'Topic :: Database',
|
|
|
|
|
'License :: OSI Approved :: Apache Software License',
|
2018-11-04 22:40:03 -08:00
|
|
|
'Programming Language :: Python :: 3.7',
|
2017-11-13 13:17:34 -08:00
|
|
|
'Programming Language :: Python :: 3.6',
|
2018-04-17 17:30:46 -07:00
|
|
|
'Programming Language :: Python :: 3.5',
|
2017-11-13 13:17:34 -08:00
|
|
|
],
|
2017-10-27 00:08:24 -07:00
|
|
|
)
|