Skip to content

Commit 65259c1

Browse files
committed
fix read
1 parent 045c6b2 commit 65259c1

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

setup.py

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,15 @@
1-
from setuptools import setup, find_packages
1+
import os
2+
3+
from setuptools import find_packages, setup
24

35
import versioneer
46

7+
rootpath = os.path.dirname(os.path.abspath(__file__))
8+
9+
10+
def read(*parts):
11+
return open(os.path.join(rootpath, *parts), "r").read()
12+
513

614
setup(
715
name="stdlib-list",
@@ -13,7 +21,7 @@
1321
install_requires=["functools32;python_version<'3.2'"],
1422
extras_require={"develop": ["sphinx"]},
1523
description="A list of Python Standard Libraries (2.6-7, 3.2-8).",
16-
long_description=f'{read("README.md")}',
24+
long_description="{}".format(read("README.md")),
1725
long_description_content_type="text/markdown",
1826
include_package_data=True,
1927
packages=find_packages(),

0 commit comments

Comments
 (0)