-
Notifications
You must be signed in to change notification settings - Fork 7
/
setup.py
33 lines (29 loc) · 907 Bytes
/
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
from setuptools import find_packages, setup
import versioneer
with open("requirements.txt") as fd:
requirements = [fd.read().splitlines()]
hook_names = [
"twincat-lineids-remover",
"leading-tabs-remover",
"xml-format",
"check-fixed-library-versions",
"no-product-version",
"twincat-st-newline",
"minimize-id-changes",
"check-twincat-versions",
]
console_scripts = []
for name in hook_names:
module = name.replace("-", "_")
console_scripts.append(f"{name}=pre_commit_hooks.{module}:main")
setup(
name="pre-commit-hooks",
version=versioneer.get_version(),
cmdclass=versioneer.get_cmdclass(),
author="SLAC National Accelerator Laboratory",
packages=find_packages(),
include_package_data=True,
install_requires=requirements,
description="SLAC LCLS custom pre-commit-hooks",
entry_points={"console_scripts": console_scripts},
)