Skip to content
This repository has been archived by the owner on Jun 22, 2024. It is now read-only.

Commit

Permalink
Fixed auto-generated readme encoding (setup.py)
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Akhmetov committed Feb 28, 2019
1 parent 21bdba5 commit 926bd36
Showing 1 changed file with 6 additions and 14 deletions.
20 changes: 6 additions & 14 deletions setup.py
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
Expand All @@ -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()


Expand All @@ -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']},
)

0 comments on commit 926bd36

Please sign in to comment.