forked from lucas-bremond/cesiumpy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
executable file
·45 lines (36 loc) · 1.04 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
# Apache License 2.0
import codecs
import os
import sys
from setuptools import setup, find_packages
PACKAGE = "cesiumpy"
README = "README.md"
REQUIREMENTS = "requirements.txt"
VERSION = "0.4.0.dev"
def read(fname):
# file must be read as utf-8 in py3 to avoid to be bytes
return codecs.open(
os.path.join(os.path.dirname(__file__), fname), encoding="utf-8"
).read()
install_requires = list(read(REQUIREMENTS).splitlines())
if sys.version_info < (3, 4, 0):
install_requires.append("enum34")
setup(
name=PACKAGE,
version=VERSION,
description="python wrapper of cesium.js for 3D geospatial visualization",
long_description=read(README),
author="sinhrks",
author_email="[email protected]",
url="http://cesiumpy.readthedocs.org/en/stable",
license="Apache 2.0",
packages=find_packages(),
package_data={
"cesiumpy.data": [
"countries/*.json",
"countries/data/*.json",
"countries/data/*.svg",
]
},
install_requires=install_requires,
)