]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/blob - setup.py
web: remove /vdrive/private, replace with a start.html file that points at the /uri...
[tahoe-lafs/tahoe-lafs.git] / setup.py
1 #! /usr/bin/env python
2
3 # Allmydata Tahoe -- secure, distributed storage grid
4
5 # Copyright (C) 2007 Allmydata, Inc.
6
7 # This file is part of tahoe.
8
9 # This program is free software; you can redistribute it and/or modify it
10 # under the terms of the GNU General Public License as published by the Free
11 # Software Foundation; either version 2 of the License, or (at your option)
12 # any later version, with the added permission that, if you become obligated
13 # to release a derived work under this licence (as per section 2.b), you may
14 # delay the fulfillment of this obligation for up to 12 months.  See the file
15 # COPYING for details.
16 #
17 # If you would like to inquire about a commercial relationship with Allmydata,
18 # Inc., please contact partnerships@allmydata.com and visit
19 # http://allmydata.com/.
20
21 import re, os.path
22 from distutils.core import Extension, setup
23
24 trove_classifiers=[
25     "Development Status :: 3 - Alpha", 
26     "Environment :: Console",
27     "Environment :: Web Environment",
28     "License :: OSI Approved :: GNU General Public License (GPL)", 
29     "License :: DFSG approved",
30     "Intended Audience :: Developers", 
31     "Intended Audience :: End Users/Desktop",
32     "Intended Audience :: System Administrators",
33     "Operating System :: Microsoft",
34     "Operating System :: Microsoft :: Windows",
35     "Operating System :: Unix",
36     "Operating System :: POSIX :: Linux",
37     "Operating System :: POSIX",
38     "Operating System :: MacOS :: MacOS X",
39     "Operating System :: Microsoft :: Windows :: Windows NT/2000",
40     "Operating System :: OS Independent", 
41     "Natural Language :: English", 
42     "Programming Language :: C", 
43     "Programming Language :: Python", 
44     "Topic :: Utilities",
45     "Topic :: System :: Systems Administration",
46     "Topic :: System :: Filesystems",
47     "Topic :: System :: Distributed Computing",
48     "Topic :: Software Development :: Libraries",
49     "Topic :: Communications :: Usenet News",
50     "Topic :: System :: Archiving :: Backup", 
51     "Topic :: System :: Archiving :: Mirroring", 
52     "Topic :: System :: Archiving", 
53     ]
54
55
56 VERSIONFILE = "src/allmydata/version.py"
57 verstr = "unknown"
58 if os.path.exists(VERSIONFILE):
59     VSRE = re.compile("^verstr = ['\"]([^'\"]*)['\"]", re.M)
60     verstrline = open(VERSIONFILE, "rt").read()
61     mo = VSRE.search(verstrline)
62     if mo:
63         verstr = mo.group(1)
64     else:
65         print "unable to find version in version.py"
66         raise RuntimeError("if version.py exists, it must be well-formed")
67
68 setup(name='allmydata-tahoe',
69       version=verstr,
70       description='secure, distributed storage grid',
71       long_description="""Welcome to the AllMyData "tahoe" project. This project implements a
72 secure, distributed, fault-tolerant storage grid.
73
74 The basic idea is that the data in this storage grid is spread over all
75 participating nodes, using an algorithm that can recover the data even if a
76 majority of the nodes are no longer available.""",
77       author='Allmydata, Inc.',
78       author_email='tahoe-dev@allmydata.org',
79       url='http://allmydata.org/',
80       license='GNU GPL',
81       packages=["allmydata", "allmydata.test", "allmydata.util",
82                 "allmydata.scripts",],
83       package_dir={ "allmydata": "src/allmydata",},
84       scripts = ["bin/allmydata-tahoe"],
85       package_data={ 'allmydata': ['web/*.xhtml', 'web/*.html', 'web/*.css'] },
86       classifiers=trove_classifiers,
87       test_suite="allmydata.test",
88       )