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
|
|
|
|
|
|
|
|
|
|
|
|
|
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 = {}
|
2021-03-11 17:15:49 +01:00
|
|
|
with open(path) as fp:
|
|
|
|
|
exec(fp.read(), g)
|
2018-04-15 21:28:24 -07:00
|
|
|
return g["__version__"]
|
|
|
|
|
|
|
|
|
|
|
2017-10-27 00:08:24 -07:00
|
|
|
setup(
|
2017-11-10 10:38:35 -08: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(),
|
|
|
|
|
long_description_content_type="text/markdown",
|
2017-11-13 13:17:34 -08:00
|
|
|
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",)),
|
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,
|
2022-01-19 20:31:22 -08:00
|
|
|
python_requires=">=3.7",
|
2017-10-27 00:08:24 -07:00
|
|
|
install_requires=[
|
2022-09-05 11:35:40 -07:00
|
|
|
"asgiref>=3.2.10",
|
|
|
|
|
"click>=7.1.1",
|
2022-05-02 12:13:11 -07:00
|
|
|
"click-default-group-wheel>=1.2.2",
|
2022-09-05 11:35:40 -07:00
|
|
|
"Jinja2>=2.10.3",
|
|
|
|
|
"hupper>=1.9",
|
2021-10-14 11:03:44 -07:00
|
|
|
"httpx>=0.20",
|
2022-09-05 11:35:40 -07:00
|
|
|
"pint>=0.9",
|
|
|
|
|
"pluggy>=1.0",
|
|
|
|
|
"uvicorn>=0.11",
|
|
|
|
|
"aiofiles>=0.4",
|
|
|
|
|
"janus>=0.6.2",
|
2021-06-23 15:39:52 -07:00
|
|
|
"asgi-csrf>=0.9",
|
2022-09-05 11:35:40 -07:00
|
|
|
"PyYAML>=5.3",
|
|
|
|
|
"mergedeep>=1.1.1",
|
|
|
|
|
"itsdangerous>=1.1",
|
2022-10-27 17:58:36 -07:00
|
|
|
"sqlite-utils>=3.30",
|
2023-03-22 15:49:39 -07:00
|
|
|
"asyncinject>=0.5",
|
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={
|
2022-05-20 12:11:08 -07:00
|
|
|
"docs": [
|
2023-03-28 23:09:48 -07:00
|
|
|
"Sphinx==6.1.3",
|
2023-03-28 23:08:00 -07:00
|
|
|
"furo==2023.3.27",
|
2022-05-20 12:11:08 -07:00
|
|
|
"sphinx-autobuild",
|
|
|
|
|
"codespell",
|
|
|
|
|
"blacken-docs",
|
|
|
|
|
"sphinx-copybutton",
|
|
|
|
|
],
|
2018-06-23 18:03:46 -07:00
|
|
|
"test": [
|
2022-09-05 11:35:40 -07:00
|
|
|
"pytest>=5.2.2",
|
|
|
|
|
"pytest-xdist>=2.2.1",
|
|
|
|
|
"pytest-asyncio>=0.17",
|
|
|
|
|
"beautifulsoup4>=4.8.1",
|
2022-12-12 21:23:30 -08:00
|
|
|
"black==22.12.0",
|
2023-03-28 23:11:33 -07:00
|
|
|
"blacken-docs==1.13.0",
|
2022-09-05 11:35:40 -07:00
|
|
|
"pytest-timeout>=1.4.2",
|
|
|
|
|
"trustme>=0.7",
|
2022-01-13 13:35:54 -08:00
|
|
|
"cogapp>=3.3.0",
|
2019-11-11 21:33:51 -08:00
|
|
|
],
|
2021-08-03 09:12:48 -07:00
|
|
|
"rich": ["rich"],
|
2018-06-23 18:03:46 -07:00
|
|
|
},
|
|
|
|
|
tests_require=["datasette[test]"],
|
2017-11-13 13:17:34 -08:00
|
|
|
classifiers=[
|
2018-04-17 17:30:46 -07:00
|
|
|
"Development Status :: 4 - Beta",
|
2021-12-07 11:41:56 -08:00
|
|
|
"Framework :: Datasette",
|
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",
|
2023-03-06 16:01:19 -05:00
|
|
|
"Programming Language :: Python :: 3.11",
|
2021-10-24 15:19:54 -07:00
|
|
|
"Programming Language :: Python :: 3.10",
|
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",
|
2018-11-04 22:40:03 -08:00
|
|
|
"Programming Language :: Python :: 3.7",
|
2017-11-13 13:17:34 -08:00
|
|
|
],
|
2017-10-27 00:08:24 -07:00
|
|
|
)
|