-
Notifications
You must be signed in to change notification settings - Fork 14
/
setup.py
59 lines (50 loc) · 2.4 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
"""array_to_latex converts Numpy and Pandas arrays to formatted LaTeX."""
from setuptools import setup
import os
# Utility function to read the README file.
# Used for the long_description. It's nice, because now 1) we have a top level
# README file and 2) it's easier to type in the README file than to put a raw
# string in below ...
def read(fname):
"""Read the readme.rst file."""
return open(os.path.join(os.path.dirname(__file__), fname)).read()
with open('array_to_latex/__init__.py', 'rb') as fid:
for line in fid:
line = line.decode('utf-8')
if line.startswith('__version__'):
version = line.strip().split()[-1][1:-1]
break
setup(name='array_to_latex',
# Note: Version must also be set in __init__.py
# Version must also be set in download_url.
version=version,
description='Return Numpy and Pandas arrays as formatted LaTeX arrays.',
author='Joseph C. Slater',
author_email='[email protected]',
url='https://github.com/josephcslater/array_to_latex/',
# download_url='https://github.com/josephcslater
# /array_to_latex/archive/0.42.tar.gz',
packages=['array_to_latex'],
long_description=read('README.rst'),
keywords=['latex', 'array', 'format', 'numpy', 'scipy'],
install_requires=['numpy', 'pandas', 'clipboard'],
classifiers=['Development Status :: 5 - Production/Stable',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: MIT License',
'Environment :: Console',
'Intended Audience :: End Users/Desktop',
'Intended Audience :: Education',
'Intended Audience :: Science/Research',
'Programming Language :: Python',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Topic :: Scientific/Engineering',
'Topic :: Text Processing :: Markup :: LaTeX',
'Operating System :: Microsoft :: Windows',
'Operating System :: POSIX',
'Operating System :: Unix',
'Operating System :: MacOS',
'Topic :: Utilities']
)
# https://pypi.python.org/pypi?%3Aaction=list_classifiers