Пример #1
0
# area:license attribute set
# should edit
#########################################
ait_owner = 'AIST'
ait_creation_year = '2020'

# In[ ]:

#########################################
# area:prepare deproy
# do not edit
#########################################

if not is_ait_launch:
    from ait_sdk.deploy import prepare_deploy
    from ait_sdk.license.license_generator import LicenseGenerator

    current_dir = get_ipython().run_line_magic('pwd', '')
    prepare_deploy(ait_manifest,
                   ait_sdk_name,
                   current_dir,
                   requirements_path,
                   is_remote_deploy=True)

    # output License.txt
    license_generator = LicenseGenerator()
    license_generator.write('../top_dir/LICENSE.txt', ait_creation_year,
                            ait_owner)

# In[ ]:
 def test_write(self):
     print('++ テスト開始')
     aaa = LicenseGenerator()
     aaa.write('LICENSE.txt', '2020', 'test')
     print('++ テスト終了')