source: mauRepo/CedaMolesModel/tags/0.1.0/setup.py @ 8397

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/mauRepo/CedaMolesModel/tags/0.1.0/setup.py@8405
Revision 8397, 1.2 KB checked in by mnagni, 7 years ago (diff)

Incomplete - # 22504: CedaMoles? as python package
 http://team.ceda.ac.uk/trac/ceda/ticket/22504

  • Property svn:mime-type set to text/plain
Line 
1# -*- coding: utf-8 -*-
2from distutils.core import setup
3from setuptools import find_packages
4import re, os
5
6v_file = open(os.path.join(os.path.dirname(__file__),
7                        'ceda_moles_model', 'ea_model', '__init__.py'))
8VERSION = re.compile(r".*__version__ = '(.*?)'",
9                     re.S).match(v_file.read()).group(1)
10
11setup(
12    name='ceda-moles-model',
13    version=VERSION,
14    author=u'Maurizio Nagni',
15    author_email='maurizio.nagni',
16    packages=find_packages('ceda_moles_model'), # include all packages under ceda_moles_model
17    package_dir = {'':'ceda_moles_model'}, # tell distutils packages are under ceda_moles_model
18    url='http://proj.badc.rl.ac.uk/svn/ndg/mauRepo/CedaMolesModel', 
19    license='BSD licence, see LICENCE',
20    description='Describe the CedaMoles model using python classes.' + \
21                ' The package is also able to be deploy in an SQLAlchemy instance',
22    long_description=open('README').read(),
23    zip_safe=False,
24
25    # Adds dependencies
26    install_requires = ['SQLAlchemy>=0.7.5'],
27)
28
29'''
30zip_safe=False option. It prevents the package manager to install a
31      python egg, instead you'll get a real directory with files in it.
32'''
Note: See TracBrowser for help on using the repository browser.