summaryrefslogtreecommitdiff
path: root/setup.py
diff options
context:
space:
mode:
authorptmcg <ptmcg@austin.rr.com>2019-11-03 20:46:37 -0600
committerptmcg <ptmcg@austin.rr.com>2019-11-03 20:46:37 -0600
commit021888d2686a498e3208543ab9eeca3c146848d3 (patch)
tree43497c5765d7f07e8fc1ccf0d1c9794688355d8c /setup.py
parente40c1df06372654cf80c24d1a6e957d26603e53c (diff)
downloadpyparsing-git-021888d2686a498e3208543ab9eeca3c146848d3.tar.gz
Updates for 2.4.3 release - use README.rst body instead of pyparsing docstring for PyPI compatibility
Diffstat (limited to 'setup.py')
-rw-r--r--setup.py10
1 files changed, 9 insertions, 1 deletions
diff --git a/setup.py b/setup.py
index 092e5f8..60ac281 100644
--- a/setup.py
+++ b/setup.py
@@ -3,7 +3,15 @@
"""Setup script for the pyparsing module distribution."""
from setuptools import setup
-from pyparsing import __version__ as pyparsing_version, __doc__ as pyparsing_main_doc
+from pyparsing import __version__ as pyparsing_version
+
+# The directory containing this file
+import pathlib
+HERE = pathlib.Path(__file__).parent
+
+# The text of the README file
+with (HERE / "README.rst").open() as README:
+ pyparsing_main_doc = README.read()
modules = ["pyparsing",]