mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 08:14:42 +04:00
Replace resources with importlib_resources
This commit is contained in:
parent
ebe5132576
commit
9f60561d6f
17 changed files with 72 additions and 49 deletions
6
setup.py
6
setup.py
|
|
@ -29,10 +29,9 @@ setup(
|
|||
packages=find_packages(exclude=('tests*', 'testing*')),
|
||||
package_data={
|
||||
'pre_commit': [
|
||||
'resources/*-tmpl',
|
||||
'resources/hook-tmpl',
|
||||
'resources/*.tar.gz',
|
||||
'resources/empty_template/*',
|
||||
'resources/empty_template/.npmignore',
|
||||
'resources/empty_template_*',
|
||||
],
|
||||
},
|
||||
install_requires=[
|
||||
|
|
@ -48,6 +47,7 @@ setup(
|
|||
'toml',
|
||||
'virtualenv',
|
||||
],
|
||||
extras_require={':python_version<"3.7"': ['importlib-resources']},
|
||||
entry_points={
|
||||
'console_scripts': [
|
||||
'pre-commit = pre_commit.main:main',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue