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,
|
2022-01-20 04:31:22 +00:00
|
|
|
python_requires=">=3.7",
|
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",
|
2022-05-02 19:13:11 +00:00
|
|
|
"click-default-group-wheel>=1.2.2",
|
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",
|
2022-09-05 18:35:40 +00:00
|
|
|
"pint>=0.9",
|
|
|
|
"pluggy>=1.0",
|
|
|
|
"uvicorn>=0.11",
|
|
|
|
"aiofiles>=0.4",
|
|
|
|
"janus>=0.6.2",
|
2021-06-23 22:39:52 +00:00
|
|
|
"asgi-csrf>=0.9",
|
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",
|
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={
|
2022-05-20 19:11:08 +00:00
|
|
|
"docs": [
|
2022-09-30 17:55:40 +00:00
|
|
|
"furo==2022.9.29",
|
2022-05-20 19:11:08 +00:00
|
|
|
"sphinx-autobuild",
|
|
|
|
"codespell",
|
|
|
|
"blacken-docs",
|
|
|
|
"sphinx-copybutton",
|
|
|
|
],
|
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",
|
2022-10-27 20:51:45 +00:00
|
|
|
"black==22.10.0",
|
2022-04-24 15:50:43 +00:00
|
|
|
"blacken-docs==1.12.1",
|
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
|
|
|
},
|
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",
|
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",
|
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",
|
2019-05-04 02:15:14 +00:00
|
|
|
"Programming Language :: Python :: 3.7",
|
2017-11-13 21:17:34 +00:00
|
|
|
],
|
2017-10-27 07:08:24 +00:00
|
|
|
)
|