Commit b5d0e42d authored by hupantingxue's avatar hupantingxue

Merge pull request #16 from Rejown/master

fixes jpush/jpush-api-python-client#15
parents 671d06dd 334a449f
......@@ -8,7 +8,6 @@ python:
# command to install dependencies
install:
- pip install requests
- pip install .
# command to run tests
......
......@@ -18,15 +18,6 @@ JPush Rest API Documents: `http://docs.jpush.cn/display/dev/REST+API <http://doc
You can download the latest release file here: `Releases <https://github.com/jpush/jpush-api-python-client/releases>`_
------------
Dependencies
------------
You need to install requests, the python http library, to use jpush python client.
.. code-block:: sh
$ sudo pip install requests
------------
Installation
------------
......
# -*- coding: utf-8 -*-
import re
import ast
try:
from setuptools import setup
except (ImportError):
from distutils.core import setup
from jpush import __version__
_version_re = re.compile(r'__version__\s+=\s+(.*)')
with open('jpush/__init__.py', 'rb') as f:
version = str(ast.literal_eval(_version_re.search(
f.read().decode('utf-8')).group(1)))
setup(
name='jpush',
version=__version__,
version=version,
description='JPush\'s officially supported Python client library',
keywords=('JPush', 'JPush API', 'Android Push', 'iOS Push'),
license='MIT License',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment