-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
83 lines (77 loc) · 2.33 KB
/
setup.py
File metadata and controls
83 lines (77 loc) · 2.33 KB
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
75
76
77
78
79
80
81
82
83
"""
Setup configuration for SheetDB.
"""
from setuptools import setup, find_packages
from pathlib import Path
# Read README for long description
readme_file = Path(__file__).parent / "README.md"
long_description = readme_file.read_text() if readme_file.exists() else ""
# Core requirements only
core_requirements = [
"google-auth>=2.30.0",
"google-auth-oauthlib>=1.2.0",
"google-auth-httplib2>=0.2.0",
"google-api-python-client>=2.150.0",
"duckdb>=1.4.0",
"pyyaml>=6.0.0",
"python-dotenv>=1.0.0",
]
# Optional dependencies for different use cases
extras_require = {
"django": [
"django>=4.2.0",
],
"dev": [
"pytest>=7.0.0",
"pytest-cov>=4.0.0",
"hypothesis>=6.0.0",
"black>=23.0.0",
"flake8>=6.0.0",
"mypy>=1.0.0",
"types-PyYAML>=6.0.0",
],
"test": [
"pytest>=7.0.0",
"pytest-cov>=4.0.0",
"hypothesis>=6.0.0",
],
}
# Convenience: install everything
extras_require["all"] = list(set(sum(extras_require.values(), [])))
setup(
name="sheetdb",
version="0.1.0",
description="Google Sheets as a relational database with DuckDB caching",
long_description=long_description,
long_description_content_type="text/markdown",
author="SheetDB Team",
author_email="",
url="https://github.com/yourusername/sheetdb",
packages=find_packages(exclude=[
"tests", "tests.*",
"examples", "examples.*",
"django_app", "django_app.*", # Example app (not installed)
"sheetdb_server", "sheetdb_server.*", # Server is separate package
"docs", "docs.*",
"documentation", "documentation.*",
]),
install_requires=core_requirements,
extras_require=extras_require,
python_requires=">=3.8",
entry_points={
'console_scripts': [
'sheetdb=sheetdb.cli:main',
],
},
classifiers=[
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
],
keywords="google-sheets database duckdb orm backend",
)