mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 08:14:42 +04:00
Add OrderedDict dependency. Make sure hooks are run in a deterministic order
This commit is contained in:
parent
dc1494d0e7
commit
254655e2fd
3 changed files with 28 additions and 8 deletions
23
setup.py
23
setup.py
|
|
@ -1,6 +1,21 @@
|
|||
import sys
|
||||
from setuptools import find_packages
|
||||
from setuptools import setup
|
||||
|
||||
|
||||
install_requires = [
|
||||
'argparse',
|
||||
'jsonschema',
|
||||
'plumbum',
|
||||
'pyyaml',
|
||||
'simplejson',
|
||||
]
|
||||
|
||||
|
||||
if sys.version_info < (2, 7):
|
||||
install_requires.append('ordereddict')
|
||||
|
||||
|
||||
setup(
|
||||
name='pre_commit',
|
||||
version='0.0.0',
|
||||
|
|
@ -10,13 +25,7 @@ setup(
|
|||
'resources/pre-commit.sh'
|
||||
]
|
||||
},
|
||||
install_requires=[
|
||||
'argparse',
|
||||
'jsonschema',
|
||||
'plumbum',
|
||||
'pyyaml',
|
||||
'simplejson',
|
||||
],
|
||||
install_requires=install_requires,
|
||||
entry_points={
|
||||
'console_scripts': [
|
||||
'pre-commit = pre_commit.run:run',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue