Skip to content

Commit c6b0d7a

Browse files
committed
fix(setup.py): pypi metadata
1 parent 511d567 commit c6b0d7a

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

setup.py

+10-4
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
"""
1212

1313

14+
import os
1415
from setuptools import setup, find_packages # noqa: H301
1516

1617
NAME = "mux_python"
@@ -24,18 +25,23 @@
2425

2526
REQUIRES = ["urllib3 >= 1.25.3", "six >= 1.10", "python-dateutil"]
2627

28+
here = os.path.abspath(os.path.dirname(__file__))
29+
30+
def get_file_text(file_name):
31+
with open(os.path.join(here, file_name)) as in_file:
32+
return in_file.read()
33+
2734
setup(
2835
name=NAME,
2936
version=VERSION,
3037
description="Mux API",
3138
author="Mux DevEx",
3239
author_email="[email protected]",
33-
url="",
40+
url="https://github.com/muxinc/mux-python",
3441
keywords=["OpenAPI", "OpenAPI-Generator", "Mux API"],
3542
install_requires=REQUIRES,
3643
packages=find_packages(exclude=["test", "tests"]),
3744
include_package_data=True,
38-
long_description="""\
39-
Mux is how developers build online video. This API encompasses both Mux Video and Mux Data functionality to help you build your video-related projects better and faster than ever before. # noqa: E501
40-
"""
45+
long_description=get_file_text("README.md"),
46+
long_description_content_type="text/markdown",
4147
)

0 commit comments

Comments
 (0)