-
Notifications
You must be signed in to change notification settings - Fork 87
/
setup.py
40 lines (35 loc) · 1.15 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(),
long_description_content_type="text/markdown",
url='https://github.com/jpush/jpush-api-python-client',
author='jpush',
author_email='[email protected]',
packages=['jpush', 'jpush.push', 'jpush.device', 'jpush.report', 'jpush.schedule'],
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',
],
)