ASF GitHub Bot commented on ARROW-2325:

xhochy closed pull request #1811: ARROW-2325: [Python] Update setup.py to use 
Markdown project description
URL: https://github.com/apache/arrow/pull/1811

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/dev/release/RELEASE_MANAGEMENT.md 
index 06340ab11..801072dcf 100644
--- a/dev/release/RELEASE_MANAGEMENT.md
+++ b/dev/release/RELEASE_MANAGEMENT.md
@@ -157,9 +157,15 @@ The pip binary packages (called "wheels") are generated 
from the
 * Download all wheel and tar.gz files from the new BinTray package version
-Now, you can finally upload the wheels to PyPI using the `twine` CLI tool. You
-must be permissioned on PyPI to upload here; ask Wes McKinney or Uwe Korn if
-you need help with this.
+Now, you can finally upload the wheels to PyPI using the `twine` CLI tool. 
+Please make sure you use `twine>=1.11.0`. This supports the markdown 
+long description in setup.py which also requires `setuptools>=38.6.0`. 
+`setuptools` is handled in previous steps by the `.travis.yml` and 
+`appveyor.yml` build configurations. 
+You must be permissioned on PyPI to upload here; ask Wes McKinney or Uwe Korn 
+if you need help with this.
 #### Updating conda packages
diff --git a/python/setup.py b/python/setup.py
index 91e0bb93d..61c9a75a6 100644
--- a/python/setup.py
+++ b/python/setup.py
@@ -433,11 +433,8 @@ def _move_shared_libs_unix(build_prefix, build_lib, 
     os.environ["SETUPTOOLS_SCM_PRETEND_VERSION"] = version_tag.text.replace(
         "-SNAPSHOT", "a0")
-long_description = """Apache Arrow is a columnar in-memory analytics layer
-designed to accelerate big data. It houses a set of canonical in-memory
-representations of flat and hierarchical data along with multiple
-language-bindings for structure manipulation. It also provides IPC
-and common algorithm implementations."""
+with open('README.md') as f:
+    long_description = f.read()
 class BinaryDistribution(Distribution):
@@ -494,6 +491,7 @@ def parse_version(root):
     tests_require=['pytest', 'pandas'],
     description="Python library for Apache Arrow",
+    long_description_content_type="text/markdown",
         'License :: OSI Approved :: Apache Software License',
         'Programming Language :: Python :: 2.7',


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:

> [Python] Update setup.py to use Markdown project description
> ------------------------------------------------------------
>                 Key: ARROW-2325
>                 URL: https://issues.apache.org/jira/browse/ARROW-2325
>             Project: Apache Arrow
>          Issue Type: Improvement
>          Components: Python
>            Reporter: Wes McKinney
>            Assignee: Alex Hagerman
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 0.10.0
> New stuff in PyPI 
> https://dustingram.com/articles/2018/03/16/markdown-descriptions-on-pypi

This message was sent by Atlassian JIRA

Reply via email to