blob: c8321320c735949fe4c126fb6a110957d5468e61 [file] [log] [blame]
Ole Troan57c3d662016-09-12 22:00:32 +02001#
2# Copyright (c) 2016 Cisco and/or its affiliates.
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at:
6#
7# http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
Paul Vinciguerra49ff6d12019-02-25 18:55:28 -080014import sys
15
Paul Vinciguerra42bdba82019-03-07 11:26:23 -080016stdlib_enum = sys.version_info >= (3, 6)
Ole Troan57c3d662016-09-12 22:00:32 +020017
Ole Troan5f9dcff2016-08-01 04:59:13 +020018try:
Ole Troana7564e82018-06-12 21:06:44 +020019 from setuptools import setup, find_packages
Ole Troan5f9dcff2016-08-01 04:59:13 +020020except ImportError:
Ole Troana7564e82018-06-12 21:06:44 +020021 from distutils.core import setup, find_packages
Ole Troan6855f6c2016-04-09 03:16:30 +020022
Paul Vinciguerra49ff6d12019-02-25 18:55:28 -080023setup(
24 name='vpp_papi',
25 version='1.6.2',
26 description='VPP Python binding',
27 author='Ole Troan',
28 author_email='ot@cisco.com',
29 url='https://wiki.fd.io/view/VPP/Python_API',
30 license='Apache-2.0',
31 test_suite='vpp_papi.tests',
32 install_requires=['cffi >= 1.6'] if stdlib_enum else
Ole Troan48ae19e2019-03-07 11:28:32 +010033 ['cffi >= 1.6', 'aenum'],
Paul Vinciguerra49ff6d12019-02-25 18:55:28 -080034 packages=find_packages(),
35 long_description='''VPP Python language binding.''',
36 zip_safe=True)