Changeset 422


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

miscellaneous cleaning for package installation

Location:
CMIP6dreq
Files:
7 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) ) 
  • CMIP6dreq/tags/01.beta.05/README.txt

    r412 r422  
    11 
    22 
    3 python ptxt.py: to generate schema and sample from vocabDefn.txt 
    4  [Need to edit file to switch modes] 
    5 Produces vocabDefn.xml  vocabSample.xml 
     3The dreqPy package includes an XML document specifying the CMIP6 data request and a python API. 
    64 
    7 test vocabDefn.xml 
     5The XML document is described in dreqML.pdf in the docs directory. 
    86 
    9 xmllint --schema ../../docs/vocabFrameworkSchema.xsd out/vocabDefn.xml 
    10  
    11 use xsltproc to generate schema from vocabDefn.xml 
    12  
    13 xsltproc ../../docs/xlst_xdsSchemaGen.xml out/vocabDefn.xml > out/vocab.xsd 
    14  
    15 check vocabSample.xml 
    16  
    17 xmllint --schema out/vocab.xsd out/vocabSample.xml 
     7The python API is described in dreqPy.pdf, also in the docs directory. 
  • CMIP6dreq/tags/01.beta.05/setup.py

    r412 r422  
    9090        classifiers=CLASSIFIERS, 
    9191        install_requires=INSTALL_REQUIRES, 
    92         data_files = [("", ["LICENSE"])] 
     92        package_data={'dreqPy': ['LICENSE', 'docs/*.txt']} 
    9393    ) 
  • CMIP6dreq/tags/01.beta.06/dreqPy/__init__.py

    r413 r422  
    11 
    22 
    3 __version__ = "01.beta.05" 
     3__version__ = "01.beta.06" 
    44__title__ = "dreqPy" 
    55__description__ = "CMIP6 Data Request Python API" 
  • CMIP6dreq/tags/01.beta.06/setup.py

    r415 r422  
    8989        zip_safe=False, 
    9090        classifiers=CLASSIFIERS, 
    91         install_requires=INSTALL_REQUIRES, 
    92         package_data={'dreqPy': ['LICENSE', 'docs/*.txt']} 
     91        install_requires=INSTALL_REQUIRES 
    9392    ) 
  • CMIP6dreq/trunk/README.txt

    r412 r422  
    11 
    22 
    3 python ptxt.py: to generate schema and sample from vocabDefn.txt 
    4  [Need to edit file to switch modes] 
    5 Produces vocabDefn.xml  vocabSample.xml 
     3The dreqPy package includes an XML document specifying the CMIP6 data request and a python API. 
    64 
    7 test vocabDefn.xml 
     5The XML document is described in dreqML.pdf in the docs directory. 
    86 
    9 xmllint --schema ../../docs/vocabFrameworkSchema.xsd out/vocabDefn.xml 
    10  
    11 use xsltproc to generate schema from vocabDefn.xml 
    12  
    13 xsltproc ../../docs/xlst_xdsSchemaGen.xml out/vocabDefn.xml > out/vocab.xsd 
    14  
    15 check vocabSample.xml 
    16  
    17 xmllint --schema out/vocab.xsd out/vocabSample.xml 
     7The python API is described in dreqPy.pdf, also in the docs directory. 
Note: See TracChangeset for help on using the changeset viewer.