forked from open-mmlab/pre-commit-hooks
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
30 lines (26 loc) · 965 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
from setuptools import find_packages, setup # type: ignore
def readme():
with open('./README.md', encoding='utf-8') as f:
content = f.read()
return content
setup(
name='pre_commit_hooks',
version='0.3.0',
description='A pre-commit hook for OpenMMLab projects',
long_description=readme(),
long_description_content_type='text/markdown',
url='https://github.com/open-mmlab/pre-commit-hooks',
author='OpenMMLab Authors',
author_email='[email protected]',
packages=find_packages(),
python_requires='>=3.6',
install_requires=['PyYAML'],
entry_points={
'console_scripts': [
'say-hello=pre_commit_hooks.say_hello:main',
'check-algo-readme=pre_commit_hooks.check_algo_readme:main',
'check-copyright=pre_commit_hooks.check_copyright:main',
'check-ecosystem-validity=pre_commit_hooks.check_ecosystem_validity:main' # noqa: E501
],
},
)