~loggerhead-team/loggerhead/trunk-rich

« back to all changes in this revision

Viewing changes to setup.py

  • Committer: Martin Albisetti
  • Date: 2008-07-26 17:53:10 UTC
  • mfrom: (185 jam_fixes)
  • mto: This revision was merged to the branch mainline in revision 187.
  • Revision ID: argentina@gmail.com-20080726175310-fa95p4n9egnpy0hr
MergeĀ fromĀ trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
12
12
# You should have received a copy of the GNU General Public License
13
13
# along with this program; if not, write to the Free Software
14
14
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
15
 
"""Loggerhead is a web viewer for projects in bazaar"""
16
 
 
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
 
15
 
 
16
from setuptools import setup, find_packages
 
17
from turbogears.finddata import find_package_data
 
18
 
22
19
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)
 
20
execfile(os.path.join("loggerhead", "release.py"))
 
21
 
33
22
 
34
23
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",
 
24
    name="loggerhead",
 
25
    version=version,
 
26
    
 
27
    description=description,
 
28
    author=author,
 
29
    author_email=email,
 
30
    url=url,
 
31
    download_url=download_url,
 
32
    license=license,
 
33
    maintainer="Michael Hudson",
 
34
    maintainer_email="michael.hudson@canonical.com",
 
35
    
 
36
    install_requires = [
 
37
        "TurboGears >= 1.0b1",
 
38
# for some reason, distutils can't find bzr.
 
39
#        "bzr >= 0.13",
 
40
    ],
41
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}
 
42
    zip_safe=False,
 
43
    packages=find_packages(),
 
44
    package_data = find_package_data(where='loggerhead',
 
45
                                     package='loggerhead'),
 
46
#    data_files = find_package_data(where='loggerhead', package='loggerhead'),
 
47
    data_files=[('share/man/man1', 
 
48
                    ['start-loggerhead.1', 'stop-loggerhead.1'])],
 
49
    keywords = [
 
50
        'turbogears.app',
 
51
    ],
 
52
    classifiers = [
 
53
        'Development Status :: 3 - Alpha',
 
54
        'Operating System :: OS Independent',
 
55
        'Programming Language :: Python',
 
56
        'Framework :: TurboGears',
 
57
        'Framework :: TurboGears :: Applications',
 
58
    ],
 
59
    test_suite = 'nose.collector',
50
60
    )
51
61