source: mauRepo/HPFos/trunk/setup.py @ 8632

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/mauRepo/HPFos/trunk/setup.py@8632
Revision 8632, 1.7 KB checked in by mnagni, 7 years ago (diff)

Ticket #22560

Line 
1# -*- coding: utf-8 -*-
2from distutils.core import setup
3from setuptools import find_packages
4import re, os, time
5
6v_file = open(os.path.join(os.path.dirname(__file__), 
7                       'hpfos', '__init__.py'))
8VERSION = re.compile(r".*__version__ = '(.*?)'",
9                     re.S).match(v_file.read()).group(1)
10
11if os.environ.has_key('REVISION'):
12    VERSION = VERSION + '_' + os.environ['REVISION']
13
14setup(
15    name='hpfos',
16    version=VERSION,
17    author=u'Maurizio Nagni',
18    author_email='maurizio.nagni@stfc.ac.uk',
19    package_dir = {'hpfos':'hpfos'}, # tell distutils packages are under hpfos   
20    packages=find_packages(), # include all packages under this directory   
21    url='http://proj.badc.rl.ac.uk/svn/ndg/mauRepo/HPFos', 
22    license='BSD licence, see LICENCE',
23    description='Opensearch engine for the cedaMoles/fatacat metadata',
24    long_description=open('README').read(),
25    zip_safe=False,
26    #data_files=[('.', ['resources/HPFos_wsgi.conf',
27    #                           'resources/pylintrc',
28    #                           'resources/wsgi.py'])],
29
30
31    # Adds dependencies
32    # For CEDA PACKAGES as ceda-moles-model please add something like
33    # --extra-index-url http://ciprod1.cems.rl.ac.uk/pip
34    # to your pip install
35   
36    install_requires = ['SQLAlchemy>=0.7.5', \
37                        'django==1.3.1', \
38                        'html5lib==0.95', \
39                        'ceda-moles-model==0.1.5',
40                        'ceda-markup==0.0.13',
41                        'psycopg2',
42                        'nose'],
43)
44
45'''
46zip_safe=False option. It prevents the package manager to install a
47      python egg, instead you'll get a real directory with files in it.
48'''
Note: See TracBrowser for help on using the repository browser.