datasette/setup.py

73 wiersze
1.9 KiB
Python
Czysty Zwykły widok Historia

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