-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
75 lines (69 loc) · 2.17 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
65
66
67
68
69
70
71
72
73
74
75
"""Installation script."""
from setuptools import setup
name = 'tla'
description = (
'Parser and abstract syntax tree for TLA+, '
'the temporal logic of actions.')
README = 'README.md'
long_description = open(README).read()
url = 'https://github.com/johnyf/{name}'.format(name=name)
VERSION_FILE = '{name}/_version.py'.format(name=name)
MAJOR = 0
MINOR = 0
MICRO = 2
version = '{major}.{minor}.{micro}'.format(
major=MAJOR, minor=MINOR, micro=MICRO)
s = (
'# This file was generated from `setup.py`\n'
"version = '{version}'\n").format(version=version)
install_requires = [
'infix >= 1.2',
'ply >= 3.4, <= 3.10',
]
tests_require = ['nose']
classifiers = [
'Development Status :: 2 - Pre-Alpha',
'Intended Audience :: Developers',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Topic :: Scientific/Engineering',
'Topic :: Software Development :: Compilers',
]
keywords = [
'TLA+', 'TLA', 'temporal logic of actions',
'formal', 'specification',
'expression', 'formula', 'module',
'mathematics', 'theorem', 'proof',
'parser', 'lexer', 'parsing',
'ast', 'abstract syntax tree', 'syntax tree',
'ply', 'lex',
]
def run_setup():
"""Write version file and install package."""
with open(VERSION_FILE, 'w') as f:
f.write(s)
setup(
name=name,
version=version,
description=description,
long_description=long_description,
long_description_content_type='text/markdown',
author='Ioannis Filippidis',
author_email='[email protected]',
url=url,
license='BSD',
install_requires=install_requires,
tests_require=tests_require,
packages=[name],
package_dir={name: name},
classifiers=classifiers,
keywords=keywords)
if __name__ == '__main__':
run_setup()