datasette/setup.py

80 wiersze
2.2 KiB
Python
Czysty Zwykły widok Historia

from setuptools import setup, find_packages
import os
import sys
import versioneer
def get_long_description():
with open(
os.path.join(os.path.dirname(os.path.abspath(__file__)), "README.md"),
encoding="utf8",
) as fp:
return fp.read()
2018-04-16 04:28:24 +00:00
def get_version():
path = os.path.join(
os.path.dirname(os.path.abspath(__file__)), "datasette", "version.py"
2018-04-16 04:28:24 +00:00
)
g = {}
exec(open(path).read(), g)
return g["__version__"]
2018-04-16 04:28:24 +00:00
setup(
name="datasette",
version=versioneer.get_version(),
cmdclass=versioneer.get_cmdclass(),
2019-05-19 21:57:47 +00:00
description="A tool for exploring and publishing data",
long_description=get_long_description(),
long_description_content_type="text/markdown",
author="Simon Willison",
license="Apache License, Version 2.0",
url="https://github.com/simonw/datasette",
packages=find_packages(exclude="tests"),
package_data={"datasette": ["templates/*.html"]},
include_package_data=True,
install_requires=[
2020-03-22 01:47:51 +00:00
"click~=7.1.1",
"click-default-group~=1.2.2",
"Jinja2>=2.10.3,<2.12.0",
"hupper~=1.9",
"pint~=0.9",
"pluggy~=0.13.0",
2019-12-22 15:33:04 +00:00
"uvicorn~=0.11",
"aiofiles>=0.4,<0.6",
"janus>=0.4,<0.6",
"PyYAML~=5.3",
"mergedeep>=1.1.1,<1.4.0",
],
entry_points="""
[console_scripts]
2017-11-10 18:38:35 +00:00
datasette=datasette.cli:cli
""",
setup_requires=["pytest-runner"],
extras_require={
"docs": ["sphinx_rtd_theme", "sphinx-autobuild"],
"test": [
"pytest~=5.2.2",
"pytest-asyncio~=0.10.0",
"aiohttp~=3.6.2",
"beautifulsoup4~=4.8.1",
"asgiref~=3.2.3",
"black~=19.10b0",
],
},
tests_require=["datasette[test]"],
classifiers=[
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"Intended Audience :: End Users/Desktop",
"Topic :: Database",
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.6",
],
)