| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -5,7 +5,7 @@ | |||
| 5 | 5 | import sys | |
| 6 | 6 | ||
| 7 | 7 | ||
| 8 | - def func(): | ||
| 8 | + def main(): | ||
| 9 | 9 | # Intentionally write mixed encoding to the output. This should not crash | |
| 10 | 10 | # pre-commit and should write bytes to the output. | |
| 11 | 11 | sys.stdout.buffer.write('☃'.encode('UTF-8') + '²'.encode('latin1') + b'\n') | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,11 +1,8 @@ | |||
| 1 | - from setuptools import find_packages | ||
| 2 | 1 | from setuptools import setup | |
| 3 | 2 | ||
| 4 | 3 | setup( | |
| 5 | 4 | name='python3_hook', | |
| 6 | 5 | version='0.0.0', | |
| 7 | - packages=find_packages('.'), | ||
| 8 | - entry_points={ | ||
| 9 | - 'console_scripts': ['python3-hook = python3_hook.main:func'], | ||
| 10 | - }, | ||
| 6 | + py_modules=['python3_hook'], | ||
| 7 | + entry_points={'console_scripts': ['python3-hook=python3_hook:main']}, | ||
| 11 | 8 | ) | |
| Back | FazBrowse Home | New Git URL |
0 commit comments