Prepare version for release
This commit is contained in:
Родитель
62a168dfa5
Коммит
5275444a99
|
@ -1,8 +1,13 @@
|
|||
|
||||
(unreleased) v0.15.0
|
||||
2017.10.12 v0.15.0
|
||||
--------------------
|
||||
- Updated dependencies azure-batch (4.0.0) and azure-batch-extensions (1.0.0)
|
||||
- Updated dependencies azure-batch (4.0.0) and azure-batch-extensions (1.0.1)
|
||||
- Better support for unicode
|
||||
- Some fixes for render-specific asset detection:
|
||||
- Filter out empty path references
|
||||
- Correctly detect numbered volume cache data sets
|
||||
- Removed older Arnold 'dso' volume reference
|
||||
|
||||
|
||||
2017-09-26 v0.14.0
|
||||
------------------
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
|
||||
The Azure Batch Maya Sample ver. 0.15.0
|
||||
The Azure Batch Maya Sample
|
||||
|
||||
Copyright (c) Microsoft Corporation
|
||||
All rights reserved.
|
||||
|
|
18
package.py
18
package.py
|
@ -32,7 +32,20 @@ import subprocess
|
|||
import shutil
|
||||
import zipfile
|
||||
|
||||
VERSION = "0.15.0"
|
||||
|
||||
def find_version():
|
||||
root_dir = os.path.dirname(os.path.realpath(__file__))
|
||||
plugin_path = os.path.join(root_dir, 'azure_batch_maya', 'plug-in', 'AzureBatch.py')
|
||||
plugin_version = ""
|
||||
with open(plugin_path, 'r') as plugin_file:
|
||||
for line in plugin_file:
|
||||
if line.startswith('VERSION ='):
|
||||
plugin_version = line[9:].strip('\n" \'')
|
||||
break
|
||||
if not plugin_version:
|
||||
raise ValueError("Couldn't detect plugin version from {}".format(plugin_file))
|
||||
return plugin_version
|
||||
|
||||
|
||||
def main():
|
||||
"""Build Maya Plug-in package"""
|
||||
|
@ -47,7 +60,8 @@ def main():
|
|||
print("Cannot create build dir at path: {0}".format(package_dir))
|
||||
return
|
||||
|
||||
package = os.path.join(package_dir, "AzureBatch_Maya_Plugin-v{0}.zip".format(VERSION))
|
||||
version = find_version()
|
||||
package = os.path.join(package_dir, "AzureBatch_Maya_Plugin-v{0}.zip".format(version))
|
||||
source = os.path.abspath("azure_batch_maya")
|
||||
|
||||
with zipfile.ZipFile(package, mode='w') as maya_zip:
|
||||
|
|
Загрузка…
Ссылка в новой задаче