-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
223 lines (209 loc) · 7.83 KB
/
setup.py
File metadata and controls
223 lines (209 loc) · 7.83 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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
#!/usr/bin/env python3
"""Setup configuration for planetscope-py v4.1.0."""
from pathlib import Path
from setuptools import find_packages, setup
# Read version from _version.py
version_file = Path(__file__).parent / "planetscope_py" / "_version.py"
version_info = {}
with open(version_file) as f:
exec(f.read(), version_info)
# Read README for long description
readme_file = Path(__file__).parent / "README.md"
long_description = ""
if readme_file.exists():
with open(readme_file, "r", encoding="utf-8") as f:
long_description = f.read()
# Core requirements (production) - Updated June 2025
install_requires = [
# HTTP requests (latest stable)
"requests>=2.32.4",
# Geometric operations (latest with NumPy 2.x support)
"shapely>=2.1.0",
# Coordinate transformations (latest stable)
"pyproj>=3.7.1",
# Numerical computing (latest stable - NumPy 2.x)
"numpy>=2.2.0",
# Data manipulation (latest with NumPy 2.x compatibility)
"pandas>=2.2.3",
# Date/time handling
"python-dateutil>=2.9.0",
# JSON processing (faster alternative to built-in json)
"orjson>=3.10.0",
# Enhanced Dependencies for v4.0.0+
"xarray>=2024.02.0", # Temporal analysis data cubes
"aiohttp>=3.8.0", # Async asset downloads
"geopandas>=1.0.1", # GeoPackage vector operations
"fiona>=1.9.0", # GeoPackage I/O
"rasterio>=1.4.3", # Raster processing and clipping
"scipy>=1.13.0", # Statistical analysis for temporal patterns
# Visualization Dependencies (moved to core for v4.0.1 fix)
"matplotlib>=3.10.0", # Core plotting functionality
"contextily>=1.6.2", # Basemaps in visualizations (fixes import issues)
"folium>=0.19.1", # Interactive mapping capabilities
"seaborn>=0.12.2", # Statistical data visualization
]
setup(
name="planetscope-py",
version=version_info["__version__"],
author="Ammar & Umayr",
author_email="mohammadammarmughees@gmail.com",
description="Professional Python library for PlanetScope satellite imagery analysis with complete temporal analysis, spatial density analysis, and advanced data export capabilities",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/Black-Lights/planetscope-py",
packages=find_packages(),
classifiers=[
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"Topic :: Scientific/Engineering :: GIS",
"Topic :: Scientific/Engineering :: Image Processing",
"Topic :: Scientific/Engineering :: Visualization",
"Topic :: Scientific/Engineering :: Atmospheric Science",
"Topic :: Database",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Operating System :: OS Independent",
"Framework :: AsyncIO",
"Environment :: Console",
"Natural Language :: English",
],
python_requires=">=3.10",
install_requires=install_requires,
extras_require={
"dev": [
# Testing
"pytest>=8.3.4",
"pytest-cov>=6.0.0",
"pytest-mock>=3.14.0",
"pytest-xdist>=3.6.0",
"pytest-asyncio>=0.24.0",
# Code quality
"black>=24.12.0",
"flake8>=7.2.0",
"flake8-bugbear>=24.12.12",
"flake8-docstrings>=1.7.0",
"mypy>=1.13.0",
"types-requests>=2.32.0.20241217",
"pre-commit>=4.0.1",
"ruff>=0.8.1",
"bandit>=1.8.0",
# Build tools
"build>=1.2.2",
"twine>=6.0.1",
"wheel>=0.45.1",
],
"docs": [
"sphinx>=8.1.3",
"sphinx-rtd-theme>=3.0.2",
"myst-parser>=4.0.0",
],
"jupyter": [
"jupyter>=1.1.1",
"ipywidgets>=8.1.5", # Interactive controls (moved to core)
"notebook>=7.3.1",
],
"spatial": [
# Core spatial dependencies now in main requirements
"plotly>=5.24.1", # Advanced plotting
],
"temporal": [
# Core temporal dependencies now in main requirements
"plotly>=5.24.1", # Advanced plotting for temporal data
],
"asset": [
# Core asset dependencies now in main requirements
"tqdm>=4.66.0", # Progress bars for downloads
],
"geopackage": [
# Core geopackage dependencies now in main requirements
"sqlite3", # Database operations (built-in)
],
"interactive": [
"ipywidgets>=8.1.5",
"jupyter>=1.1.1",
"notebook>=7.3.1",
],
"viz": [
# Core viz dependencies now in main requirements
"plotly>=5.24.1", # Advanced interactive plotting
"bokeh>=3.0.0", # Alternative plotting backend
],
"performance": [
"line-profiler>=4.2.0",
"memory-profiler>=0.61.0",
],
"all": [
# Include all optional dependencies
"pytest>=8.3.4",
"pytest-cov>=6.0.0",
"pytest-mock>=3.14.0",
"pytest-asyncio>=0.24.0",
"black>=24.12.0",
"flake8>=7.2.0",
"mypy>=1.13.0",
"pre-commit>=4.0.1",
"sphinx>=8.1.3",
"sphinx-rtd-theme>=3.0.2",
"jupyter>=1.1.1",
"ipywidgets>=8.1.5", # Interactive controls
"notebook>=7.3.1",
"plotly>=5.24.1", # Advanced plotting
"bokeh>=3.0.0", # Alternative plotting
"tqdm>=4.66.0", # Progress bars
# Note: Core visualization dependencies (matplotlib, contextily, folium, seaborn)
# are now included in the base installation
],
},
package_data={
"planetscope_py": ["py.typed"],
},
include_package_data=True,
zip_safe=False,
entry_points={
"console_scripts": [
"planetscope=planetscope_py.cli:main",
],
},
keywords=[
"satellite",
"imagery",
"planet",
"planetscope",
"geospatial",
"remote-sensing",
"earth-observation",
"gis",
"spatial-analysis",
"density-analysis",
"temporal-analysis",
"rasterization",
"vector-overlay",
"adaptive-grid",
"visualization",
"asset-management",
"geopackage",
"async-downloads",
"quota-monitoring",
"grid-based-analysis",
"coordinate-system-fixes",
"scene-footprints",
"metadata-processing",
"quality-assessment",
"metadata-fixes", # Added for v4.1.0
"json-serialization-fixes", # Added for v4.1.0
"scene-id-extraction", # Added for v4.1.0
"temporal-visualization", # Added for v4.1.0
"interactive-preview", # Added for v4.1.0
],
project_urls={
"Bug Reports": "https://github.com/Black-Lights/planetscope-py/issues",
"Source": "https://github.com/Black-Lights/planetscope-py",
"Documentation": "https://github.com/Black-Lights/planetscope-py/wiki",
"Changelog": "https://github.com/Black-Lights/planetscope-py/blob/main/CHANGELOG.md",
"PyPI": "https://pypi.org/project/planetscope-py/",
},
)