-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
51 lines (44 loc) · 1.47 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
46
47
48
49
50
# coding: utf-8
"""
git-server setuptools
"""
import os, sys, ConfigParser
from setuptools import setup,find_packages
def get_server_settings():
config = ConfigParser.ConfigParser()
# TODO fix the abs path
config.read('/etc/git.conf')
# mkdir git logging dir and copy the git server config. et: db conf.
def install_config():
cp = r"mkdir -p /var/log/git; cp -f git_server/git-server.conf /etc/git.conf"
if os.system(cp) > 0:
print """
Please use:
> sudo python setup.py install
"""
sys.exit()
install_config()
setup(
name = "git-server",
version = '0.1.0',
packages = find_packages(),
description = "This is a version manage tool with git, It like SVN!",
long_description = """
Manage git repositories, provide access to them over SSH, with tight
access control and not needing shell accounts.
This is long description with the git-server.""",
install_requires = ['setuptools>=0.6c5'],
include_package_data = True,
zip_safe = False,
author = "LAN_CHI",
author_email = "[email protected]",
entry_points = {
'console_scripts': [
'git-server = git_server.git_server:bootstrap',
'git-init = git_server.git_init:bootstrap',
'run-auth-keys-hook = git_server.authorized_keys_hook:bootstrap',
'git-api = git_server.git_web_api:git_API_action'
]
}
#scripts = ['git-server/git-init.py', 'git-server/git-server.py', 'git-server/authorized_keys_hook.py']
)