2018-07-28 06:43:18 -07:00
|
|
|
from setuptools import setup, find_packages
|
|
|
|
|
import io
|
|
|
|
|
import os
|
|
|
|
|
|
2021-11-20 20:40:47 -08:00
|
|
|
VERSION = "3.19"
|
2018-07-28 17:42:41 -07:00
|
|
|
|
2018-07-28 06:43:18 -07:00
|
|
|
|
|
|
|
|
def get_long_description():
|
|
|
|
|
with io.open(
|
|
|
|
|
os.path.join(os.path.dirname(os.path.abspath(__file__)), "README.md"),
|
|
|
|
|
encoding="utf8",
|
|
|
|
|
) as fp:
|
|
|
|
|
return fp.read()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
setup(
|
|
|
|
|
name="sqlite-utils",
|
2019-05-24 17:37:29 -07:00
|
|
|
description="CLI tool and Python utility functions for manipulating SQLite databases",
|
2018-07-28 06:43:18 -07:00
|
|
|
long_description=get_long_description(),
|
|
|
|
|
long_description_content_type="text/markdown",
|
|
|
|
|
author="Simon Willison",
|
2018-07-28 17:42:41 -07:00
|
|
|
version=VERSION,
|
2018-07-28 06:43:18 -07:00
|
|
|
license="Apache License, Version 2.0",
|
2020-01-31 07:21:26 +07:00
|
|
|
packages=find_packages(exclude=["tests", "tests.*"]),
|
2021-11-14 15:21:04 -08:00
|
|
|
package_data={"sqlite_utils": ["py.typed"]},
|
2021-08-01 21:47:39 -07:00
|
|
|
install_requires=[
|
|
|
|
|
"sqlite-fts4",
|
|
|
|
|
"click",
|
|
|
|
|
"click-default-group",
|
|
|
|
|
"tabulate",
|
2021-11-14 18:25:40 -05:00
|
|
|
"python-dateutil",
|
2021-08-01 21:47:39 -07:00
|
|
|
],
|
2018-07-28 06:43:18 -07:00
|
|
|
setup_requires=["pytest-runner"],
|
2019-07-14 12:23:31 -07:00
|
|
|
extras_require={
|
2020-10-18 21:51:50 -07:00
|
|
|
"test": ["pytest", "black", "hypothesis"],
|
2021-08-03 09:48:37 -07:00
|
|
|
"docs": ["sphinx_rtd_theme", "sphinx-autobuild", "codespell"],
|
2021-08-18 14:55:37 -07:00
|
|
|
"mypy": [
|
|
|
|
|
"mypy",
|
|
|
|
|
"types-click",
|
|
|
|
|
"types-tabulate",
|
|
|
|
|
"types-python-dateutil",
|
|
|
|
|
"data-science-types",
|
|
|
|
|
],
|
2021-06-22 18:23:12 -07:00
|
|
|
"flake8": ["flake8"],
|
2019-07-14 12:23:31 -07:00
|
|
|
},
|
2018-07-28 06:43:18 -07:00
|
|
|
entry_points="""
|
|
|
|
|
[console_scripts]
|
|
|
|
|
sqlite-utils=sqlite_utils.cli:cli
|
|
|
|
|
""",
|
|
|
|
|
url="https://github.com/simonw/sqlite-utils",
|
2020-05-11 12:16:22 -07:00
|
|
|
project_urls={
|
2020-12-29 13:34:55 -08:00
|
|
|
"Documentation": "https://sqlite-utils.datasette.io/en/stable/",
|
|
|
|
|
"Changelog": "https://sqlite-utils.datasette.io/en/stable/changelog.html",
|
2020-05-11 12:16:22 -07:00
|
|
|
"Source code": "https://github.com/simonw/sqlite-utils",
|
|
|
|
|
"Issues": "https://github.com/simonw/sqlite-utils/issues",
|
2020-08-28 15:41:29 -07:00
|
|
|
"CI": "https://github.com/simonw/sqlite-utils/actions",
|
2020-05-11 12:16:22 -07:00
|
|
|
},
|
2020-10-23 14:19:30 -07:00
|
|
|
python_requires=">=3.6",
|
2018-07-28 06:43:18 -07:00
|
|
|
classifiers=[
|
2019-07-14 10:16:36 -07:00
|
|
|
"Development Status :: 5 - Production/Stable",
|
2018-07-28 06:43:18 -07:00
|
|
|
"Intended Audience :: Developers",
|
|
|
|
|
"Intended Audience :: Science/Research",
|
|
|
|
|
"Intended Audience :: End Users/Desktop",
|
|
|
|
|
"Topic :: Database",
|
|
|
|
|
"License :: OSI Approved :: Apache Software License",
|
|
|
|
|
"Programming Language :: Python :: 3.6",
|
|
|
|
|
"Programming Language :: Python :: 3.7",
|
2019-07-14 10:16:36 -07:00
|
|
|
"Programming Language :: Python :: 3.8",
|
2020-10-07 18:44:05 -07:00
|
|
|
"Programming Language :: Python :: 3.9",
|
2021-10-13 15:25:05 -07:00
|
|
|
"Programming Language :: Python :: 3.10",
|
2018-07-28 06:43:18 -07:00
|
|
|
],
|
2021-11-14 15:24:15 -08:00
|
|
|
# Needed to bundle py.typed so mypy can see it:
|
|
|
|
|
zip_safe=False,
|
2018-07-28 06:43:18 -07:00
|
|
|
)
|