diff --git a/setup.py b/setup.py index 91f0765..5bf0905 100644 --- a/setup.py +++ b/setup.py @@ -1,48 +1,54 @@ """ Py-Tree-sitter """ - +import os import platform from setuptools import setup, Extension +base_dir = os.path.dirname(__file__) + +with open(os.path.join(base_dir, 'README.md')) as f: + long_description = f.read() setup( name = "tree_sitter", version = "0.0.8", maintainer = "Max Brunsfeld", maintainer_email = "maxbrunsfeld@gmail.com", author = "Max Brunsfeld", author_email = "maxbrunsfeld@gmail.com", url = "https://github.com/tree-sitter/py-tree-sitter", license = "MIT", platforms = ["any"], python_requires = ">=3.3", description = "Python bindings to the Tree-sitter parsing library", + long_description = long_description, + long_description_content_type = "text/markdown", classifiers = [ "License :: OSI Approved :: MIT License", "Topic :: Software Development :: Compilers", "Topic :: Text Processing :: Linguistic", ], packages = ['tree_sitter'], ext_modules = [ Extension( "tree_sitter_binding", [ "tree_sitter/core/lib/src/lib.c", "tree_sitter/binding.c", ], include_dirs = [ "tree_sitter/core/lib/include", "tree_sitter/core/lib/utf8proc", ], extra_compile_args = ( ['-std=c99'] if platform.system() != 'Windows' else None ) ) ], project_urls = { 'Source': 'https://github.com/tree-sitter/py-tree-sitter', 'Documentation': 'http://initd.org/psycopg/docs/', } )