Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
J
jpush-api-python-client
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
钟尚武
jpush-api-python-client
Commits
7556372e
Commit
7556372e
authored
Mar 03, 2015
by
Rejown Xu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
better way for get version. jpush/jpush-api-python-client#15
parent
832fdcbc
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
11 deletions
+8
-11
README.rst
README.rst
+0
-9
setup.py
setup.py
+8
-2
No files found.
README.rst
View file @
7556372e
...
...
@@ -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
------------
...
...
setup.py
View file @
7556372e
# -*- 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'
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment