forked from steemit/tinman
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
31 lines (24 loc) · 908 Bytes
/
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
from setuptools import setup
import shutil
import os
setup(name="tinman",
version = __import__('tinman').__version__,
description = "Testnet management scripts.",
url = "https://github.com/steemit/tinman",
author = "Steemit",
packages = ["tinman", "simple_steem_client"],
install_requires = ["flask", "wtforms"],
entry_points = {"console_scripts" : [
"tinman=tinman.main:sys_main",
]}
)
template_source = 'templates'
template_target = '/tmp/tinman-templates'
static_source = 'static'
static_target = '/tmp/tinman-static'
if os.path.exists(template_target):
shutil.rmtree(template_target)
shutil.copytree(template_source, template_target)
if os.path.exists(static_target):
shutil.rmtree(static_target)
shutil.copytree(static_source, static_target)