From 2a71c0f25aeb58644f3cfd993b2ba7f210e6ffc0 Mon Sep 17 00:00:00 2001 From: jiajunsu Date: Wed, 9 Nov 2022 10:53:30 +0800 Subject: [PATCH] Support publish to pypi.org --- setup.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 803c1ed..c8b3eba 100644 --- a/setup.py +++ b/setup.py @@ -1,4 +1,5 @@ import os +from pathlib import Path import re from setuptools import setup @@ -7,11 +8,15 @@ from setuptools import setup with open(os.path.join(os.path.dirname(__file__), "opengauss_sqlalchemy", "__init__.py")) as fd: VERSION = re.compile(r'.*__version__ = "(.*?)"', re.S).match(fd.read()).group(1) +long_description = (Path(__file__).parent/ "README.md").read_text() + setup( name="opengauss-sqlalchemy", version=VERSION, description="OpenGauss Dialect for SQLAlchemy", + long_description=long_description, + long_description_content_type="text/markdown", author="Jia Junsu", author_email="jiajunsu@huawei.com", url="https://gitee.com/opengauss/openGauss-sqlalchemy", @@ -19,7 +24,7 @@ setup( classifiers=[ "Development Status :: 4 - Beta", "Intended Audience :: Developers", - "License :: OSI Approved :: MIT", + "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2", -- Gitee