Changeset 422 for CMIP6dreq/manage


Ignore:
Timestamp:
13/10/15 15:38:59 (5 years ago)
Author:
mjuckes
Message:

miscellaneous cleaning for package installation

Location:
CMIP6dreq/manage
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • CMIP6dreq/manage/README.txt

    r357 r422  
    77bash step2.sh    ## checks trunk into repository, creates tagged version 
    88 
     9 
     10To upload to pypi test server: 
     11python setup.py register -r pypitest 
     12 
     13python setup.py sdist upload -r pypitest 
     14 
     15Same without test for full version. 
     16 
     1701.beta.07 is on pypi 
     18 
     19 
     20Note that there is now duplication in the version specification in __init__.py, which is the clean approach, and versionConfig.py which was my hack. 
     21 
     22 
  • CMIP6dreq/manage/step1.py

    r359 r422  
    1717ii = string.join( open( 'versionConfig.tmpl' ).readlines() ) 
    1818tags = glob.glob( '../tags/*' ) 
     19 
    1920f1 = lambda x: map( int, string.split(x, '.' ) ) 
    2021def f1( vs ): 
     22  if vs == 'latest': 
     23    return (0,0) 
    2124  bits = string.split(vs, '.' ) 
    2225  estr = 'Version string should be "nn.nn" or "nn.[alpha|beta].nn": %s' % vs 
     
    5659  assert thistn > tn[-1], 'Requested tag not greater than last tag: %s' % str(tn[-1]) 
    5760 
    58 oo = open( '../trunk/src/versionConfig.py', 'w' ) 
     61oo = open( '../trunk/dreqPy/versionConfig.py', 'w' ) 
    5962for l in string.split( ii % (thistag, thiscomment), '\n' ): 
    6063  oo.write( '%s\n' % string.strip(l) ) 
Note: See TracChangeset for help on using the changeset viewer.