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 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158
|
import io
from setuptools import setup
GITHUB_URL = "https://github.com/cheshirekow/cmakelang"
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.command_tests",
"cmakelang.format",
"cmakelang.lex",
"cmakelang.lint",
"cmakelang.lint.test",
"cmakelang.parse",
"cmakelang.parse.funs",
"cmakelang.test",
],
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",
],
},
extras_require={
"YAML": ["pyyaml>=5.3"],
"html-gen": ["jinja2==2.10.3"]
},
)
setup(
name="cmake-annotate",
packages=[],
version=VERSION,
description="Can format your listfiles so they don't look like crap",
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", "annotate"],
license="GPLv3",
classifiers=[
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)"
],
include_package_data=True,
install_requires=[
"cmakelang>={}".format(VERSION),
"pyyaml>=5.3"]
)
setup(
name="cmake-format",
packages=[],
version=VERSION,
description="Can format your listfiles so they don't look like crap",
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", "formatter"],
license="GPLv3",
classifiers=[
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)"
],
include_package_data=True,
extras_require={
"YAML": ["pyyaml>=5.3"],
},
install_requires=["cmakelang>={}".format(VERSION)]
)
setup(
name="cmake-lint",
packages=[],
version=VERSION,
description="Can check your listfiles for common problems",
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", "lint", "linter"],
license="GPLv3",
classifiers=[
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)"
],
include_package_data=True,
extras_require={
"YAML": ["pyyaml>=5.3"],
},
install_requires=["cmakelang>={}".format(VERSION)]
)
setup(
name="cmake-parse",
packages=[],
version=VERSION,
description="Python library for parsing cmake listfiles. ",
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", "lint", "linter"],
license="GPLv3",
classifiers=[
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)"
],
include_package_data=True,
install_requires=["cmakelang>={}".format(VERSION)]
)
|