2020-10-28 20:38:15 -07:00
|
|
|
from re import VERBOSE
|
2017-10-27 00:08:24 -07:00
|
|
|
from setuptools import setup, find_packages
|
2018-04-13 11:22:15 -07:00
|
|
|
import os
|
2019-05-03 22:15:14 -04:00
|
|
|
import sys
|
2018-04-13 09:03:09 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
def get_long_description():
|
2019-05-03 22:15:14 -04: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(
|
2019-05-03 22:15:14 -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 22:15:14 -04:00
|
|
|
return g["__version__"]
|
2018-04-15 21:28:24 -07:00
|
|
|
|
|
|
|
|
|
2017-10-27 00:08:24 -07:00
|
|
|
setup(
|
2019-05-03 22:15:14 -04:00
|
|
|
name="datasette",
|
2020-10-28 20:38:15 -07:00
|
|
|
version=get_version(),
|
2020-08-09 09:40:17 -07:00
|
|
|
description="An open source multi-tool for exploring and publishing data",
|
2018-04-13 09:03:09 -07:00
|
|
|
long_description=get_long_description(),
|
2019-05-03 22:15:14 -04:00
|
|
|
long_description_content_type="text/markdown",
|
|
|
|
|
author="Simon Willison",
|
|
|
|
|
license="Apache License, Version 2.0",
|
2020-12-10 15:37:08 -08:00
|
|
|
url="https://datasette.io/",
|
2020-05-11 11:28:53 -07:00
|
|
|
project_urls={
|
2020-08-15 16:57:05 -07:00
|
|
|
"Documentation": "https://docs.datasette.io/en/stable/",
|
|
|
|
|
"Changelog": "https://docs.datasette.io/en/stable/changelog.html",
|
2020-05-11 11:28:53 -07:00
|
|
|
"Live demo": "https://latest.datasette.io/",
|
|
|
|
|
"Source code": "https://github.com/simonw/datasette",
|
|
|
|
|
"Issues": "https://github.com/simonw/datasette/issues",
|
2020-08-17 22:09:34 -07:00
|
|
|
"CI": "https://github.com/simonw/datasette/actions?query=workflow%3ATest",
|
2020-05-11 11:28:53 -07:00
|
|
|
},
|
2020-07-24 13:39:53 -07:00
|
|
|
packages=find_packages(exclude=("tests",)),
|
2019-05-03 22:15:14 -04:00
|
|
|
package_data={"datasette": ["templates/*.html"]},
|
2017-10-27 00:08:24 -07:00
|
|
|
include_package_data=True,
|
2020-10-23 16:53:07 -04:00
|
|
|
python_requires=">=3.6",
|
2017-10-27 00:08:24 -07:00
|
|
|
install_requires=[
|
2020-10-14 14:51:34 -07:00
|
|
|
"asgiref>=3.2.10,<3.4.0",
|
2020-03-21 18:47:51 -07:00
|
|
|
"click~=7.1.1",
|
2019-11-11 21:09:11 -08:00
|
|
|
"click-default-group~=1.2.2",
|
2020-05-04 10:13:15 -07:00
|
|
|
"Jinja2>=2.10.3,<2.12.0",
|
2019-11-11 21:09:11 -08:00
|
|
|
"hupper~=1.9",
|
2020-10-09 09:11:24 -07:00
|
|
|
"httpx>=0.15",
|
2019-11-10 20:19:01 -08:00
|
|
|
"pint~=0.9",
|
2019-11-11 21:09:11 -08:00
|
|
|
"pluggy~=0.13.0",
|
2019-12-22 15:33:04 +00:00
|
|
|
"uvicorn~=0.11",
|
2020-10-28 10:08:27 -07:00
|
|
|
"aiofiles>=0.4,<0.7",
|
2020-10-14 14:52:07 -07:00
|
|
|
"janus>=0.4,<0.7",
|
2020-06-30 18:18:19 -07:00
|
|
|
"asgi-csrf>=0.6",
|
2020-04-02 12:30:53 -07:00
|
|
|
"PyYAML~=5.3",
|
2020-05-04 09:45:49 -07:00
|
|
|
"mergedeep>=1.1.1,<1.4.0",
|
2020-05-31 15:42:08 -07:00
|
|
|
"itsdangerous~=1.1",
|
2020-06-10 12:39:54 -07:00
|
|
|
"python-baseconv==1.2.2",
|
2017-10-27 00:08:24 -07:00
|
|
|
],
|
2019-05-03 22:15:14 -04:00
|
|
|
entry_points="""
|
2017-10-27 00:08:24 -07:00
|
|
|
[console_scripts]
|
2017-11-10 10:38:35 -08:00
|
|
|
datasette=datasette.cli:cli
|
2019-05-03 22:15:14 -04:00
|
|
|
""",
|
|
|
|
|
setup_requires=["pytest-runner"],
|
2018-06-23 18:03:46 -07:00
|
|
|
extras_require={
|
2019-06-25 05:08:04 -07:00
|
|
|
"docs": ["sphinx_rtd_theme", "sphinx-autobuild"],
|
2019-05-03 22:15:14 -04:00
|
|
|
"test": [
|
2020-12-16 13:44:39 -08:00
|
|
|
"pytest>=5.2.2,<6.3.0",
|
2020-06-24 11:50:55 -07:00
|
|
|
"pytest-asyncio>=0.10,<0.15",
|
2020-05-04 10:14:46 -07:00
|
|
|
"beautifulsoup4>=4.8.1,<4.10.0",
|
2020-09-02 15:24:55 -07:00
|
|
|
"black==20.8b1",
|
2020-08-15 15:35:31 -07:00
|
|
|
"pytest-timeout>=1.4.2,<1.5",
|
2019-11-11 21:33:51 -08:00
|
|
|
],
|
2018-06-23 18:03:46 -07:00
|
|
|
},
|
2019-05-03 22:15:14 -04:00
|
|
|
tests_require=["datasette[test]"],
|
2017-11-13 13:17:34 -08:00
|
|
|
classifiers=[
|
2019-05-03 22:15:14 -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",
|
2020-10-09 10:57:55 -07:00
|
|
|
"Programming Language :: Python :: 3.9",
|
2019-11-11 21:09:11 -08:00
|
|
|
"Programming Language :: Python :: 3.8",
|
2019-05-03 22:15:14 -04:00
|
|
|
"Programming Language :: Python :: 3.7",
|
|
|
|
|
"Programming Language :: Python :: 3.6",
|
2017-11-13 13:17:34 -08:00
|
|
|
],
|
2017-10-27 00:08:24 -07:00
|
|
|
)
|