Skip to content

Commit e463c92

Browse files
authored
Merge pull request #367 from pre-commit/all-repos_autofix_setup-py-upgrade
Migrate setup.py to setup.cfg declarative metadata
2 parents 76c604c + 1a5a5a2 commit e463c92

File tree

2 files changed

+70
-64
lines changed

2 files changed

+70
-64
lines changed

setup.cfg

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,71 @@
1+
[metadata]
2+
name = pre_commit_hooks
3+
version = 2.1.0
4+
description = Some out-of-the-box hooks for pre-commit.
5+
long_description = file: README.md
6+
long_description_content_type = text/markdown
7+
url = https://github.com/pre-commit/pre-commit-hooks
8+
author = Anthony Sottile
9+
author_email = [email protected]
10+
license = MIT
11+
license_file = LICENSE
12+
classifiers =
13+
License :: OSI Approved :: MIT License
14+
Programming Language :: Python :: 2
15+
Programming Language :: Python :: 2.7
16+
Programming Language :: Python :: 3
17+
Programming Language :: Python :: 3.4
18+
Programming Language :: Python :: 3.5
19+
Programming Language :: Python :: 3.6
20+
Programming Language :: Python :: 3.7
21+
Programming Language :: Python :: Implementation :: CPython
22+
Programming Language :: Python :: Implementation :: PyPy
23+
24+
[options]
25+
packages = find:
26+
install_requires =
27+
flake8
28+
ruamel.yaml>=0.15
29+
six
30+
typing; python_version<"3.5"
31+
python_requires = >=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*
32+
33+
[options.entry_points]
34+
console_scripts =
35+
autopep8-wrapper = pre_commit_hooks.autopep8_wrapper:main
36+
check-added-large-files = pre_commit_hooks.check_added_large_files:main
37+
check-ast = pre_commit_hooks.check_ast:main
38+
check-builtin-literals = pre_commit_hooks.check_builtin_literals:main
39+
check-byte-order-marker = pre_commit_hooks.check_byte_order_marker:main
40+
check-case-conflict = pre_commit_hooks.check_case_conflict:main
41+
check-docstring-first = pre_commit_hooks.check_docstring_first:main
42+
check-executables-have-shebangs = pre_commit_hooks.check_executables_have_shebangs:main
43+
check-json = pre_commit_hooks.check_json:main
44+
check-merge-conflict = pre_commit_hooks.check_merge_conflict:main
45+
check-symlinks = pre_commit_hooks.check_symlinks:main
46+
check-vcs-permalinks = pre_commit_hooks.check_vcs_permalinks:main
47+
check-xml = pre_commit_hooks.check_xml:main
48+
check-yaml = pre_commit_hooks.check_yaml:main
49+
debug-statement-hook = pre_commit_hooks.debug_statement_hook:main
50+
detect-aws-credentials = pre_commit_hooks.detect_aws_credentials:main
51+
detect-private-key = pre_commit_hooks.detect_private_key:main
52+
double-quote-string-fixer = pre_commit_hooks.string_fixer:main
53+
end-of-file-fixer = pre_commit_hooks.end_of_file_fixer:main
54+
file-contents-sorter = pre_commit_hooks.file_contents_sorter:main
55+
fix-encoding-pragma = pre_commit_hooks.fix_encoding_pragma:main
56+
forbid-new-submodules = pre_commit_hooks.forbid_new_submodules:main
57+
mixed-line-ending = pre_commit_hooks.mixed_line_ending:main
58+
name-tests-test = pre_commit_hooks.tests_should_end_in_test:main
59+
no-commit-to-branch = pre_commit_hooks.no_commit_to_branch:main
60+
pretty-format-json = pre_commit_hooks.pretty_format_json:main
61+
requirements-txt-fixer = pre_commit_hooks.requirements_txt_fixer:main
62+
sort-simple-yaml = pre_commit_hooks.sort_simple_yaml:main
63+
trailing-whitespace-fixer = pre_commit_hooks.trailing_whitespace_fixer:main
64+
65+
[options.packages.find]
66+
exclude =
67+
tests*
68+
testing*
69+
170
[bdist_wheel]
271
universal = True

setup.py

Lines changed: 1 addition & 64 deletions
Original file line numberDiff line numberDiff line change
@@ -1,65 +1,2 @@
1-
from setuptools import find_packages
21
from setuptools import setup
3-
4-
5-
setup(
6-
name='pre_commit_hooks',
7-
description='Some out-of-the-box hooks for pre-commit.',
8-
url='https://github.com/pre-commit/pre-commit-hooks',
9-
version='2.1.0',
10-
11-
author='Anthony Sottile',
12-
author_email='[email protected]',
13-
14-
classifiers=[
15-
'License :: OSI Approved :: MIT License',
16-
'Programming Language :: Python :: 2',
17-
'Programming Language :: Python :: 2.7',
18-
'Programming Language :: Python :: 3',
19-
'Programming Language :: Python :: 3.6',
20-
'Programming Language :: Python :: 3.7',
21-
'Programming Language :: Python :: Implementation :: CPython',
22-
'Programming Language :: Python :: Implementation :: PyPy',
23-
],
24-
25-
packages=find_packages(exclude=('tests*', 'testing*')),
26-
install_requires=[
27-
'flake8',
28-
'ruamel.yaml>=0.15',
29-
'six',
30-
],
31-
extras_require={':python_version<"3.5"': ['typing']},
32-
entry_points={
33-
'console_scripts': [
34-
'autopep8-wrapper = pre_commit_hooks.autopep8_wrapper:main',
35-
'check-added-large-files = pre_commit_hooks.check_added_large_files:main', # noqa: E501
36-
'check-ast = pre_commit_hooks.check_ast:main',
37-
'check-builtin-literals = pre_commit_hooks.check_builtin_literals:main', # noqa: E501
38-
'check-byte-order-marker = pre_commit_hooks.check_byte_order_marker:main', # noqa: E501
39-
'check-case-conflict = pre_commit_hooks.check_case_conflict:main',
40-
'check-docstring-first = pre_commit_hooks.check_docstring_first:main', # noqa: E501
41-
'check-executables-have-shebangs = pre_commit_hooks.check_executables_have_shebangs:main', # noqa: E501
42-
'check-json = pre_commit_hooks.check_json:main',
43-
'check-merge-conflict = pre_commit_hooks.check_merge_conflict:main', # noqa: E501
44-
'check-symlinks = pre_commit_hooks.check_symlinks:main',
45-
'check-vcs-permalinks = pre_commit_hooks.check_vcs_permalinks:main', # noqa: E501
46-
'check-xml = pre_commit_hooks.check_xml:main',
47-
'check-yaml = pre_commit_hooks.check_yaml:main',
48-
'debug-statement-hook = pre_commit_hooks.debug_statement_hook:main', # noqa: E501
49-
'detect-aws-credentials = pre_commit_hooks.detect_aws_credentials:main', # noqa: E501
50-
'detect-private-key = pre_commit_hooks.detect_private_key:main',
51-
'double-quote-string-fixer = pre_commit_hooks.string_fixer:main',
52-
'end-of-file-fixer = pre_commit_hooks.end_of_file_fixer:main',
53-
'file-contents-sorter = pre_commit_hooks.file_contents_sorter:main', # noqa: E501
54-
'fix-encoding-pragma = pre_commit_hooks.fix_encoding_pragma:main',
55-
'forbid-new-submodules = pre_commit_hooks.forbid_new_submodules:main', # noqa: E501
56-
'mixed-line-ending = pre_commit_hooks.mixed_line_ending:main',
57-
'name-tests-test = pre_commit_hooks.tests_should_end_in_test:main',
58-
'no-commit-to-branch = pre_commit_hooks.no_commit_to_branch:main',
59-
'pretty-format-json = pre_commit_hooks.pretty_format_json:main',
60-
'requirements-txt-fixer = pre_commit_hooks.requirements_txt_fixer:main', # noqa: E501
61-
'sort-simple-yaml = pre_commit_hooks.sort_simple_yaml:main',
62-
'trailing-whitespace-fixer = pre_commit_hooks.trailing_whitespace_fixer:main', # noqa: E501
63-
],
64-
},
65-
)
2+
setup()

0 commit comments

Comments
 (0)