-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathsetup.py
47 lines (41 loc) · 1.2 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
#!/usr/bin/env python
"""
Pyfranca setup script.
"""
import os
import re
from setuptools import setup, find_packages
def read_package_variable(key):
fspec = os.path.join("pyfranca", "__init__.py")
with open(fspec) as f:
for line in f:
m = re.match(r"(\S+)\s*=\s*[\"']?(.+?)[\"']?\s*$", line)
if m and key == m.group(1):
return m.group(2)
return None
version = read_package_variable("__version__")
setup(
name="pyfranca",
packages=find_packages(),
version=version,
description="Python parser and tools for working with the Franca "
"interface definition language.",
author="Kaloyan Tenchov",
author_email="[email protected]",
url="http://github.com/zayfod/pyfranca",
download_url="https://github.com/zayfod/pyfranca/archive/{}.zip".format(
version),
license="MIT",
platforms="Python 2.7 or 3.4 .",
keywords=["franca", "franca-idl", "idl", "fidl", "parsing"],
install_requires=["ply"],
setup_requires=[
'setuptools_pep8',
'sphinx',
],
test_suite="pyfranca.tests.get_suite",
scripts=[
"tools/fidl_dump.py",
"tools/fidl_validator.py",
],
)