mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-19 17:14:43 +04:00
Simplify setup.py in arbitrary_bytes_repo
This commit is contained in:
parent
d4a25b2ecf
commit
51cf46e660
3 changed files with 3 additions and 6 deletions
|
|
@ -5,7 +5,7 @@ from __future__ import unicode_literals
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
|
|
||||||
def func():
|
def main():
|
||||||
# Intentionally write mixed encoding to the output. This should not crash
|
# Intentionally write mixed encoding to the output. This should not crash
|
||||||
# pre-commit and should write bytes to the output.
|
# pre-commit and should write bytes to the output.
|
||||||
sys.stdout.buffer.write('☃'.encode('UTF-8') + '²'.encode('latin1') + b'\n')
|
sys.stdout.buffer.write('☃'.encode('UTF-8') + '²'.encode('latin1') + b'\n')
|
||||||
|
|
@ -1,11 +1,8 @@
|
||||||
from setuptools import find_packages
|
|
||||||
from setuptools import setup
|
from setuptools import setup
|
||||||
|
|
||||||
setup(
|
setup(
|
||||||
name='python3_hook',
|
name='python3_hook',
|
||||||
version='0.0.0',
|
version='0.0.0',
|
||||||
packages=find_packages('.'),
|
py_modules=['python3_hook'],
|
||||||
entry_points={
|
entry_points={'console_scripts': ['python3-hook=python3_hook:main']},
|
||||||
'console_scripts': ['python3-hook = python3_hook.main:func'],
|
|
||||||
},
|
|
||||||
)
|
)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue