2017-10-27 07:08:24 +00:00
|
|
|
from setuptools import setup, find_packages
|
2018-04-13 18:22:15 +00:00
|
|
|
import os
|
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 = {}
|
2021-03-11 16:15:49 +00:00
|
|
|
with open(path) as fp:
|
|
|
|
exec(fp.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",
|
2020-10-29 03:38:15 +00:00
|
|
|
version=get_version(),
|
2020-08-09 16:40:17 +00:00
|
|
|
description="An open source multi-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",
|
2020-12-10 23:37:08 +00:00
|
|
|
url="https://datasette.io/",
|
2020-05-11 18:28:53 +00:00
|
|
|
project_urls={
|
2020-08-15 23:57:05 +00:00
|
|
|
"Documentation": "https://docs.datasette.io/en/stable/",
|
|
|
|
"Changelog": "https://docs.datasette.io/en/stable/changelog.html",
|
2020-05-11 18:28:53 +00:00
|
|
|
"Live demo": "https://latest.datasette.io/",
|
|
|
|
"Source code": "https://github.com/simonw/datasette",
|
|
|
|
"Issues": "https://github.com/simonw/datasette/issues",
|
2020-08-18 05:09:34 +00:00
|
|
|
"CI": "https://github.com/simonw/datasette/actions?query=workflow%3ATest",
|
2020-05-11 18:28:53 +00:00
|
|
|
},
|
2020-07-24 20:39:53 +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,
|
2023-07-08 18:40:19 +00:00
|
|
|
python_requires=">=3.8",
|
2017-10-27 07:08:24 +00:00
|
|
|
install_requires=[
|
2022-09-05 18:35:40 +00:00
|
|
|
"asgiref>=3.2.10",
|
|
|
|
"click>=7.1.1",
|
2023-09-06 02:50:09 +00:00
|
|
|
"click-default-group>=1.2.3",
|
2022-09-05 18:35:40 +00:00
|
|
|
"Jinja2>=2.10.3",
|
|
|
|
"hupper>=1.9",
|
2021-10-14 18:03:44 +00:00
|
|
|
"httpx>=0.20",
|
2023-09-21 19:42:15 +00:00
|
|
|
'importlib_resources>=1.3.1; python_version < "3.9"',
|
2023-09-21 21:58:39 +00:00
|
|
|
'importlib_metadata>=4.6; python_version < "3.10"',
|
2022-09-05 18:35:40 +00:00
|
|
|
"pluggy>=1.0",
|
|
|
|
"uvicorn>=0.11",
|
|
|
|
"aiofiles>=0.4",
|
|
|
|
"janus>=0.6.2",
|
2024-08-15 04:29:16 +00:00
|
|
|
"asgi-csrf>=0.10",
|
2022-09-05 18:35:40 +00:00
|
|
|
"PyYAML>=5.3",
|
|
|
|
"mergedeep>=1.1.1",
|
|
|
|
"itsdangerous>=1.1",
|
2022-10-28 00:58:36 +00:00
|
|
|
"sqlite-utils>=3.30",
|
2023-03-22 22:49:39 +00:00
|
|
|
"asyncinject>=0.5",
|
2023-04-27 03:36:10 +00:00
|
|
|
"setuptools",
|
2023-04-27 05:07:35 +00:00
|
|
|
"pip",
|
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
|
|
|
""",
|
2018-06-24 01:03:46 +00:00
|
|
|
extras_require={
|
2022-05-20 19:11:08 +00:00
|
|
|
"docs": [
|
2024-07-25 23:04:29 +00:00
|
|
|
"Sphinx==7.4.7",
|
2024-08-15 04:38:33 +00:00
|
|
|
"furo==2024.8.6",
|
2022-05-20 19:11:08 +00:00
|
|
|
"sphinx-autobuild",
|
2023-06-29 14:43:01 +00:00
|
|
|
"codespell>=2.2.5",
|
2022-05-20 19:11:08 +00:00
|
|
|
"blacken-docs",
|
|
|
|
"sphinx-copybutton",
|
2023-07-08 16:37:01 +00:00
|
|
|
"sphinx-inline-tabs",
|
2023-07-08 18:00:08 +00:00
|
|
|
"ruamel.yaml",
|
2022-05-20 19:11:08 +00:00
|
|
|
],
|
2019-05-04 02:15:14 +00:00
|
|
|
"test": [
|
2022-09-05 18:35:40 +00:00
|
|
|
"pytest>=5.2.2",
|
|
|
|
"pytest-xdist>=2.2.1",
|
|
|
|
"pytest-asyncio>=0.17",
|
|
|
|
"beautifulsoup4>=4.8.1",
|
2024-08-15 04:38:33 +00:00
|
|
|
"black==24.8.0",
|
2024-07-02 16:45:15 +00:00
|
|
|
"blacken-docs==1.18.0",
|
2022-09-05 18:35:40 +00:00
|
|
|
"pytest-timeout>=1.4.2",
|
|
|
|
"trustme>=0.7",
|
2022-01-13 21:35:54 +00:00
|
|
|
"cogapp>=3.3.0",
|
2019-11-12 05:33:51 +00:00
|
|
|
],
|
2021-08-03 16:12:48 +00:00
|
|
|
"rich": ["rich"],
|
2018-06-24 01:03:46 +00:00
|
|
|
},
|
2017-11-13 21:17:34 +00:00
|
|
|
classifiers=[
|
2019-05-04 02:15:14 +00:00
|
|
|
"Development Status :: 4 - Beta",
|
2021-12-07 19:41:56 +00:00
|
|
|
"Framework :: Datasette",
|
2019-05-04 02:15:14 +00:00
|
|
|
"Intended Audience :: Developers",
|
|
|
|
"Intended Audience :: Science/Research",
|
|
|
|
"Intended Audience :: End Users/Desktop",
|
|
|
|
"Topic :: Database",
|
|
|
|
"License :: OSI Approved :: Apache Software License",
|
2023-03-06 21:01:19 +00:00
|
|
|
"Programming Language :: Python :: 3.11",
|
2021-10-24 22:19:54 +00:00
|
|
|
"Programming Language :: Python :: 3.10",
|
2020-10-09 17:57:55 +00:00
|
|
|
"Programming Language :: Python :: 3.9",
|
2019-11-12 05:09:11 +00:00
|
|
|
"Programming Language :: Python :: 3.8",
|
2017-11-13 21:17:34 +00:00
|
|
|
],
|
2017-10-27 07:08:24 +00:00
|
|
|
)
|