Changeset 8373


Ignore:
Timestamp:
21/06/12 09:54:15 (7 years ago)
Author:
mnagni
Message:

Now the package version is defined in ceda_markup.init
setup.py import such attribute

Location:
mauRepo/CedaMarkup/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • mauRepo/CedaMarkup/trunk/ceda_markup/__init__.py

    r8369 r8373  
     1__version__ = '0.0.1' 
  • mauRepo/CedaMarkup/trunk/setup.py

    r8372 r8373  
    22from distutils.core import setup 
    33from setuptools import find_packages 
     4import re, os 
     5 
     6v_file = open(os.path.join(os.path.dirname(__file__),  
     7                        'ceda_markup', '__init__.py')) 
     8VERSION = re.compile(r".*__version__ = '(.*?)'", 
     9                     re.S).match(v_file.read()).group(1) 
    410 
    511setup( 
     
    915    author_email='maurizio.nagni', 
    1016    packages=find_packages(), 
    11     url='http://ciprod1.cems.rl.ac.uk/pip/ceda_markup', 
     17    url='http://proj.badc.rl.ac.uk/svn/ndg/mauRepo/CedaMarkup', 
    1218    license='BSD licence, see LICENCE', 
    1319    description='Collection of markup classes as geosrss, gml, atom, rss...' + \ 
Note: See TracChangeset for help on using the changeset viewer.