From 3b05c07c050d5eade52b0fc92e9b4820b864298f Mon Sep 17 00:00:00 2001 From: bxdd Date: Tue, 29 Sep 2020 02:41:58 +0800 Subject: [PATCH] add long_description --- README.md | 2 +- setup.py | 18 ++++++++++++++---- 2 files changed, 15 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index bf45a4c92..92ddab9be 100644 --- a/README.md +++ b/README.md @@ -249,4 +249,4 @@ provided by the bot. You will only need to do this once across all repos using o This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/). For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or -contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments. +contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments. \ No newline at end of file diff --git a/setup.py b/setup.py index dbdb82951..c9bf19b9a 100644 --- a/setup.py +++ b/setup.py @@ -9,10 +9,10 @@ import numpy from setuptools import find_packages, setup, Extension # Package meta-data. -NAME = "qlib" +NAME = "pyqlib" DESCRIPTION = "A Quantitative-research Platform" REQUIRES_PYTHON = ">=3.5.0" -VERSION = "0.5.0.dev7" +VERSION = "0.5.0.dev6" # Detect Cython try: @@ -61,7 +61,9 @@ NUMPY_INCLUDE = numpy.get_include() here = os.path.abspath(os.path.dirname(__file__)) -long_description = "TODO: to be completed" +with open(os.path.join(here, 'README.md'), encoding='utf-8') as f: + long_description = f.read() + # Cython Extensions extensions = [ @@ -83,8 +85,11 @@ extensions = [ setup( name=NAME, version=VERSION, + license = "MIT Licence", + url = "https://github.com/microsoft/qlib", description=DESCRIPTION, long_description=long_description, + long_description_content_type='text/markdown', python_requires=REQUIRES_PYTHON, packages=find_packages(exclude=("tests",)), # if your package is a single module, use this instead of 'packages': @@ -102,9 +107,14 @@ setup( # Trove classifiers # Full list: https://pypi.python.org/pypi?%3Aaction=list_classifiers # 'License :: OSI Approved :: MIT License', + "Operating System :: POSIX :: Linux", + "Operating System :: Microsoft :: Windows", + "License :: OSI Approved :: MIT License", "Development Status :: 3 - Alpha", "Programming Language :: Python", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.6", + "Programming Language :: Python :: 3.7", + "Programming Language :: Python :: 3.8", ], -) +) \ No newline at end of file