forked from mpacer/display_xml
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
47 lines (43 loc) · 1.35 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
"""
Setup module for the display_xml python package
"""
import setuptools
from setupbase import (
ensure_python, find_packages, get_version
)
setup_dict = dict(
name='display_xml',
version=get_version('display_xml/_version.py'),
description='Prettier XML in IPython/Jupyter display contexts.',
packages=find_packages(),
author = 'M Pacer',
author_email = '[email protected]',
url = 'https://github.com/mpacer/display_xml',
license = 'BSD',
platforms = "Linux, Mac OS X, Windows",
keywords = ['Jupyter', 'JupyterLab', 'XML'],
python_requires = '>=3.6',
classifiers = [
'Intended Audience :: Developers',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: BSD License',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
],
install_requires=[
'ipython>=6.2.1',
'pygments>=2.2.0',
'lxml>=4.1.1',
]
)
try:
ensure_python(setup_dict["python_requires"].split(','))
except ValueError as e:
raise ValueError("{:s}, to use {} you must use python {} ".format(
e,
setup_dict["name"],
setup_dict["python_requires"])
)
setuptools.setup(
**setup_dict
)