forked from jpush/jpush-api-python-client
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
40 lines (34 loc) · 1.07 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# -*- coding: utf-8 -*-
import re
import ast
try:
from setuptools import setup
except (ImportError):
from distutils.core import setup
_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,
description='JPush\'s officially supported Python client library',
keywords=('JPush', 'JPush API', 'Android Push', 'iOS Push'),
license='MIT License',
long_description=open("README.rst", "r").read(),
url='https://github.com/jpush/jpush-api-python-client',
author='jpush',
author_email='[email protected]',
packages=['jpush', 'jpush.push', 'jpush.device'],
platforms='any',
classifiers=[
'Environment :: Console',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
],
install_requires=[
'requests>=1.2',
],
)