forked from erwanp/pytexit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
52 lines (49 loc) · 1.9 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
from __future__ import absolute_import
from setuptools import setup, find_packages
import os
import io
import codecs
from os.path import join, dirname, abspath, exists
from setuptips import yield_sphinx_only_markup
description = 'Convert a Python expression to a LaTeX formula'
# Build description from README (PyPi compatible)
# (note: README.rst has been converted to README.md by register.py, and cleaned afterwards )
readme_path = join(abspath(dirname(__file__)), 'README.md')
if not exists(readme_path):
long_description = description
else:
with io.open(readme_path, encoding='utf-8') as f:
long_description = f.read()
# Read version number from file
with open(join(dirname(__file__),'pytexit', '__version__.txt')) as version_file:
__version__ = version_file.read().strip()
setup(name='pytexit',
version=__version__,
description=description,
long_description=long_description,
long_description_content_type='text/markdown',
url='http://pytexit.readthedocs.io/',
author='Erwan Pannier',
author_email='[email protected]',
license='CeCILL-2.1',
packages=find_packages(),
platforms="any",
keywords=["latex", "py2tex"],
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: CEA CNRS Inria Logiciel Libre License, version 2.1 (CeCILL-2.1)',
'Topic :: Scientific/Engineering',
'Topic :: Text Processing',
'Programming Language :: Python',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
"Operating System :: OS Independent"],
install_requires=[
'six', # python 2-3 compatibility],
],
scripts=[
'scripts/py2tex'],
include_package_data=True,
zip_safe=False)