本文整理匯總了Python中versioneer.versionfile_build方法的典型用法代碼示例。如果您正苦於以下問題:Python versioneer.versionfile_build方法的具體用法?Python versioneer.versionfile_build怎麽用?Python versioneer.versionfile_build使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類versioneer
的用法示例。
在下文中一共展示了versioneer.versionfile_build方法的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。
示例1: run
# 需要導入模塊: import versioneer [as 別名]
# 或者: from versioneer import versionfile_build [as 別名]
def run(self):
versions = get_versions(verbose=True)
_build.run(self)
# now locate _version.py in the new build/ directory and replace it
# with an updated value
target_versionfile = os.path.join(self.build_lib, versionfile_build)
print("UPDATING %s" % target_versionfile)
os.unlink(target_versionfile)
f = open(target_versionfile, "w")
f.write(SHORT_VERSION_PY % versions)
f.close()
示例2: run
# 需要導入模塊: import versioneer [as 別名]
# 或者: from versioneer import versionfile_build [as 別名]
def run(self):
_build_py.run(self)
versions = get_versions(verbose=True)
# now locate _version.py in the new build/ directory and replace it
# with an updated value
target_versionfile = os.path.join(self.build_lib, versionfile_build)
print("UPDATING %s" % target_versionfile)
if os.path.exists(target_versionfile):
os.unlink(target_versionfile)
f = open(target_versionfile, "w")
f.write(SHORT_VERSION_PY % versions)
f.close()
示例3: run
# 需要導入模塊: import versioneer [as 別名]
# 或者: from versioneer import versionfile_build [as 別名]
def run(self):
versions = get_versions(verbose=True)
_build.run(self)
# now locate _version.py in the new build/ directory and replace it
# with an updated value
if versionfile_build:
target_versionfile = os.path.join(self.build_lib, versionfile_build)
print("UPDATING %s" % target_versionfile)
os.unlink(target_versionfile)
with open(target_versionfile, "w") as f:
f.write(SHORT_VERSION_PY % versions)
示例4: run
# 需要導入模塊: import versioneer [as 別名]
# 或者: from versioneer import versionfile_build [as 別名]
def run(self):
versions = get_versions(verbose=True)
_build.run(self)
# now locate _version.py in the new build/ directory and replace it
# with an updated value
if versionfile_build:
target_versionfile = os.path.join(self.build_lib,
versionfile_build)
print("UPDATING %s" % target_versionfile)
os.unlink(target_versionfile)
with open(target_versionfile, "w") as f:
f.write(SHORT_VERSION_PY % versions)