summaryrefslogtreecommitdiff
path: root/setup.py
diff options
context:
space:
mode:
authorPaul McGuire <ptmcg@users.noreply.github.com>2019-11-18 22:41:40 -0600
committerGitHub <noreply@github.com>2019-11-18 22:41:40 -0600
commit0b398062710dc00b952636bcf7b7933f74f125da (patch)
treeb3f8a2300d1a1669a94afbf90b7915915df8e406 /setup.py
parentbea48a41d40f1c37bea7a718cc06e9b858c8ccbf (diff)
downloadpyparsing-git-0b398062710dc00b952636bcf7b7933f74f125da.tar.gz
Break up pyparsing.py monolith into sub-modules in a pyparsing package (#162)
* Break up pyparsing.py monolith into sub-modules in a pyparsing package * Convert relative imports to absolutes * Reference submodule pyparsing in setup.py modules * Remove recursive import of pyparsing from setup.py * Black updates * setup.py updates - packages vs. modules. use .dev1 for the version
Diffstat (limited to 'setup.py')
-rw-r--r--setup.py16
1 files changed, 12 insertions, 4 deletions
diff --git a/setup.py b/setup.py
index e536170..cd064d1 100644
--- a/setup.py
+++ b/setup.py
@@ -6,23 +6,31 @@ try:
from setuptools import setup
except ImportError:
from distutils.core import setup
-from pyparsing import __version__ as pyparsing_version, __doc__ as pyparsing_description
+import io
-modules = [
+# The text of the README file
+README_name = __file__.replace("setup.py", "README.rst")
+with io.open(README_name, encoding="utf8") as README:
+ pyparsing_main_doc = README.read()
+
+packages = [
"pyparsing",
]
+pyparsing_version = "3.0.0.dev1"
+
setup( # Distribution meta-data
name="pyparsing",
version=pyparsing_version,
description="Python parsing module",
- long_description=pyparsing_description,
+ long_description=pyparsing_main_doc,
+ long_description_content_type="text/x-rst",
author="Paul McGuire",
author_email="ptmcg@users.sourceforge.net",
url="https://github.com/pyparsing/pyparsing/",
download_url="https://pypi.org/project/pyparsing/",
license="MIT License",
- py_modules=modules,
+ packages=packages,
python_requires=">=3.5",
classifiers=[
"Development Status :: 5 - Production/Stable",