This is an automated email from the ASF dual-hosted git repository.
jking pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/thrift.git
The following commit(s) were added to refs/heads/master by this push:
new 7ecc9ef minor changes to make pypi distribution look better (long
desc)
7ecc9ef is described below
commit 7ecc9ef02110b66e6a734ff5c11e103c4b9fbc1e
Author: James E. King III <[email protected]>
AuthorDate: Sat Sep 25 16:47:05 2021 -0400
minor changes to make pypi distribution look better (long desc)
---
lib/py/setup.cfg | 2 +-
lib/py/setup.py | 16 ++++++++++++++++
2 files changed, 17 insertions(+), 1 deletion(-)
diff --git a/lib/py/setup.cfg b/lib/py/setup.cfg
index c9ed0ae..3b1b026 100644
--- a/lib/py/setup.cfg
+++ b/lib/py/setup.cfg
@@ -1,6 +1,6 @@
[install]
optimize = 1
[metadata]
-description-file = README.md
+description_file = README.md
[flake8]
max-line-length = 100
diff --git a/lib/py/setup.py b/lib/py/setup.py
index 0db9731..7cd4a2e 100644
--- a/lib/py/setup.py
+++ b/lib/py/setup.py
@@ -62,6 +62,20 @@ class ve_build_ext(build_ext):
raise BuildFailed()
+def read_file(path):
+ """
+ Return the contents of a file
+
+ Arguments:
+ - path: path to the file
+
+ Returns:
+ - contents of the file
+ """
+ with open(path, "r") as desc_file:
+ return desc_file.read().rstrip()
+
+
def run_setup(with_binary):
if with_binary:
extensions = dict(
@@ -93,6 +107,8 @@ def run_setup(with_binary):
setup(name='thrift',
version='0.16.0',
description='Python bindings for the Apache Thrift RPC system',
+ long_description=read_file("README.md"),
+ long_description_content_type="text/markdown",
author='Apache Thrift Developers',
author_email='[email protected]',
url='http://thrift.apache.org',