2022-11-22 01:57:06 +00:00
|
|
|
from setuptools import setup
|
|
|
|
|
import os
|
|
|
|
|
|
2024-02-27 21:09:26 -08:00
|
|
|
VERSION = "0.4"
|
2022-11-22 01:57:06 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
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()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
setup(
|
|
|
|
|
name="dclient",
|
|
|
|
|
description="A client CLI utility for Datasette instances",
|
|
|
|
|
long_description=get_long_description(),
|
|
|
|
|
long_description_content_type="text/markdown",
|
|
|
|
|
author="Simon Willison",
|
|
|
|
|
url="https://github.com/simonw/dclient",
|
|
|
|
|
project_urls={
|
|
|
|
|
"Issues": "https://github.com/simonw/dclient/issues",
|
|
|
|
|
"CI": "https://github.com/simonw/dclient/actions",
|
|
|
|
|
"Changelog": "https://github.com/simonw/dclient/releases",
|
|
|
|
|
},
|
|
|
|
|
license="Apache License, Version 2.0",
|
|
|
|
|
version=VERSION,
|
|
|
|
|
packages=["dclient"],
|
2022-11-21 21:33:02 -08:00
|
|
|
entry_points={
|
|
|
|
|
"datasette": ["client = dclient.plugin"],
|
|
|
|
|
"console_scripts": ["dclient = dclient.cli:cli"],
|
|
|
|
|
},
|
dclient insert command (#13)
* Move making queries to own page, refs #7
* Documentation for the dclient insert feature, refs #8
* Implemented progress bar for insert, refs #8
* --pk option
* --ignore and --replace for insert, refs #8
* --batch-size option, refs #8
* First insert test, using a mock - refs #8
* insert test that exercises against an in-memory Datasette instance, refs #8
* Insert tests now cover an error case, refs #8
* Tests for --ignore and --replace, refs #8
* Tests for different formats, refs #8
* Test for --no-detect-types
* Support for --encoding, refs #8
2023-07-24 16:22:39 -07:00
|
|
|
install_requires=["click", "httpx", "sqlite-utils"],
|
2022-11-21 22:31:11 -08:00
|
|
|
extras_require={
|
|
|
|
|
"test": [
|
|
|
|
|
"pytest",
|
|
|
|
|
"pytest-asyncio",
|
|
|
|
|
"pytest-httpx",
|
|
|
|
|
"cogapp",
|
|
|
|
|
"pytest-mock",
|
dclient insert command (#13)
* Move making queries to own page, refs #7
* Documentation for the dclient insert feature, refs #8
* Implemented progress bar for insert, refs #8
* --pk option
* --ignore and --replace for insert, refs #8
* --batch-size option, refs #8
* First insert test, using a mock - refs #8
* insert test that exercises against an in-memory Datasette instance, refs #8
* Insert tests now cover an error case, refs #8
* Tests for --ignore and --replace, refs #8
* Tests for different formats, refs #8
* Test for --no-detect-types
* Support for --encoding, refs #8
2023-07-24 16:22:39 -07:00
|
|
|
"datasette>=1.0a2",
|
2022-11-21 22:31:11 -08:00
|
|
|
]
|
|
|
|
|
},
|
2024-02-23 19:58:29 -08:00
|
|
|
python_requires=">=3.8",
|
2022-11-22 01:57:06 +00:00
|
|
|
)
|