forked from TrueSelph/jvspatial
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
93 lines (85 loc) · 3.13 KB
/
Copy pathsetup.py
File metadata and controls
93 lines (85 loc) · 3.13 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
84
85
86
87
88
89
90
91
92
93
"""Setup script for the jvspatial package."""
from setuptools import find_packages, setup
with open("README.md", "r", encoding="utf-8") as f:
long_description = f.read()
# Read version from version.py without importing the package
# This avoids dependency issues during setup
import re
from pathlib import Path
def get_version():
"""Read version from jvspatial/version.py without importing the package."""
version_file = Path(__file__).parent / "jvspatial" / "version.py"
with open(version_file, "r") as f:
content = f.read()
match = re.search(r'__version__\s*=\s*["\']([^"\']+)["\']', content)
if match:
return match.group(1)
else:
raise ValueError("Could not find __version__ in jvspatial/version.py")
__version__ = get_version()
setup(
name="jvspatial",
version=__version__,
description="An asynchronous object-spatial Python library for persistence and business logic application layers.",
long_description=long_description,
long_description_content_type="text/markdown",
author="TrueSelph Inc.",
author_email="adminh@trueselph.com",
url="https://github.com/trueselph/jvspatial",
packages=find_packages(),
include_package_data=True,
install_requires=[
"pydantic>=2.0",
"fastapi",
"uvicorn",
"python-multipart",
"motor",
"pymongo",
"aiosqlite>=0.19.0", # SQLite database backend
"PyJWT", # JWT token handling for authentication
"bcrypt", # Password hashing for authentication
"schedule>=1.2.2", # Job scheduling
"typing-extensions", # For @override decorator and enhanced typing
"aioboto3", # AWS SDK for S3 storage support
],
extras_require={
"dev": [
"pytest>=7.0",
"pytest-asyncio>=0.21.0",
"httpx>=0.24.0",
"pre-commit>=3.0.0",
"black", # Code formatter
"isort", # Import sorting
"flake8", # Linting
"mypy", # Type checking
"pytest-cov", # Coverage reporting
"python-dotenv>=1.0.0", # Environment variable management
],
"test": [
"pytest>=7.0",
"pytest-asyncio>=0.21.0",
"httpx>=0.24.0",
"pytest-cov", # Coverage reporting
"python-dotenv>=1.0.0", # Environment variable management
],
"scheduler": [
"schedule>=1.2.2", # Job scheduling
"psutil>=5.9.0", # System monitoring
"python-dotenv>=1.0.0", # Environment variable management
],
"cache": [
"redis[hiredis]>=5.0.0", # Redis client with C parser for performance
],
},
classifiers=[
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
],
python_requires=">=3.8",
)