Skip to content
Snippets Groups Projects
setup.py 1.19 KiB
# If true, then the svn revision won't be used to calculate the
# revision (set to True for real releases)
RELEASE = False

from setuptools import setup, find_packages
import sys, os
from datetime import datetime
from glob import glob
from metobs import mytime

classifiers = ""
version = '0.1'

filelist = [x for x in glob('metobs/**/*') if 'CVS' not in x]

def most_recent_modification(filelist=[]):
    return max( [datetime.fromtimestamp(os.stat(x).st_mtime, mytime.UTCTimezone()) for x in filelist] ).strftime('%Y%m%d.%H%M')

_requires = ['metobs.mytime', 'fpconst>=0.7.2', 'pydap']

setup(name='metobs.data',
      version=version + '.' + most_recent_modification(filelist),
      description="",
      long_description="""MetObs data processing libraries.""",
      classifiers=filter(None, classifiers.split("\n")),
      keywords='ssec metobs',
      author='Bruce Flynn, SSEC',
      author_email='brucef@ssec.wisc.edu',
      url='',
      packages=find_packages(exclude=['ez_setup', 'examples', 'tests']),
      namespace_packages=['metobs'],
      include_package_data=True,
      zip_safe=False,
      install_requires=_requires,
    dependency_links = ['http://larch.ssec.wisc.edu/cgi-bin/repos.cgi']
)