コード例 #1
0
def _get_version():
    from xml.etree import ElementTree
    nuspec = ElementTree.parse(os.path.join(THIS_DIR, '%s.nuspec' % package_name))
    nuspec_version = nuspec.find('metadata/version').text

    _version = svn_info.update_version(nuspec_version, svn_info.last_mdl2mga_rev())
    return _version
コード例 #2
0
def _get_version():
    version = ".".join(map(str, _get_version_number(os.path.join(THIS_DIR, r"..\x64\Release\CADCreoParametricCreateAssembly.exe"))))
    return svn_info.update_version(version, svn_info.last_cad_rev())
コード例 #3
0
def _get_version():
    version = ".".join(
        map(str, _get_version_number(os.path.join(THIS_DIR, r"..\x64\Release\ExtractACM-XMLfromCreoModels.exe")))
    )
    return svn_info.update_version(version, svn_info.last_cad_rev())