aboutsummaryrefslogtreecommitdiff
path: root/setup.py
blob: 50d1a6df59502f3d537d85f0c519bda443ec51f0 (plain)
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
#!/usr/bin/python 
from setuptools import setupfind_packages
import os
 
def _subdir_contents(path):
    for toplevel in os.listdir(path):
        toplevel_path = os.path.join(pathtoplevel)
        if not os.path.isdir(toplevel_path):
            continue
        for dirpathdirnamesfilenames in os.walk(toplevel_path):
            for filename in filenames:
                full_path = os.path.join(dirpathfilename)
                if not full_path.startswith(path+'/'):
                    raise RuntimeError()
                yield full_path[len(path)+1:]
def subdir_contents(path):
    return list(_subdir_contents(path))
 
setup(
    name = "gitosis",
    version = "0.1",
    packages = find_packages(),
 
    author = "Tommi Virtanen",
    author_email = "tv@eagain.net",
    description = "software for hosting git repositories",
    license = "GPL",
    keywords = "git scm version-control ssh",
    url = "http://eagain.net/software/gitosis/",
 
    entry_points = { 
        'console_scripts': [ 
            'gitosis-ssh = gitosis.ssh:main', 
            'gitosis-serve = gitosis.serve:main', 
            'gitosis-gitweb = gitosis.gitweb:main', 
            'gitosis-run-hook = gitosis.run_hook:main', 
            'gitosis-init = gitosis.init:main', 
            ], 
        },
 
    package_data = { 
        # this seems to be the only way to convince setuptools 
        # to include things recursively 
        'gitosis.templates': subdir_contents('gitosis/templates'), 
    },
    )