From 53ff137b26816d64bf002baf269dbf97b601a3ca Mon Sep 17 00:00:00 2001 From: Shelwin Xiao <562687381@qq.com> Date: Sun, 24 Nov 2019 08:09:17 +0800 Subject: [PATCH] fix pypi description missing bug --- README.md | 2 +- partition/__init__.py | 2 +- setup.py | 6 ++++-- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index b450472..94a60e3 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@

# partition -```partiton` is a Python algorithm library which provides efficient algorithms for the [number partition problem](https://en.wikipedia.org/wiki/Partition_problem). You can also use it from shell command. These algorithms have many applications. One typical one is for [parallel software testing](https://mp.weixin.qq.com/s/oq3-mJ7cA6f_lK0SviMVyw). Currently, the following three algorithms are supported: +`partiton` is a Python algorithm library which provides efficient algorithms for the [number partition problem](https://en.wikipedia.org/wiki/Partition_problem). You can also use it from shell command. These algorithms have many applications. One typical one is for [parallel software testing](https://mp.weixin.qq.com/s/oq3-mJ7cA6f_lK0SviMVyw). Currently, the following three algorithms are supported: - greedy algorithm, which is a benchmark algorithm with simple login - differencing algorithm, a.k.a. Karmarkar–Karp(KK) algorithm - dynamic programming(DP) algorithm, which is optimal for scenarios where the size of integers is not too large diff --git a/partition/__init__.py b/partition/__init__.py index 3dc1f76..b3f4756 100644 --- a/partition/__init__.py +++ b/partition/__init__.py @@ -1 +1 @@ -__version__ = "0.1.0" +__version__ = "0.1.2" diff --git a/setup.py b/setup.py index 73b9cb2..a676a79 100644 --- a/setup.py +++ b/setup.py @@ -1,10 +1,10 @@ """partition: Python number partition algorithm library """ - +import io from setuptools import setup -version = "0.1.0" +version = "0.1.2" setup( include_package_data=True, @@ -20,6 +20,8 @@ python_requires='>=2.6, !=3.0.*, !=3.1.*, !=3.2.*, <4', license='MIT', author='slxiao', + long_description=io.open('README.md', encoding='utf8').read(), + long_description_content_type='text/markdown', author_email='shliangxiao@gmail.com', description='Python number partition algorithm library', classifiers=[