Skip to content

Commit

Permalink
Merge pull request #47 from Chyroc/feature/upload-to-pypi
Browse files Browse the repository at this point in the history
添加安装说明
  • Loading branch information
chyroc authored Dec 18, 2016
2 parents d53c628 + 8c4f235 commit d09ac79
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 35 deletions.
4 changes: 4 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@

参见[test.py](https://github.com/Chyroc/WechatSogou/blob/master/test.py)

## 安装

pip install wechatsogou

## 日志

import logging
Expand Down
66 changes: 32 additions & 34 deletions setup.py
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={},
)
2 changes: 1 addition & 1 deletion wechatsogou/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@

__all__ = ['WechatSogouApi', 'WechatCache']

__version__ = "2.0.0"
__version__ = "2.0.1"

0 comments on commit d09ac79

Please sign in to comment.