~loggerhead-team/loggerhead/trunk-rich

« back to all changes in this revision

Viewing changes to setup.py

  • Committer: Martin Albisetti
  • Date: 2008-06-24 00:00:06 UTC
  • mfrom: (170.1.4 loggerhead.no_bundles)
  • Revision ID: argentina@gmail.com-20080624000006-5w21i42dtf0t6dyx
Remove bundles, it's broken anyway

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#!/usr/bin/env python
2
 
# This program is free software; you can redistribute it and/or modify
3
 
# it under the terms of the GNU General Public License as published by
4
 
# the Free Software Foundation; either version 2 of the License, or
5
 
# (at your option) any later version.
6
 
#
7
 
# This program is distributed in the hope that it will be useful,
8
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
9
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
10
 
# GNU General Public License for more details.
11
 
#
12
 
# You should have received a copy of the GNU General Public License
13
 
# along with this program; if not, write to the Free Software
14
 
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
15
 
"""Loggerhead is a web viewer for projects in bazaar"""
 
1
from setuptools import setup, find_packages
 
2
from turbogears.finddata import find_package_data
16
3
 
17
 
from distutils.core import setup, Command
18
 
from distutils.command.install_data import install_data
19
 
from distutils.dep_util import newer
20
 
from distutils.log import info
21
 
import glob
22
4
import os
23
 
import sys
24
 
 
25
 
 
26
 
if sys.version_info < (2, 4):
27
 
    sys.stderr.write("[ERROR] Not a supported Python version. Need 2.4+\n")
28
 
    sys.exit(1)
29
 
 
30
 
class InstallData(install_data):
31
 
    def run(self):
32
 
        install_data.run(self)
 
5
execfile(os.path.join("loggerhead", "release.py"))
 
6
 
33
7
 
34
8
setup(
35
 
    name = "loggerhead",
36
 
    version = "1.6",
37
 
    description = "Loggerhead is a web viewer for projects in bazaar",
38
 
    license = "GNU GPL v2 or later",
39
 
    maintainer = "Michael Hudson",
40
 
    maintainer_email = "michael.hudson@canonical.com",
41
 
    scripts = ["start-loggerhead", "stop-loggerhead", "serve-branches"],
42
 
    packages = ["loggerhead",
43
 
               ],
44
 
    package_data = {"loggerhead":["templates/*"]},
45
 
    data_files=[
46
 
                ('share/man/man1',['start-loggerhead.1', 'stop-loggerhead.1']),
47
 
                ('share/doc/loggerhead', ['loggerhead.conf.example'])
48
 
               ],
49
 
    cmdclass={'install_data':InstallData}
 
9
    name="loggerhead",
 
10
    version=version,
 
11
    
 
12
    description=description,
 
13
    author=author,
 
14
    author_email=email,
 
15
    url=url,
 
16
    download_url=download_url,
 
17
    license=license,
 
18
    maintainer="Michael Hudson",
 
19
    maintainer_email="michael.hudson@canonical.com",
 
20
    
 
21
    install_requires = [
 
22
        "TurboGears >= 1.0b1",
 
23
# for some reason, distutils can't find bzr.
 
24
#        "bzr >= 0.13",
 
25
    ],
 
26
    scripts = ["start-loggerhead.py", "stop-loggerhead.py"],
 
27
    zip_safe=False,
 
28
    packages=find_packages(),
 
29
    package_data = find_package_data(where='loggerhead',
 
30
                                     package='loggerhead'),
 
31
#    data_files = find_package_data(where='loggerhead', package='loggerhead'),
 
32
    keywords = [
 
33
        'turbogears.app',
 
34
    ],
 
35
    classifiers = [
 
36
        'Development Status :: 3 - Alpha',
 
37
        'Operating System :: OS Independent',
 
38
        'Programming Language :: Python',
 
39
        'Framework :: TurboGears',
 
40
        'Framework :: TurboGears :: Applications',
 
41
    ],
 
42
    test_suite = 'nose.collector',
50
43
    )
51
44