Changeset 5070


Ignore:
Timestamp:
06/03/09 09:53:01 (10 years ago)
Author:
spascoe
Message:

Scripts turned into entry_points. Initial setup.py.

Location:
nappy/branches/nappy-eggable
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • nappy/branches/nappy-eggable/nappy/script/na2nc.py

    r5069 r5070  
    9494 
    9595 
    96 def na2nc(args): 
     96def na2nc(args=None): 
    9797    """ 
    9898    Controller for conversion of NASA Ames file to NetCDF file. 
    9999    """ 
     100 
     101    if args is None: 
     102        args = sys.argv[1:] 
     103     
    100104    arg_dict = parseArgs(args) 
    101105    nc_file = arg_dict["nc_file"] 
  • nappy/branches/nappy-eggable/nappy/script/nc2na.py

    r5069 r5070  
    9797 
    9898 
    99 def nc2na(args): 
     99def nc2na(args=None): 
    100100    """ 
    101101    Controller for conversion of NetCDF file to NASA Ames files. 
    102102    """ 
     103 
     104    if args is None: 
     105        args = sys.argv[1:] 
     106     
    103107    arg_dict = parseArgs(args) 
    104108    na_file = arg_dict.get("na_file", None) 
  • nappy/branches/nappy-eggable/setup.py

    r4353 r5070  
    11""" 
    2 This trivial setup.py script is designed to allow nappy to be deployed 
    3 as a develop-egg with zc.buildout.  It does not imply the ability to make a 
    4 nappy egg or install with distutils. 
    52 
    63""" 
    74 
    8 print """ 
    9 ###################################################################### 
    10 ## WARNING: This setup.py only works as part of a zc.buildout buildout 
    11 ###################################################################### 
    12 """ 
     5from setuptools import setup, find_packages 
    136 
    14 from setuptools import setup 
    15 setup(name='nappy') 
     7setup(name='nappy', 
     8      #!TODO: Ag, comment on the version.  I'm assuming this code will become 
     9      #       0.9.8 eventually. 
     10      version='0.9.8pre1', 
     11 
     12      #!TODO: metadata from Ag 
     13      description = 'NASA Ames Package in Python', 
     14      #long_description = __doc__, 
     15      #licence = '', 
     16      #keywords = '', 
     17      author = 'Ag Stephens', 
     18      author_email = 'ag.stephens@stfc.ac.uk', 
     19      #url = '', 
     20      #classifiers = [], 
     21 
     22      packages = find_packages(), 
     23      include_package_data = True, 
     24 
     25      tests_require = ['nose'], 
     26      test_suite = 'nose.collector', 
     27 
     28      entry_points = ''' 
     29      [console_scripts] 
     30      na2nc = nappy.script.na2nc:na2nc 
     31      nc2na = nappy.script.nc2na:nc2na 
     32      ''', 
     33       
     34      ) 
Note: See TracChangeset for help on using the changeset viewer.