-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathsetup.py
More file actions
51 lines (42 loc) · 1.21 KB
/
setup.py
File metadata and controls
51 lines (42 loc) · 1.21 KB
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
41
42
43
44
45
46
47
48
49
50
51
#!/usr/bin/env python
# -*-coding:utf-8-*-
import ast
import re
try:
from setuptools import setup
except:
from distutils.core import setup
_version_re = re.compile(r'__version__\s+=\s+(.*)')
with open('xinge_push/__init__.py') as f:
VERSION = ast.literal_eval(_version_re.search(
f.read().decode('utf-8')).group(1))
NAME = "xinge_push"
PACKAGES = ["xinge_push",]
DESCRIPTION = "xinge Push API for Python(http://xg.qq.com)."
LONG_DESCRIPTION = open("README.rst").read()
KEYWORDS = ["xinge", "Android Push", "iOS Push", "push"]
AUTHOR = "caofangkun"
AUTHOR_EMAIL = "caofangkun@gmail.com"
LICENSE = "MIT"
URL = "https://github.com/xingePush/xinge-api-python"
setup(
name=NAME,
version=VERSION,
description=DESCRIPTION,
long_description=LONG_DESCRIPTION,
platforms="any",
classifiers=[
'License :: OSI Approved :: MIT License',
'Programming Language :: Python',
'Intended Audience :: Developers',
'Operating System :: OS Independent',
],
keywords=KEYWORDS,
author=AUTHOR,
author_email=AUTHOR_EMAIL,
url=URL,
license=LICENSE,
packages=PACKAGES,
include_package_data=True,
zip_safe=True, install_requires=['requests']
)