source: mauRepo/MolesManager/trunk/setup.py @ 8489

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/mauRepo/MolesManager/trunk/setup.py@8489
Revision 8489, 1.5 KB checked in by mnagni, 8 years ago (diff)

Incomplete - # 22534: Add versiojn number to the gui page
 http://team.ceda.ac.uk/trac/ceda/ticket/22534
fixing some pylint issues
changing the versioning strategy

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                       'cedaMoles', '__init__.py'))
8VERSION = re.compile(r".*__version__ = '(.*?)'",
9                     re.S).match(v_file.read()).group(1)
10
11if os.environ.has_key('SVN_REVISION'):
12    VERSION = VERSION + '_' + os.environ['SVN_REVISION']
13
14setup(
15    name='cedaMoles',
16    version=VERSION,
17    author=u'Maurizio Nagni',
18    author_email='maurizio.nagni@stfc.ac.uk',
19    package_dir = {'cedaMoles':'cedaMoles'}, # tell distutils packages are under cedaMoles   
20    packages=find_packages(), # include all packages under this directory   
21    url='http://proj.badc.rl.ac.uk/svn/ndg/mauRepo/MolesManager', 
22    license='BSD licence, see LICENCE',
23    description='Views and edits the cedaMoles metadata',
24    long_description=open('README').read(),
25    zip_safe=False,
26
27    # Adds dependencies
28    # For CEDA PACKAGES as ceda-moles-model please add something like
29    # --extra-index-url http://ciprod1.cems.rl.ac.uk/pip
30    # to your pip install
31   
32    install_requires = ['SQLAlchemy>=0.7.5', \
33                        'django==1.3.1', \
34                        'html5lib==0.95', \
35                        'ceda-moles-model==0.1.5',
36                        'psycopg2',
37                        'nose'],
38)
39
40'''
41zip_safe=False option. It prevents the package manager to install a
42      python egg, instead you'll get a real directory with files in it.
43'''
Note: See TracBrowser for help on using the repository browser.