/
setup.py
55 lines (47 loc) · 1.58 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
#!/usr/bin/env python
import io
import os
from setuptools import find_packages, setup
NAME = 'idlmagic'
REQUIRES_PYTHON = '>=3.0.0'
REQUIRED = [
'IPython'
]
CLASSIFIERS = [
# https://pypi.python.org/pypi?%3Aaction=list_classifiers
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Other',
'Framework :: IPython',
'Framework :: Jupyter',
'Intended Audience :: Science/Research',
'Topic :: Scientific/Engineering :: Physics',
'Topic :: Scientific/Engineering :: Astronomy',
'Topic :: Software Development :: Libraries'
]
here = os.path.abspath(os.path.dirname(__file__))
# Note: this will only work if 'README.md' is present in your MANIFEST.in file!
with io.open(os.path.join(here, 'README.md'), encoding='utf-8') as f:
long_description = '\n' + f.read()
about = {}
with open(os.path.join(here, NAME, '__version__.py')) as f:
exec(f.read(), about)
# Where the magic happens:
setup(
name=NAME,
version=about['__version__'],
description=about['__description__'],
long_description=long_description,
long_description_content_type='text/markdown',
author=about['__author__'],
author_email=about['__author_email__'],
python_requires=REQUIRES_PYTHON,
url=about['__url__'],
packages=find_packages(exclude=('tests',)),
install_requires=REQUIRED,
include_package_data=True,
license=about['__license__'],
classifiers=CLASSIFIERS,
)