blob: 02cf55bd4e55b80945dc560fd4a0ef1260f7dc4f [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
32with open(path.join(setup_dir, 'README.md'), encoding='utf-8') as f:
33 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("-")]
40print "Required is '{}'".format(required)
41
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',
59 ],
Zack Williamsa95e2c82019-04-17 15:43:54 -070060 packages=find_packages(exclude=['test']),
Chip Boling67b674a2019-02-08 11:42:18 -060061 install_requires=[required],
62 include_package_data=True,
63 dependency_links=["git+https://github.com/ciena/afkak.git#egg=afkak-3.0.0.dev20181106"]
64)