-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
73 lines (64 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
from setuptools import setup, find_packages
import os
# get all data dirs in the datasets module
data_files = []
for item in os.listdir("moredata/datasets"):
print("")
if not item.startswith("__"):
if os.path.isdir(os.path.join("moredata/datasets/", item)):
data_files.append(os.path.join("datasets", item, "*"))
if os.environ.get("READTHEDOCS", False) == "True":
INSTALL_REQUIRES = []
DOCS_REQUIRES = []
dependencies = []
elasticsearch = []
sql = []
json = []
osm = []
else:
dependencies = [
"requests==2.28.2",
"Rtree==1.0.1",
"pyproj==3.5.0",
"geopy==2.0.0",
"pandas>=1.0.1",
"numpy>=1.18.1",
"shapely>=1.8",
]
elasticsearch = [
"elasticsearch==7.17.0",
]
sql = [
"SQLAlchemy==1.4.37",
"PyMySQL==0.10.0",
]
json = ["h3==3.4.3"]
osm = [
"osm2geojson==0.1.27",
"dask_geopandas==0.2.0",
"geopandas>=0.10.2",
]
DOCS_REQUIRES = [
"sphinx==2.4.0",
"sphinx-rtd-theme==0.4.3",
"jinja2==2.11.1",
"sphinxcontrib-napoleon==0.7",
]
setup(
name="moredata",
url="https://https://github.com/NESPEDUFV/more-data",
download_url="https://github.com/NESPEDUFV/more-data/archive/v0.2.6.tar.gz",
version="0.2.6",
packages=find_packages(where="."),
python_requires=">=3.8",
install_requires=dependencies + elasticsearch + sql + json + osm,
# extras_require={
# "complete": dependencies + elasticsearch + sql + json + osm,
# "osm": dependencies + osm,
# "elasticsearch": dependencies + elasticsearch,
# "sql": dependencies + sql,
# "json": dependencies + json,
# "develop": dependencies + DOCS_REQUIRES + elasticsearch + sql + json + osm,
# "docs": DOCS_REQUIRES,
# },
)