forked from kylebarron/stata_kernel
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
64 lines (57 loc) · 2.14 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
59
60
61
62
63
64
import platform
from setuptools import setup
try:
from subprocess import run
except ImportError:
msg = '\n\nPython < 3.5 is unsupported. '
msg += 'Please upgrade to Python 3.5 or higher.'
raise ImportError(msg)
with open('README.md') as f:
readme = f.read()
with open('CHANGELOG.md') as history_file:
history = history_file.read()
with open('requirements.txt') as requirements_file:
requirements = requirements_file.readlines()
requirements = [x[:-1] for x in requirements]
with open('requirements_dev.txt') as test_requirements_file:
test_requirements = test_requirements_file.readlines()
test_requirements = [x[:-1] for x in test_requirements]
setup_requirements = ['setuptools >= 38.6.0']
# Recompile included docs
if platform.system() != 'Windows':
run(['bash', 'make.sh'], cwd='./stata_kernel/docs/')
# yapf: disable
setup(
author='Kyle Barron',
author_email='barronk@mit.edu',
classifiers=[
'Development Status :: 3 - Alpha',
'Environment :: Console',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'Intended Audience :: Education',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: GNU General Public License v3 (GPLv3)',
'Operating System :: MacOS',
'Operating System :: Microsoft :: Windows',
'Operating System :: POSIX :: Linux',
'Operating System :: Unix',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7'],
description='A Jupyter kernel for Stata. Works with Windows, macOS, and Linux. Preserves program state.',
install_requires=requirements,
license='GPLv3',
keywords='stata',
long_description=readme + '\n\n' + history,
long_description_content_type='text/markdown',
name='stata_kernel',
packages=['stata_kernel'],
python_requires='>=3.5',
setup_requires=setup_requirements,
test_suite='tests',
tests_require=test_requirements,
url='https://github.com/kylebarron/stata_kernel',
version='1.12.2',
include_package_data=True
)