forked from openvinotoolkit/model_preparation_algorithm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
34 lines (26 loc) · 965 Bytes
/
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
# Copyright (C) 2022 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
#
import os.path as osp
from setuptools import setup, find_packages
with open("README.md", "r") as fh:
long_description = fh.read()
def get_requirements(filename='requirements.txt'):
here = osp.dirname(osp.realpath(__file__))
with open(osp.join(here, filename), 'r') as f:
requires = [line.replace('\n', '') for line in f.readlines()]
return requires
def find_version():
version_file = 'mpa/version.py'
with open(version_file, 'r') as f:
exec(compile(f.read(), version_file, 'exec'))
return locals()['__version__']
setup(
name='mpa',
version=find_version(),
url='https://github.com/openvinotoolkit/model_preparation_algorithm',
packages=find_packages(include=('mpa', 'recipes', 'samples')),
description='Model Preperation Algorithms',
long_description=long_description,
install_requires=get_requirements()
)