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-03-06 01:30:27 +00:00
|
|
|
"asgiref>=3.2.10,<3.6.0",
|
2022-04-08 23:05:09 +00:00
|
|
|
"click>=7.1.1,<8.2.0",
|
2022-05-02 19:13:11 +00:00
|
|
|
"click-default-group-wheel>=1.2.2",
|
2021-05-17 17:19:40 +00:00
|
|
|
"Jinja2>=2.10.3,<3.1.0",
|
2019-11-12 05:09:11 +00:00
|
|
|
"hupper~=1.9",
|
2021-10-14 18:03:44 +00:00
|
|
|
"httpx>=0.20",
|
2019-11-11 04:19:01 +00:00
|
|
|
"pint~=0.9",
|
2021-12-20 01:25:40 +00:00
|
|
|
"pluggy>=1.0,<1.1",
|
2019-12-22 15:33:04 +00:00
|
|
|
"uvicorn~=0.11",
|
2021-11-30 02:29:54 +00:00
|
|
|
"aiofiles>=0.4,<0.9",
|
2021-12-17 23:08:28 +00:00
|
|
|
"janus>=0.6.2,<1.1",
|
2021-06-23 22:39:52 +00:00
|
|
|
"asgi-csrf>=0.9",
|
2021-10-14 18:10:42 +00:00
|
|
|
"PyYAML>=5.3,<7.0",
|
2020-05-04 16:45:49 +00:00
|
|
|
"mergedeep>=1.1.1,<1.4.0",
|
2021-05-22 23:54:24 +00:00
|
|
|
"itsdangerous>=1.1,<3.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={
|
2022-05-20 19:11:08 +00:00
|
|
|
"docs": [
|
2022-05-20 20:34:51 +00:00
|
|
|
"furo==2022.4.7",
|
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-03-15 18:03:01 +00:00
|
|
|
"pytest>=5.2.2,<7.2.0",
|
2021-12-13 23:22:21 +00:00
|
|
|
"pytest-xdist>=2.2.1,<2.6",
|
2022-03-07 19:56:59 +00:00
|
|
|
"pytest-asyncio>=0.17,<0.19",
|
2022-04-08 22:51:04 +00:00
|
|
|
"beautifulsoup4>=4.8.1,<4.12.0",
|
2022-02-02 22:23:51 +00:00
|
|
|
"black==22.1.0",
|
2022-04-24 15:50:43 +00:00
|
|
|
"blacken-docs==1.12.1",
|
2022-03-06 01:41:49 +00:00
|
|
|
"pytest-timeout>=1.4.2,<2.2",
|
2021-08-25 01:29:26 +00:00
|
|
|
"trustme>=0.7,<0.10",
|
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
|
|
|
)
|