Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f9cfaef

Browse files
committed
Migrate setup.py to setup.cfg declarative metadata
Committed via https://github.com/asottile/all-repos
1 parent aa4bc9d commit f9cfaef

2 files changed

Lines changed: 57 additions & 59 deletions

File tree

setup.cfg

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,58 @@
1+
[metadata]
2+
name = pre_commit
3+
version = 1.14.4
4+
description = A framework for managing and maintaining multi-language pre-commit hooks.
5+
long_description = file: README.md
6+
long_description_content_type = text/markdown
7+
url = https://github.com/pre-commit/pre-commit
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+
aspy.yaml
28+
cfgv>=1.4.0
29+
identify>=1.0.0
30+
importlib-metadata
31+
nodeenv>=0.11.1
32+
pyyaml
33+
six
34+
toml
35+
virtualenv>=15.2
36+
futures; python_version<"3.2"
37+
importlib-resources; python_version<"3.7"
38+
python_requires = >=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*
39+
40+
[options.entry_points]
41+
console_scripts =
42+
pre-commit = pre_commit.main:main
43+
pre-commit-validate-config = pre_commit.clientlib:validate_config_main
44+
pre-commit-validate-manifest = pre_commit.clientlib:validate_manifest_main
45+
46+
[options.package_data]
47+
pre_commit.resources =
48+
*.tar.gz
49+
empty_template_*
50+
hook-tmpl
51+
52+
[options.packages.find]
53+
exclude =
54+
tests*
55+
testing*
56+
157
[bdist_wheel]
258
universal = True

setup.py

Lines changed: 1 addition & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -1,60 +1,2 @@
1-
from setuptools import find_packages
21
from setuptools import setup
3-
4-
with open('README.md') as f:
5-
long_description = f.read()
6-
7-
setup(
8-
name='pre_commit',
9-
description=(
10-
'A framework for managing and maintaining multi-language pre-commit '
11-
'hooks.'
12-
),
13-
long_description=long_description,
14-
long_description_content_type='text/markdown',
15-
url='https://github.com/pre-commit/pre-commit',
16-
version='1.14.4',
17-
author='Anthony Sottile',
18-
author_email='[email protected]',
19-
classifiers=[
20-
'License :: OSI Approved :: MIT License',
21-
'Programming Language :: Python :: 2',
22-
'Programming Language :: Python :: 2.7',
23-
'Programming Language :: Python :: 3',
24-
'Programming Language :: Python :: 3.6',
25-
'Programming Language :: Python :: 3.7',
26-
'Programming Language :: Python :: Implementation :: CPython',
27-
'Programming Language :: Python :: Implementation :: PyPy',
28-
],
29-
packages=find_packages(exclude=('tests*', 'testing*')),
30-
package_data={
31-
'pre_commit.resources': [
32-
'*.tar.gz',
33-
'empty_template_*',
34-
'hook-tmpl',
35-
],
36-
},
37-
install_requires=[
38-
'aspy.yaml',
39-
'cfgv>=1.4.0',
40-
'identify>=1.0.0',
41-
# if this makes it into python3.8 move to extras_require
42-
'importlib-metadata',
43-
'nodeenv>=0.11.1',
44-
'pyyaml',
45-
'six',
46-
'toml',
47-
'virtualenv>=15.2',
48-
],
49-
extras_require={
50-
':python_version<"3.2"': ['futures'],
51-
':python_version<"3.7"': ['importlib-resources'],
52-
},
53-
entry_points={
54-
'console_scripts': [
55-
'pre-commit = pre_commit.main:main',
56-
'pre-commit-validate-config = pre_commit.clientlib:validate_config_main', # noqa
57-
'pre-commit-validate-manifest = pre_commit.clientlib:validate_manifest_main', # noqa
58-
],
59-
},
60-
)
2+
setup()

0 commit comments

Comments
 (0)