-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathsetup.py
More file actions
29 lines (26 loc) · 847 Bytes
/
setup.py
File metadata and controls
29 lines (26 loc) · 847 Bytes
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
import os
import subprocess
from setuptools import setup
import shutil
if not os.path.exists("backend/vcdat/resources"):
os.mkdir("backend/vcdat/resources")
os.chdir("frontend")
subprocess.call(["npm", "run", "release"])
for f in os.listdir("deps"):
if f[0] == ".":
continue
shutil.copyfile("deps/" + f, "../backend/vcdat/resources/" + f)
os.chdir("..")
setup(
name="vcdat",
version="0.7.0",
description="A user interface for visualizing and analysing climate data.",
url="http://github.com/CDAT/vcdat",
packages=['vcdat'],
package_dir={'vcdat': 'backend/vcdat'},
package_data={"vcdat": ["resources/" + f for f in os.listdir("backend/vcdat/resources") if f[0] != "."]},
scripts=["scripts/vcdat", "scripts/check_vcdat_update.py"],
extras_require={
'test': ["pytest", "pytest-cov", "selenium"],
}
)