datasette/setup.py

72 lines
2 KiB
Python
Raw Normal View History

from setuptools import setup, find_packages
import os
import versioneer
def get_long_description():
2019-05-03 20:51:16 -04:00
with open(
os.path.join(os.path.dirname(os.path.abspath(__file__)), "README.md"),
encoding="utf8",
) as fp:
return fp.read()
2018-04-15 21:28:24 -07:00
def get_version():
path = os.path.join(
2019-05-03 20:51:16 -04:00
os.path.dirname(os.path.abspath(__file__)), "datasette", "version.py"
2018-04-15 21:28:24 -07:00
)
g = {}
exec(open(path).read(), g)
2019-05-03 20:51:16 -04:00
return g["__version__"]
2018-04-15 21:28:24 -07:00
setup(
2019-05-03 20:51:16 -04:00
name="datasette",
version=versioneer.get_version(),
cmdclass=versioneer.get_cmdclass(),
2019-05-03 20:51:16 -04:00
description="An instant JSON API for your SQLite databases",
long_description=get_long_description(),
2019-05-03 20:51:16 -04:00
long_description_content_type="text/markdown",
author="Simon Willison",
license="Apache License, Version 2.0",
url="https://github.com/simonw/datasette",
packages=find_packages(),
2019-05-03 20:51:16 -04:00
package_data={"datasette": ["templates/*.html"]},
include_package_data=True,
install_requires=[
2019-05-03 20:51:16 -04:00
"click>=6.7",
"click-default-group==1.2",
"Sanic==0.7.0",
"Jinja2==2.10.1",
"hupper==1.0",
"pint==0.8.1",
"pluggy>=0.7.1",
],
2019-05-03 20:51:16 -04:00
entry_points="""
[console_scripts]
2017-11-10 10:38:35 -08:00
datasette=datasette.cli:cli
2019-05-03 20:51:16 -04:00
""",
setup_requires=["pytest-runner"],
extras_require={
2019-05-03 20:51:16 -04:00
"test": [
"pytest==4.0.2",
"pytest-asyncio==0.10.0",
"aiohttp==3.5.3",
"beautifulsoup4==4.6.1",
"black",
]
},
2019-05-03 20:51:16 -04:00
tests_require=["datasette[test]"],
classifiers=[
2019-05-03 20:51:16 -04: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",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.5",
],
)