-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
executable file
·38 lines (33 loc) · 1.19 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
#!/usr/bin/env python2
from setuptools import setup
import platform
import os
self_path = os.path.dirname(os.path.abspath(__file__))
__author__="Adam Schubert"
__date__ ="$8.7.2014 20:26:41$"
if platform.linux_distribution()[0] in ['debian']:
data_files_dist=[
('/etc/init.d', ['etc/init.d/git-deploy']), ('/etc/git-deploy', ['etc/git-deploy/config.py'])
]
else:
data_files_dist=[
('/usr/lib/systemd/system/', ['usr/lib/systemd/system/git-deploy.service']), ('/etc/git-deploy', ['etc/git-deploy/config.py'])
]
setup(
name="git-deploy",
version=open(os.path.join(self_path, 'VERSION.txt')).read().strip(),
author=__author__,
author_email="adam.schubert@sg1-game.net",
description="Git-deploy is tool written in python to allow fast and easy deployments on remote servers wia S/FTP, SSH/SCP",
long_description=open(os.path.join(self_path,'README.md')).read(),
license="GPL",
install_requires=['paramiko', 'flask'],
url="https://github.com/Salamek/git-deploy",
packages=['git_deploy', 'git_deploy/classes'],
package_dir={'git_deploy': 'git_deploy'},
#package_data={},
entry_points={
'console_scripts': ['git-deploy = git_deploy:main']
},
data_files=data_files_dist
)