Skip to content

Commit eea39c6

Browse files
committed
setup.py tweak
1 parent 5e4f903 commit eea39c6

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

setup.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
from setuptools import setup
22

3-
import io
4-
53
main_ns = {}
6-
exec(open('dash_auth/version.py').read(), main_ns)
4+
with open('dash_auth/version.py', encoding='utf-8') as f:
5+
exec(f.read(), main_ns)
6+
7+
with open('README.md', encoding='utf-8') as f:
8+
long_description = f.read()
79

810
setup(
911
name='dash_auth',
@@ -13,7 +15,7 @@
1315
packages=['dash_auth'],
1416
license='MIT',
1517
description='Dash Authorization Package.',
16-
long_description=io.open('README.md', encoding='utf-8').read(),
18+
long_description=long_description,
1719
install_requires=[
1820
'dash>=1.1.1'
1921
],

0 commit comments

Comments
 (0)