forked from Juniper/jxmlease
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
executable file
·58 lines (53 loc) · 1.85 KB
/
setup.py
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
52
53
54
55
56
57
58
#!/usr/bin/env python
# Copyright (c) 2016, Juniper Networks, Inc.
# All rights reserved.
#
# Copyright (C) 2012 Martin Blech and individual contributors.
#
# See the LICENSE file for further information.
try:
from setuptools import setup
except ImportError:
from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup
try:
from distutils.log import warn
except:
import sys
def warn(msg, *args):
sys.stderr.write('warning: ' + (msg % args) + '\n')
import jxmlease
setup(name='jxmlease',
version=jxmlease.__version__,
description="jxmlease converts between XML and intelligent Python data structures.",
author=jxmlease.__author__,
author_email='[email protected]',
url='https://github.com/Juniper/jxmlease',
license=jxmlease.__license__,
platforms=['all'],
classifiers=[
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.2',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
# Note: Jython not tested yet!
# 'Programming Language :: Python :: Implementation :: Jython',
'Programming Language :: Python :: Implementation :: PyPy',
'Topic :: Text Processing :: Markup :: XML',
],
packages=['jxmlease'],
test_suite = "tests.test",
)
try:
from lxml import etree
except:
warn("The lxml module is recommended, but not installed.")