Skip to content

Commit

Permalink
fill setup.py
Browse files Browse the repository at this point in the history
  • Loading branch information
andelf committed Jun 2, 2011
1 parent ec49868 commit 37e9458
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 10 deletions.
6 changes: 3 additions & 3 deletions api.doc.rst
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ Quickstart
print t.nick, t.text, timestamp_to_str(t.timestamp)

nba = api.user.userinfo('NBA')
for u in nba.followers(reqnum=3): # got NBA's fans
for u in nba.followers(reqnum=3): # get NBA's fans
u.follow()
break # follow only 1 fans ;)
u.unfollow() # then unfollow
Expand Down Expand Up @@ -108,11 +108,11 @@ Parser 教程

api = API(auth, parser=JSONParser())
print api.user.info()
# will got a json obj
# will be a json obj

api = API(auth, parser=XMLRawParser())
print api.user.info()
# will got '<root><data><birth_day>6</birth_da....'
# will be '<root><data><birth_day>6</birth_da....'

api = API(auth, parser=XMLDomParser())
print api.user.info()
Expand Down
33 changes: 26 additions & 7 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,33 @@
#from distutils.core import setup
from setuptools import setup, find_packages

setup(name="qqweibo",
version="0.2",
description="QQ Weibo library for python",
license="MIT",
author="andelf",
author_email="andelf@gmail.com",
setup(name = "qqweibo",
version = "0.2.1",
author = "andelf",
author_email = "andelf@gmail.com",
description = ("QQ weibo API SDK in python"),
license = "MIT",
keywords= "qq weibo library tencent microblog",
url="http://github.com/andelf/pyqqweibo",
packages = find_packages(),
keywords= "qq weibo library",
long_description = """
QQ weibo API SDK, python version.
With model parser support, cache support.
And is under active development.
NOTE: this is a thrid party SDK.
""",
classifiers = [
"Development Status :: 3 - Alpha",
"Environment :: Console",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Natural Language :: English",
"Natural Language :: Chinese (Simplified)",
"Operating System :: OS Independent",
"Programming Language :: Python :: 2.6",
"Programming Language :: Python :: 2.7",
"Topic :: Internet :: WWW/HTTP :: Dynamic Content :: CGI Tools/Libraries",
"Topic :: Utilities"
],
zip_safe = True)

0 comments on commit 37e9458

Please sign in to comment.