-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
55 lines (46 loc) · 1.65 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
# -*- coding: utf-8 -*-
import pathlib
from setuptools import setup, find_packages
NAME = 'mpl-interact'
ROOT_DIR = pathlib.Path(__file__).parent
PYTHON_REQUIRES = '>=3.6, <4'
def _get_version():
about = {}
ver_mod = ROOT_DIR / 'mpl_interact' / '__version__.py'
with ver_mod.open() as f:
exec(f.read(), about)
return about['__version__']
def _get_long_description():
readme = ROOT_DIR / 'README.md'
with readme.open(encoding='utf-8') as f:
return '\n' + f.read()
setup(
name=NAME,
version=_get_version(),
python_requires=PYTHON_REQUIRES,
install_requires=[
'matplotlib >=2.0,<3.8',
'mpl-events >=0.0.5,<0.2.0'
],
packages=find_packages(exclude=["tests", "*.tests", "*.tests.*", "tests.*"]),
url='https://github.com/espdev/mpl-interact',
license='MIT',
author='Eugene Prilepin',
author_email='[email protected]',
description='A library encompassing smart interactions missing in matplotlib',
long_description=_get_long_description(),
long_description_content_type='text/markdown',
classifiers=[
'Development Status :: 2 - Pre-Alpha',
'Intended Audience :: Developers',
'Intended Audience :: Science/Research',
'Topic :: Scientific/Engineering :: Visualization',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python',
'Programming Language :: Python :: 3 :: Only',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: Implementation :: CPython',
],
)