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

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/mauRepo/MolesManager/trunk/setup.py@8485
Revision 8485, 1.4 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

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