57 lines
1.1 KiB
Python
57 lines
1.1 KiB
Python
#!/usr/bin/env/python
|
|
"""Installation script
|
|
"""
|
|
|
|
import os
|
|
|
|
try:
|
|
from setuptools import setup
|
|
except ImportError:
|
|
from distutils.core import setup
|
|
|
|
# import versioneer
|
|
|
|
LONG_DESCRIPTION='''
|
|
|
|
'''
|
|
|
|
if os.environ.get("READTHEDOCS", False) == "True":
|
|
INSTALL_REQUIRES = []
|
|
else:
|
|
INSTALL_REQUIRES = [
|
|
"pandas >= 0.25.0",
|
|
"shapely >= 1.6",
|
|
"geopandas >= 0.8,<0.10",
|
|
"geoalchemy2 >= 0.8.4",
|
|
"sqlalchemy >= 1.4.17",
|
|
"rasterstats >= 0.15.0",
|
|
"rasterio >= 1.2.0",
|
|
"requests >= 2.9.1",
|
|
"owslib >= 0.24.1",
|
|
"psycopg2 >= 2.8.6",
|
|
]
|
|
data_files = []
|
|
|
|
setup(
|
|
name="pycen",
|
|
version="1.0.2",
|
|
description="",
|
|
license="GPL",
|
|
author="Colas Geier",
|
|
author_email="colas.geier@cen-isere.org",
|
|
url="",
|
|
long_description=LONG_DESCRIPTION,
|
|
packages=[
|
|
"pycen",
|
|
"pycen.pers",
|
|
"pycen.ref",
|
|
"pycen.ref.territoire",
|
|
"pycen.sites",
|
|
"pycen.vrac",
|
|
"pycen.wfs",
|
|
],
|
|
package_data={"pycen": data_files},
|
|
python_requires=">=3.7",
|
|
install_requires=INSTALL_REQUIRES,
|
|
# cmdclass=versioneer.get_cmdclass(),
|
|
) |