blob: 4bbfc0e09c126d4ea89db9d5f06ccdc51fcca6a5 [file] [log] [blame]
Chip Boling67b674a2019-02-08 11:42:18 -06001#
2# Copyright 2017 the original author or authors.
3#
4# Licensed under the Apache License, Version 2.0 (the "License");
5# you may not use this file except in compliance with the License.
6# You may obtain a copy of the License at
7#
8# http://www.apache.org/licenses/LICENSE-2.0
9#
10# Unless required by applicable law or agreed to in writing, software
11# distributed under the License is distributed on an "AS IS" BASIS,
12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13# See the License for the specific language governing permissions and
14# limitations under the License.
15#
16
17# Always prefer setuptools over distutils
18from os import path
19from setuptools import setup, find_packages
20
21# io.open is needed for projects that support Python 2.7
22# It ensures open() defaults to text mode with universal newlines,
23# and accepts an argument to specify the text encoding
24# Python 3 only projects can skip this import
25from io import open
26
27package = 'pyvoltha'
28setup_dir = path.dirname(path.abspath(__file__))
29version_file = path.join(setup_dir, "VERSION")
30
31# Get the long description from the README file
Zack Williams50b6e9e2019-07-17 15:18:08 -070032with open(path.join(setup_dir, 'README.rst'), encoding='utf-8') as f:
Chip Boling67b674a2019-02-08 11:42:18 -060033 long_description = f.read()
34
35with open(version_file) as version_file:
36 version = version_file.read().strip()
37
38requirements = open(path.join(setup_dir, "requirements.txt")).read().splitlines()
39required = [line for line in requirements if not line.startswith("-")]
William Kurkian16b767a2019-05-07 17:02:19 -040040print ("Required is '{}'".format(required))
Chip Boling67b674a2019-02-08 11:42:18 -060041
42setup(
43 name=package,
44 version=version,
45 description='VOLTHA Python support libraries',
46 author='Chip Boling',
47 author_email='chip@bcsw.net',
48 long_description=long_description,
49 long_description_content_type='text/markdown',
50 url='https://wiki.opencord.org/display/CORD/VOLTHA',
51
52 classifiers=[
53 'Development Status :: 3 - Alpha',
54 'Intended Audience :: Developers',
55 'Topic :: Software Development :: Libraries',
56 'License :: OSI Approved :: Apache Software License',
57 'Programming Language :: Python :: 2',
58 'Programming Language :: Python :: 2.7',
Zack Williams73027d52019-11-25 12:27:29 -070059 'Programming Language :: Python :: 3.5',
60 'Programming Language :: Python :: 3.6',
61 'Programming Language :: Python :: 3.7',
Chip Boling67b674a2019-02-08 11:42:18 -060062 ],
Zack Williamsa95e2c82019-04-17 15:43:54 -070063 packages=find_packages(exclude=['test']),
Chip Boling67b674a2019-02-08 11:42:18 -060064 install_requires=[required],
65 include_package_data=True,
Chip Boling67b674a2019-02-08 11:42:18 -060066)