Repository navigation
Expand file tree
/
Copy pathsetup.py
More file actions
64 lines (58 loc) · 1.83 KB
/
Copy pathsetup.py
File metadata and controls
64 lines (58 loc) · 1.83 KB
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
"""Build the cmakelang distribution for pip installs from this repository."""
import io
from setuptools import setup
GITHUB_URL = "https://github.com/TechSmith/cmake_format"
VERSION = None
with io.open("cmakelang/__init__.py", encoding="utf-8") as infile:
for line in infile:
line = line.strip()
if line.startswith("__version__ ="):
VERSION = line.split("=", 1)[1].strip().strip("'\"")
assert VERSION is not None
with io.open("cmakelang/doc/README.rst", encoding="utf-8") as infile:
long_description = infile.read()
setup(
name="cmakelang",
packages=[
"cmakelang",
"cmakelang.format",
"cmakelang.lex",
"cmakelang.lint",
"cmakelang.parse",
"cmakelang.parse.funs",
],
version=VERSION,
description="Language tools for cmake (format, lint, etc)",
long_description=long_description,
author="Josh Bialkowski",
author_email="josh.bialkowski@gmail.com",
url=GITHUB_URL,
download_url="{}/archive/{}.tar.gz".format(GITHUB_URL, VERSION),
keywords=["cmake", "format"],
license="GPLv3",
classifiers=[
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)"
],
include_package_data=True,
package_data={
"cmakelang": [
"templates/*"
]
},
entry_points={
"console_scripts": [
"cmake-annotate=cmakelang.annotate:main",
"cmake-format=cmakelang.format.__main__:main",
"cmake-lint=cmakelang.lint.__main__:main",
"cmake-genparsers=cmakelang.genparsers:main",
"ctest-to=cmakelang.ctest_to:main"
],
},
extras_require={
"YAML": ["pyyaml>=5.3"],
"html-gen": ["jinja2==2.10.3"]
},
install_requires=["six>=1.13.0"]
)