Skip to content

Commit

Permalink
Correctly load README.md in setup.py
Browse files Browse the repository at this point in the history
  • Loading branch information
tomtung committed Aug 23, 2019
1 parent c26eeca commit b918980
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from setuptools import setup
from os import path


def build_native(spec):
Expand All @@ -13,6 +14,12 @@ def build_native(spec):
)


def load_readme():
this_dir = path.abspath(path.dirname(__file__))
with open(path.join(this_dir, "README.md"), encoding="utf-8") as f:
return f.read()


setup(
name="omikuji",
version="0.1.2",
Expand All @@ -22,7 +29,7 @@ def build_native(spec):
"Python binding to Omikuji, an efficient implementation of Partioned Label Trees and its variations "
"for extreme multi-label classification"
),
long_description="README.md",
long_description=load_readme(),
long_description_content_type="text/markdown",
python_requires=">=3.5",
url="https://github.com/tomtung/omikuji",
Expand Down

0 comments on commit b918980

Please sign in to comment.