forked from olipo186/Git-Auto-Deploy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
43 lines (38 loc) · 1.62 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
from setuptools import setup, find_packages
import os
import sys
def package_files(package_path, directory_name):
paths = []
directory_path = os.path.join(package_path, directory_name)
for (path, directories, filenames) in os.walk(directory_path):
relative_path = os.path.relpath(path, package_path)
for filename in filenames:
if filename[0] == ".":
continue
paths.append(os.path.join(relative_path, filename))
return paths
# Get path to project
package_path = os.path.join(os.path.dirname(os.path.realpath(__file__)), "gitautodeploy")
# Get list of data files
wwwroot_files = package_files(package_path, "wwwroot")
data_files = package_files(package_path, "data")
setup(name='git-auto-deploy',
version='0.17',
url='https://github.com/olipo186/Git-Auto-Deploy',
author='Oliver Poignant',
author_email='[email protected]',
packages=find_packages(),
package_data={'gitautodeploy': data_files + wwwroot_files},
entry_points={
'console_scripts': [
'git-auto-deploy = gitautodeploy.__main__:main'
]
},
install_requires=[
'lockfile',
'autobahn',
'twisted'
],
description = "Deploy your GitHub, GitLab or Bitbucket projects automatically on Git push events or webhooks.",
long_description = "GitAutoDeploy consists of a HTTP server that listens for Web hook requests sent from GitHub, GitLab or Bitbucket servers. This application allows you to continuously and automatically deploy you projects each time you push new commits to your repository."
)