コード例 #1
0
 def test_create_requirements(self):
     print('++ テスト開始')
     aaa = AITRequirementsGenerator()
     aaa.add_package("aaa", "1.11.111")
     aaa.add_package("bbb", '2.22.222')
     aaa.add_package("ccc", '3.33.333')
     aaa.add_package("ddd")
     aaa.add_package("eee")
     # あらかじめ"F:/test/develop"と"F:/test/deploy/container/repository"を作成しておく
     aaa.create_requirements("F:/test/develop")
     print('++ テスト終了')
コード例 #2
0
    current_dir = get_ipython().run_line_magic('pwd', '')
    shutil.copyfile(f'../lib/{ait_sdk_name}', f'{current_dir}/{ait_sdk_name}')

    # install ait-sdk
    get_ipython().system('pip install --upgrade pip')
    get_ipython().system('pip install --force-reinstall ./$ait_sdk_name')

# In[3]:

#########################################
# area:create requirements and pip install
# do not edit
#########################################
if not is_ait_launch:
    from ait_sdk.common.files.ait_requirements_generator import AITRequirementsGenerator
    requirements_generator = AITRequirementsGenerator()

# In[4]:

#########################################
# area:create requirements and pip install
# should edit
#########################################
#########################################
# area:create requirements and pip install
# should edit
#########################################
if not is_ait_launch:
    requirements_generator.add_package('pandas', '1.1.1')
    requirements_generator.add_package('seaborn', '0.10.1')
    requirements_generator.add_package('tensorflow', '2.4.0')
コード例 #3
0
ファイル: my_ait.py プロジェクト: m-akita-aist/qunomon
    current_dir = get_ipython().run_line_magic('pwd', '')
    shutil.copyfile(f'../lib/{ait_sdk_name}', f'{current_dir}/{ait_sdk_name}')

    # install ait-sdk
    get_ipython().system('pip install --upgrade pip')
    get_ipython().system('pip install --force-reinstall ./$ait_sdk_name')

# In[3]:

#########################################
# area:create requirements and pip install
# do not edit
#########################################
if not is_ait_launch:
    from ait_sdk.common.files.ait_requirements_generator import AITRequirementsGenerator
    requirements_generator = AITRequirementsGenerator()

# In[4]:

#########################################
# area:create requirements and pip install
# should edit
#########################################
if not is_ait_launch:
    requirements_generator.add_package('bleach', '1.5.0')
    requirements_generator.add_package('cycler', '0.10.0')
    requirements_generator.add_package('decorator', '4.1.2')
    requirements_generator.add_package('h5py', '2.9.0')
    requirements_generator.add_package('html5lib', '0.9999999')
    requirements_generator.add_package('Keras', '2.0.8')
    requirements_generator.add_package('Markdown', '2.6.9')
コード例 #4
0
ファイル: my_ait.py プロジェクト: m-akita-aist/qunomon
    current_dir = get_ipython().run_line_magic('pwd', '')
    shutil.copyfile(f'../lib/{ait_sdk_name}', f'{current_dir}/{ait_sdk_name}')

    # install ait-sdk
    get_ipython().system('pip install --upgrade pip')
    get_ipython().system('pip install --force-reinstall ./$ait_sdk_name')

# In[3]:

#########################################
# area:create requirements and pip install
# do not edit
#########################################
if not is_ait_launch:
    from ait_sdk.common.files.ait_requirements_generator import AITRequirementsGenerator
    requirements_generator = AITRequirementsGenerator()

# In[4]:

#########################################
# area:create requirements and pip install
# should edit
#########################################
if not is_ait_launch:
    requirements_generator.add_package('pandas')
    requirements_generator.add_package('seaborn')

# In[5]:

#########################################
# area:create requirements and pip install
コード例 #5
0
ファイル: my_ait.py プロジェクト: m-akita-aist/qunomon
    current_dir = get_ipython().run_line_magic('pwd', '')
    shutil.copyfile(f'../lib/{ait_sdk_name}', f'{current_dir}/{ait_sdk_name}')

    # install ait-sdk
    get_ipython().system('pip install --upgrade pip')
    get_ipython().system('pip install --force-reinstall ./$ait_sdk_name')

# In[ ]:

#########################################
# area:create requirements and pip install
# should edit
#########################################
if not is_ait_launch:
    from ait_sdk.common.files.ait_requirements_generator import AITRequirementsGenerator
    requirements_generator = AITRequirementsGenerator()
    requirements_generator.add_package('pandas', '1.1.0')
    requirements_generator.add_package('seaborn', '0.10.1')
    requirements_generator.add_package('matplotlib', '3.3.0')
    requirements_generator.add_package('tensorflow', '2.4.0')
    requirements_generator.add_package('numpy', '1.19.2')
    requirements_generator.add_package('tensorflow-estimator', '2.4.0')
    requirements_generator.add_package(f'./{ait_sdk_name}')
    requirements_path = requirements_generator.create_requirements(current_dir)

    get_ipython().system('pip install -r $requirements_path ')

# In[ ]:

#########################################
# area:import
コード例 #6
0
ファイル: my_ait.py プロジェクト: m-akita-aist/qunomon
    current_dir = get_ipython().run_line_magic('pwd', '')
    shutil.copyfile(f'../lib/{ait_sdk_name}', f'{current_dir}/{ait_sdk_name}')

    # install ait-sdk
    get_ipython().system('pip install --upgrade pip')
    get_ipython().system('pip install --force-reinstall ./$ait_sdk_name')

# In[3]:

#########################################
# area:create requirements and pip install
# do not edit
#########################################
if not is_ait_launch:
    from ait_sdk.common.files.ait_requirements_generator import AITRequirementsGenerator
    requirements_generator = AITRequirementsGenerator()

# In[4]:

#########################################
# area:create requirements and pip install
# should edit
#########################################
if not is_ait_launch:
    requirements_generator.add_package('Cython')
    requirements_generator.add_package('docopt')
    requirements_generator.add_package('clint')
    requirements_generator.add_package('crontab')
    requirements_generator.add_package('tablib')
    requirements_generator.add_package('matplotlib')
    requirements_generator.add_package('Pillow')
コード例 #7
0
ファイル: my_ait.py プロジェクト: m-akita-aist/qunomon
    # install ait-sdk
    get_ipython().system('pip install --upgrade pip')
    get_ipython().system('pip install --force-reinstall ./$ait_sdk_name')


# In[3]:


#########################################
# area:create requirements and pip install
# do not edit
#########################################
if not is_ait_launch:
    from ait_sdk.common.files.ait_requirements_generator import AITRequirementsGenerator
    requirements_generator = AITRequirementsGenerator()


# In[4]:


#########################################
# area:create requirements and pip install
# should edit
#########################################
if not is_ait_launch:
    requirements_generator._package_list = []
    requirements_generator.add_package('matplotlib', '3.3.0')
    requirements_generator.add_package('numpy', '1.19.2')
    requirements_generator.add_package('pandas', '1.1.0')
    requirements_generator.add_package('scikit-learn', '0.23.2')
コード例 #8
0
    current_dir = get_ipython().run_line_magic('pwd', '')
    shutil.copyfile(f'../lib/{ait_sdk_name}', f'{current_dir}/{ait_sdk_name}')

    # install ait-sdk
    get_ipython().system('pip install --upgrade pip')
    get_ipython().system('pip install --force-reinstall ./$ait_sdk_name')

# In[3]:

#########################################
# area:create requirements and pip install
# do not edit
#########################################
if not is_ait_launch:
    from ait_sdk.common.files.ait_requirements_generator import AITRequirementsGenerator
    requirements_generator = AITRequirementsGenerator()

# In[4]:

#########################################
# area:create requirements and pip install
# should edit
#########################################
if not is_ait_launch:
    requirements_generator.add_package('sklearn')
    requirements_generator.add_package('numpy')
    requirements_generator.add_package('seaborn')
    requirements_generator.add_package('opencv-python')

# In[5]: