Chip Boling | 67b674a | 2019-02-08 11:42:18 -0600 | [diff] [blame] | 1 | # |
| 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 |
| 18 | from os import path |
| 19 | from 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 |
| 25 | from io import open |
| 26 | |
| 27 | package = 'pyvoltha' |
| 28 | setup_dir = path.dirname(path.abspath(__file__)) |
| 29 | version_file = path.join(setup_dir, "VERSION") |
| 30 | |
| 31 | # Get the long description from the README file |
| 32 | with open(path.join(setup_dir, 'README.md'), encoding='utf-8') as f: |
| 33 | long_description = f.read() |
| 34 | |
| 35 | with open(version_file) as version_file: |
| 36 | version = version_file.read().strip() |
| 37 | |
| 38 | requirements = open(path.join(setup_dir, "requirements.txt")).read().splitlines() |
| 39 | required = [line for line in requirements if not line.startswith("-")] |
| 40 | print "Required is '{}'".format(required) |
| 41 | |
| 42 | setup( |
| 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 Williams | a95e2c8 | 2019-04-17 15:43:54 -0700 | [diff] [blame] | 60 | packages=find_packages(exclude=['test']), |
Chip Boling | 67b674a | 2019-02-08 11:42:18 -0600 | [diff] [blame] | 61 | 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 | ) |