forked from ploomber/jupysql
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
74 lines (67 loc) · 1.74 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
import os
from io import open
import re
import ast
from setuptools import find_packages, setup
here = os.path.abspath(os.path.dirname(__file__))
README = open(os.path.join(here, "README.md"), encoding="utf-8").read()
_version_re = re.compile(r"__version__\s+=\s+(.*)")
with open("src/sql/__init__.py", "rb") as f:
VERSION = str(
ast.literal_eval(_version_re.search(f.read().decode("utf-8")).group(1))
)
install_requires = [
"prettytable",
"ipython>=1.0",
"sqlalchemy<2",
"sqlparse",
"ipython-genutils>=0.1.0",
"sqlglot",
"jinja2",
"sqlglot>=11.3.7",
"ploomber-core>=0.2.4",
'importlib-metadata;python_version<"3.8"'
]
DEV = [
"flake8",
"pytest",
"pandas",
"polars",
"invoke",
"pkgmt",
"twine",
# tests
"duckdb",
"duckdb-engine",
# sql.plot module tests
"matplotlib",
"black",
]
setup(
name="jupysql",
version=VERSION,
description="Better SQL in Jupyter",
long_description=README,
long_description_content_type="text/markdown",
classifiers=[
"Development Status :: 3 - Alpha",
"Environment :: Console",
"License :: OSI Approved :: Apache Software License",
"Topic :: Database",
"Topic :: Database :: Front-Ends",
"Programming Language :: Python :: 3",
],
keywords="database ipython postgresql mysql duckdb",
author="Ploomber",
author_email="[email protected]",
url="https://github.com/ploomber/jupysql",
project_urls={
"Source": "https://github.com/ploomber/jupysql",
},
packages=find_packages("src"),
package_dir={"": "src"},
include_package_data=True,
zip_safe=False,
install_requires=install_requires,
extras_require={"dev": DEV},
)