forked from ypconfig/ypconfig
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
51 lines (44 loc) · 1.4 KB
/
setup.py
File metadata and controls
51 lines (44 loc) · 1.4 KB
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
import os
import sys
from pip.req import parse_requirements
from setuptools import setup, find_packages
from ypconfig import __version__
try:
from distutils.command.build_py import build_py_2to3 as build_py
except ImportError:
from distutils.command.build_py import build_py
major, minor = sys.version_info[:2] # Python version
if major < 3:
print("We need at least python 3")
sys.exit(1)
elif major == 3:
PYTHON3 = True
try:
import lib2to3 # Just a check--the module is not actually used
except ImportError:
print("Python 3.X support requires the 2to3 tool.")
sys.exit(1)
reqs = ['schema', 'pyroute2', 'PyYAML', 'docopt']
setup(
name='ypconfig',
version=__version__,
description='Tools required for ypconfig',
author='Mark Schouten',
author_email='mark@tuxis.nl',
url='https://github.com/ypconfig/ypconfig',
classifiers=[
'Intended Audience :: Developers',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: System :: Networking',
'License :: OSI Approved :: BSD License',
'Programming Language :: Python :: 3.5',
],
license='BSD 2-Clause',
setup_requires=reqs,
install_requires=reqs,
packages=find_packages(exclude=['tests', 'tests.*']),
platforms=['linux'],
data_files=[
],
entry_points={'console_scripts': ['ypconfig = ypconfig.cli:main']}
)