Mercurial > hg > FileServer
annotate setup.py @ 33:86b519dd8467
finish test and implementation
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Mon, 05 Mar 2012 14:08:31 -0800 |
parents | f1f53fa1e851 |
children | aca8cb6bfd63 |
rev | line source |
---|---|
0 | 1 """ |
2 setup packaging script for FileServer | |
3 """ | |
4 | |
5 import os | |
6 | |
25 | 7 version = "0.2.1" |
3 | 8 dependencies = ['webob'] |
0 | 9 |
10 # allow use of setuptools/distribute or distutils | |
11 kw = {} | |
12 try: | |
13 from setuptools import setup | |
14 kw['entry_points'] = """ | |
15 [console_scripts] | |
22
2bb87686bcca
use correct names for things
Jeff Hammel <jhammel@mozilla.com>
parents:
20
diff
changeset
|
16 serve = fileserver.web:main |
0 | 17 """ |
18 kw['install_requires'] = dependencies | |
19 except ImportError: | |
20 from distutils.core import setup | |
21 kw['requires'] = dependencies | |
22 | |
23 try: | |
24 here = os.path.dirname(os.path.abspath(__file__)) | |
25 description = file(os.path.join(here, 'README.txt')).read() | |
26 except IOError: | |
27 description = '' | |
28 | |
29 | |
30 setup(name='FileServer', | |
31 version=version, | |
32 description="a simple static fileserver and directory index server in python (WSGI app)", | |
33 long_description=description, | |
34 classifiers=[], # Get strings from http://www.python.org/pypi?%3Aaction=list_classifiers | |
35 author='Jeff Hammel', | |
36 author_email='jhammel@mozilla.com', | |
37 url='http://k0s.org/hg/FileServer', | |
23 | 38 license='MPL', |
0 | 39 packages=['fileserver'], |
40 include_package_data=True, | |
41 zip_safe=False, | |
42 **kw | |
43 ) |