This repository has been archived by the owner on Jun 22, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed auto-generated readme encoding (setup.py)
- Loading branch information
Alexander Akhmetov
committed
Feb 28, 2019
1 parent
21bdba5
commit 926bd36
Showing
1 changed file
with
6 additions
and
14 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,4 +1,4 @@ | ||
#!/usr/bin/env python | ||
#!/usr/bin/env python3 | ||
import os | ||
import re | ||
from distutils.core import setup | ||
|
@@ -9,13 +9,14 @@ def get_version(package): | |
Returns version of a package (`__version__` in `init.py`). | ||
""" | ||
init_py = open(os.path.join(package, '__init__.py')).read() | ||
|
||
return re.match("__version__ = ['\"]([^'\"]+)['\"]", init_py).group(1) | ||
|
||
|
||
version = get_version('shortcuts') | ||
|
||
|
||
with open('README.md', 'r') as f: | ||
with open('README.md', 'r', encoding='utf8') as f: | ||
readme = f.read() | ||
|
||
|
||
|
@@ -29,16 +30,7 @@ def get_version(package): | |
author_email='[email protected]', | ||
url='https://github.com/alexander-akhmetov/python-shortcuts', | ||
python_requires="~=3.6", | ||
packages=[ | ||
'shortcuts', | ||
'shortcuts.actions', | ||
], | ||
install_requires=[ | ||
'toml', | ||
], | ||
entry_points={ | ||
'console_scripts': [ | ||
'shortcuts = shortcuts.cli:main', | ||
], | ||
}, | ||
packages=['shortcuts', 'shortcuts.actions'], | ||
install_requires=['toml'], | ||
entry_points={'console_scripts': ['shortcuts = shortcuts.cli:main']}, | ||
) |