-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
54 lines (47 loc) · 1.48 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
from setuptools import setup, find_packages
from os import path
import codecs
import re
def read(*parts):
here = path.abspath(path.dirname(__file__))
with codecs.open(path.join(here, *parts), 'r') as fp:
return fp.read()
def find_version():
version_file = read("fairyscript", "version.py")
version_match = re.search(r"^\s*__version__\s*=\s*['\"]([^'\"]*)['\"]\s*$", version_file, re.MULTILINE)
if version_match:
return version_match.group(1)
else:
raise RuntimeError("Unable to find version string")
setup(
name='fairyscript',
version=find_version(),
description='FairyScript is a language for compiling manuscripts.',
long_description=read('README.rst'),
url='https://github.com/dekarrin/fairyscript',
author='Rebecca Nelson',
author_email='[email protected]',
classifiers=[
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Topic :: Software Development :: Compilers',
'Development Status :: 5 - Production/Stable',
],
keywords='renpy visual novel screenplay script word office',
packages=find_packages(),
install_requires=['lxml', 'ply==3.11'],
tests_require=[],
python_requires='>=2.7,!=3.0.*,!=3.1.*,!=3.2.*',
entry_points={
'console_scripts': [
'fairyc=fairyscript:run'
]
},
package_data={
'': ['docx/templates/*.docx', 'docx/templates/*.xml', 'readme.rst']
},
include_package_data=True
)