2017-10-27 07:08:24 +00:00
|
|
|
from setuptools import setup, find_packages
|
2018-04-13 18:22:15 +00:00
|
|
|
import os
|
2019-05-04 02:15:14 +00:00
|
|
|
import sys
|
2018-04-13 16:03:09 +00:00
|
|
|
|
2018-05-22 15:33:29 +00:00
|
|
|
import versioneer
|
|
|
|
|
2018-04-13 16:03:09 +00:00
|
|
|
|
|
|
|
def get_long_description():
|
2019-05-04 02:15:14 +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(
|
2019-05-04 02:15:14 +00:00
|
|
|
os.path.dirname(os.path.abspath(__file__)), "datasette", "version.py"
|
2018-04-16 04:28:24 +00:00
|
|
|
)
|
|
|
|
g = {}
|
|
|
|
exec(open(path).read(), g)
|
2019-05-04 02:15:14 +00:00
|
|
|
return g["__version__"]
|
2018-04-16 04:28:24 +00:00
|
|
|
|
|
|
|
|
2017-10-27 07:08:24 +00:00
|
|
|
setup(
|
2019-05-04 02:15:14 +00:00
|
|
|
name="datasette",
|
2018-05-22 15:33:29 +00:00
|
|
|
version=versioneer.get_version(),
|
|
|
|
cmdclass=versioneer.get_cmdclass(),
|
2019-05-19 21:57:47 +00:00
|
|
|
description="A tool for exploring and publishing data",
|
2018-04-13 16:03:09 +00:00
|
|
|
long_description=get_long_description(),
|
2019-05-04 02:15:14 +00:00
|
|
|
long_description_content_type="text/markdown",
|
|
|
|
author="Simon Willison",
|
|
|
|
license="Apache License, Version 2.0",
|
|
|
|
url="https://github.com/simonw/datasette",
|
2019-06-24 03:13:09 +00:00
|
|
|
packages=find_packages(exclude="tests"),
|
2019-05-04 02:15:14 +00:00
|
|
|
package_data={"datasette": ["templates/*.html"]},
|
2017-10-27 07:08:24 +00:00
|
|
|
include_package_data=True,
|
|
|
|
install_requires=[
|
2020-03-22 01:47:51 +00:00
|
|
|
"click~=7.1.1",
|
2019-11-12 05:09:11 +00:00
|
|
|
"click-default-group~=1.2.2",
|
2020-05-04 17:13:15 +00:00
|
|
|
"Jinja2>=2.10.3,<2.12.0",
|
2019-11-12 05:09:11 +00:00
|
|
|
"hupper~=1.9",
|
2019-11-11 04:19:01 +00:00
|
|
|
"pint~=0.9",
|
2019-11-12 05:09:11 +00:00
|
|
|
"pluggy~=0.13.0",
|
2019-12-22 15:33:04 +00:00
|
|
|
"uvicorn~=0.11",
|
2020-05-04 16:17:48 +00:00
|
|
|
"aiofiles>=0.4,<0.6",
|
2020-05-04 16:48:03 +00:00
|
|
|
"janus>=0.4,<0.6",
|
2020-04-02 19:30:53 +00:00
|
|
|
"PyYAML~=5.3",
|
2020-05-04 16:45:49 +00:00
|
|
|
"mergedeep>=1.1.1,<1.4.0",
|
2017-10-27 07:08:24 +00:00
|
|
|
],
|
2019-05-04 02:15:14 +00:00
|
|
|
entry_points="""
|
2017-10-27 07:08:24 +00:00
|
|
|
[console_scripts]
|
2017-11-10 18:38:35 +00:00
|
|
|
datasette=datasette.cli:cli
|
2019-05-04 02:15:14 +00:00
|
|
|
""",
|
|
|
|
setup_requires=["pytest-runner"],
|
2018-06-24 01:03:46 +00:00
|
|
|
extras_require={
|
2019-06-25 12:08:04 +00:00
|
|
|
"docs": ["sphinx_rtd_theme", "sphinx-autobuild"],
|
2019-05-04 02:15:14 +00:00
|
|
|
"test": [
|
2019-11-12 05:09:11 +00:00
|
|
|
"pytest~=5.2.2",
|
2019-07-03 04:32:55 +00:00
|
|
|
"pytest-asyncio~=0.10.0",
|
2019-11-12 05:09:11 +00:00
|
|
|
"aiohttp~=3.6.2",
|
|
|
|
"beautifulsoup4~=4.8.1",
|
|
|
|
"asgiref~=3.2.3",
|
2019-11-12 05:33:51 +00:00
|
|
|
"black~=19.10b0",
|
|
|
|
],
|
2018-06-24 01:03:46 +00:00
|
|
|
},
|
2019-05-04 02:15:14 +00:00
|
|
|
tests_require=["datasette[test]"],
|
2017-11-13 21:17:34 +00:00
|
|
|
classifiers=[
|
2019-05-04 02:15:14 +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",
|
2019-11-12 05:09:11 +00:00
|
|
|
"Programming Language :: Python :: 3.8",
|
2019-05-04 02:15:14 +00:00
|
|
|
"Programming Language :: Python :: 3.7",
|
|
|
|
"Programming Language :: Python :: 3.6",
|
2017-11-13 21:17:34 +00:00
|
|
|
],
|
2017-10-27 07:08:24 +00:00
|
|
|
)
|