-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #47 from Chyroc/feature/upload-to-pypi
添加安装说明
- Loading branch information
Showing
3 changed files
with
37 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,35 @@ | ||
# -*- coding: utf-8 -*- | ||
|
||
|
||
from __future__ import with_statement | ||
|
||
import sys | ||
if sys.version_info < (2, 5): | ||
sys.exit('Python 2.5 or greater is required.') | ||
|
||
try: | ||
from setuptools import setup | ||
except ImportError: | ||
from distutils.core import setup | ||
|
||
|
||
from setuptools import setup, find_packages | ||
from codecs import open | ||
from os import path | ||
import wechatsogou | ||
|
||
try: | ||
from pypandoc import convert | ||
read_md = lambda f: convert(f, 'rst') | ||
except ImportError: | ||
print("warning: pypandoc module not found, could not convert Markdown to RST") | ||
read_md = lambda f: open(f, 'r').read() | ||
|
||
setup(name='wechatsogou', | ||
version=wechatsogou.__version__, | ||
description='api for wechat mp with sogou.', | ||
long_description=read_md('README.md'), | ||
author='Chyroc Chen', | ||
author_email='[email protected]', | ||
keywords='python web wechat sogou requests', | ||
url='https://github.com/Chyroc/WechatSogou', | ||
include_package_data=True, | ||
packages=['wechatsogou'], | ||
license=license, | ||
platforms=['any'], | ||
classifiers=[] | ||
) | ||
here = path.abspath(path.dirname(__file__)) | ||
|
||
with open(path.join(here, 'README.rst'), encoding='utf-8') as f: | ||
long_description = f.read() | ||
|
||
setup( | ||
name='wechatsogou', | ||
|
||
version=wechatsogou.__version__, | ||
|
||
description='api for wechat mp with sogou.', | ||
long_description=long_description, | ||
|
||
url='https://github.com/Chyroc/WechatSogou', | ||
|
||
author='Chyroc Chen', | ||
author_email='[email protected]', | ||
|
||
license='MIT', | ||
|
||
keywords='python web wechat sogou api weixin', | ||
|
||
packages=find_packages(), | ||
|
||
install_requires=['requests'], | ||
|
||
extras_require={}, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,4 +5,4 @@ | |
|
||
__all__ = ['WechatSogouApi', 'WechatCache'] | ||
|
||
__version__ = "2.0.0" | ||
__version__ = "2.0.1" |