forked from fthiagomedeiros/ml-git
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
61 lines (54 loc) · 1.79 KB
/
setup.py
File metadata and controls
61 lines (54 loc) · 1.79 KB
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
"""
© Copyright 2020 HP Development Company, L.P.
SPDX-License-Identifier: GPL-2.0-only
"""
import json
import sys
from setuptools import setup, find_packages
from ml_git.version import get_version
try:
with open('Pipfile.lock') as fd:
lock_data = json.load(fd)
install_requires = [
package_name + package_data.get('version', '')
for package_name, package_data in lock_data['default'].items()
]
tests_require = [
package_name + package_data.get('version', '')
for package_name, package_data in lock_data['develop'].items()
]
except FileNotFoundError:
print('File Pipfile.lock not found. Run `pipenv lock` to generate it.')
sys.exit(1)
install_requirements = install_requires
setup_requirements = []
test_requirements = tests_require
setup(
name='ml-git',
version=get_version(),
url='',
license='GNU General Public License v2.0',
author="Sebastien Tandel",
description='ml-git: version control for ML artefacts',
long_description='ml-git: a Distributed Version Control for ML artefacts',
install_requires=install_requirements,
setup_requires=setup_requirements,
test_suite="tests",
package_dir={'': '.'},
packages=find_packages(),
keywords='version control, cloud storage, machine learning, datasets, labels, models',
platforms='Any',
zip_safe=True,
include_package_data=True,
package_data={'ml_git': ['version.info']},
classifiers=[
'Development Status :: 4 - Beta',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Software Development :: Libraries :: Python Modules'
], entry_points={
'console_scripts': [
'ml-git = ml_git.main:run_main',
],
},
)