Commit 7556372e authored by Rejown Xu's avatar Rejown Xu

better way for get version. jpush/jpush-api-python-client#15

parent 832fdcbc
......@@ -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
__version__ = '3.0.2'
_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