-
-
Notifications
You must be signed in to change notification settings - Fork 43
/
setup.py
66 lines (56 loc) · 2.27 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
#!/usr/bin/env python
import os
import re
from setuptools import setup, find_packages
def get_version():
root_dir = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(root_dir, 'spotty', '__init__.py')) as f:
content = f.read()
version_match = re.search(r'^__version__ = [\'"]([^\'"]*)[\'"]', content, re.M)
if not version_match:
raise RuntimeError('Unable to find version string.')
return version_match.group(1)
def get_description():
readme_path = os.path.abspath(os.path.join(os.path.dirname(__file__), 'README.md'))
with open(readme_path, encoding='utf-8') as f:
description = f.read()
return description
setup(name='spotty',
version=get_version(),
description='Training deep learning models on AWS and GCP instances',
url='https://github.com/spotty-cloud/spotty',
author='Oleg Polosin',
author_email='[email protected]',
license='MIT',
long_description=get_description(),
long_description_content_type='text/markdown',
packages=find_packages(exclude=['tests*']),
package_data={
'spotty.deployment.container.docker.scripts': ['data/*', 'data/*/*'],
'spotty.providers.aws.cfn_templates.instance': ['data/*', 'data/*/*'],
'spotty.providers.aws.cfn_templates.instance_profile': ['data/*', 'data/*/*'],
'spotty.providers.gcp.dm_templates.instance': ['data/*', 'data/*/*'],
},
scripts=['bin/spotty'],
install_requires=[
'boto3>=1.9.0',
'google-api-python-client>=1.7.8',
'google-cloud-storage>=1.15.0',
'cfn_flip', # to work with CloudFormation templates
'schema',
'chevron',
],
tests_require=['moto'],
test_suite='tests',
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Science/Research',
'Intended Audience :: Developers',
'Intended Audience :: System Administrators',
'Natural Language :: English',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
])