Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #956 from pre-commit/all-repos_autofix_setup-py-up…
…grade Migrate setup.py to setup.cfg declarative metadata
- Loading branch information
Showing
2 changed files
with
57 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,58 @@ | ||
[metadata] | ||
name = pre_commit | ||
version = 1.14.4 | ||
description = A framework for managing and maintaining multi-language pre-commit hooks. | ||
long_description = file: README.md | ||
long_description_content_type = text/markdown | ||
url = https://github.com/pre-commit/pre-commit | ||
author = Anthony Sottile | ||
author_email = asottile@umich.edu | ||
license = MIT | ||
license_file = LICENSE | ||
classifiers = | ||
License :: OSI Approved :: MIT License | ||
Programming Language :: Python :: 2 | ||
Programming Language :: Python :: 2.7 | ||
Programming Language :: Python :: 3 | ||
Programming Language :: Python :: 3.4 | ||
Programming Language :: Python :: 3.5 | ||
Programming Language :: Python :: 3.6 | ||
Programming Language :: Python :: 3.7 | ||
Programming Language :: Python :: Implementation :: CPython | ||
Programming Language :: Python :: Implementation :: PyPy | ||
|
||
[options] | ||
packages = find: | ||
install_requires = | ||
aspy.yaml | ||
cfgv>=1.4.0 | ||
identify>=1.0.0 | ||
importlib-metadata | ||
nodeenv>=0.11.1 | ||
pyyaml | ||
six | ||
toml | ||
virtualenv>=15.2 | ||
futures; python_version<"3.2" | ||
importlib-resources; python_version<"3.7" | ||
python_requires = >=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.* | ||
|
||
[options.entry_points] | ||
console_scripts = | ||
pre-commit = pre_commit.main:main | ||
pre-commit-validate-config = pre_commit.clientlib:validate_config_main | ||
pre-commit-validate-manifest = pre_commit.clientlib:validate_manifest_main | ||
|
||
[options.package_data] | ||
pre_commit.resources = | ||
*.tar.gz | ||
empty_template_* | ||
hook-tmpl | ||
|
||
[options.packages.find] | ||
exclude = | ||
tests* | ||
testing* | ||
|
||
[bdist_wheel] | ||
universal = True |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,60 +1,2 @@ | ||
from setuptools import find_packages | ||
from setuptools import setup | ||
|
||
with open('README.md') as f: | ||
long_description = f.read() | ||
|
||
setup( | ||
name='pre_commit', | ||
description=( | ||
'A framework for managing and maintaining multi-language pre-commit ' | ||
'hooks.' | ||
), | ||
long_description=long_description, | ||
long_description_content_type='text/markdown', | ||
url='https://github.com/pre-commit/pre-commit', | ||
version='1.14.4', | ||
author='Anthony Sottile', | ||
author_email='asottile@umich.edu', | ||
classifiers=[ | ||
'License :: OSI Approved :: MIT License', | ||
'Programming Language :: Python :: 2', | ||
'Programming Language :: Python :: 2.7', | ||
'Programming Language :: Python :: 3', | ||
'Programming Language :: Python :: 3.6', | ||
'Programming Language :: Python :: 3.7', | ||
'Programming Language :: Python :: Implementation :: CPython', | ||
'Programming Language :: Python :: Implementation :: PyPy', | ||
], | ||
packages=find_packages(exclude=('tests*', 'testing*')), | ||
package_data={ | ||
'pre_commit.resources': [ | ||
'*.tar.gz', | ||
'empty_template_*', | ||
'hook-tmpl', | ||
], | ||
}, | ||
install_requires=[ | ||
'aspy.yaml', | ||
'cfgv>=1.4.0', | ||
'identify>=1.0.0', | ||
# if this makes it into python3.8 move to extras_require | ||
'importlib-metadata', | ||
'nodeenv>=0.11.1', | ||
'pyyaml', | ||
'six', | ||
'toml', | ||
'virtualenv>=15.2', | ||
], | ||
extras_require={ | ||
':python_version<"3.2"': ['futures'], | ||
':python_version<"3.7"': ['importlib-resources'], | ||
}, | ||
entry_points={ | ||
'console_scripts': [ | ||
'pre-commit = pre_commit.main:main', | ||
'pre-commit-validate-config = pre_commit.clientlib:validate_config_main', # noqa | ||
'pre-commit-validate-manifest = pre_commit.clientlib:validate_manifest_main', # noqa | ||
], | ||
}, | ||
) | ||
setup() |