forked from simonw/db-to-sqlite
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
57 lines (51 loc) · 1.84 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
import io
import os
from setuptools import find_packages, setup
VERSION = "1.4"
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="db-to-sqlite",
description="CLI tool for exporting tables or queries from any SQL database to a SQLite file",
long_description=get_long_description(),
long_description_content_type="text/markdown",
author="Simon Willison",
version=VERSION,
license="Apache License, Version 2.0",
packages=find_packages(),
install_requires=["sqlalchemy", "sqlite-utils>=2.9.1", "click"],
extras_require={
"test": ["pytest"],
"test_mysql": ["pytest", "mysqlclient"],
"test_postgresql": ["pytest", "psycopg2"],
"mysql": ["mysqlclient"],
"postgresql": ["psycopg2"],
},
tests_require=["db-to-sqlite[test]"],
entry_points="""
[console_scripts]
db-to-sqlite=db_to_sqlite.cli:cli
""",
url="https://github.com/simonw/db-to-sqlite",
project_urls={
"Documentation": "https://github.com/simonw/db-to-sqlite/blob/main/README.md",
"Changelog": "https://github.com/simonw/db-to-sqlite/releases",
"Source code": "https://github.com/simonw/db-to-sqlite",
"Issues": "https://github.com/simonw/db-to-sqlite/issues",
"CI": "https://travis-ci.com/simonw/db-to-sqlite",
},
classifiers=[
"Development Status :: 3 - Alpha",
"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",
],
)