-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
58 lines (54 loc) · 1.62 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
import os
import re
from io import open
from setuptools import setup
here = os.path.abspath(os.path.dirname(__file__))
README = open('README.md', 'r', encoding='utf-8').read()
def get_version(package):
"""
Return package version as listed in `__version__` in `init.py`.
"""
init_py = open(os.path.join(package, '__init__.py')).read()
return re.search("__version__ = ['\"]([^'\"]+)['\"]", init_py).group(1)
version = get_version('yex')
setup(
name='yex',
version=version,
url='https://gitlab.org/marnanel/yex',
license='GPL-2',
description="Typeset beautifully. TeX workalike.",
long_description=README,
long_description_content_type='text/markdown',
author='Marnanel Thurman',
author_email='marnanel@thurman.org.uk',
packages=[
'yex',
'yex.box',
'yex.control',
'yex.font',
'yex.mode',
'yex.output',
'yex.parse',
'yex.value',
],
include_package_data=True,
install_requires=[
'appdirs==1.4.4',
'pytest==5.3.5',
'pyfakefs==4.5.4',
'Pillow==9.0.0',
'pylint==2.4.4',
'pytest==5.3.5',
],
python_requires=">=3.0",
zip_safe=False, # for now, anyway
classifiers=[
'Development Status :: 2 - Pre-Alpha',
],
entry_points={
'console_scripts': [
'yex=yex.__main__:main',
'yex-show-font=yex.font.__main__:main',
],
},
)