-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
51 lines (43 loc) · 1.55 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
41
42
43
44
45
46
47
48
49
50
51
import os
import sys
from setuptools import setup
def read(file_name):
return open(os.path.join(os.path.dirname(__file__), file_name)).read()
meta = {}
exec(read('sanic_fcm/__meta__.py'), meta)
if sys.argv[-1] == 'publish':
os.system("rm dist/*.gz dist/*.whl")
os.system("git tag -a %s -m 'v%s'" % (meta['__version__'], meta['__version__']))
os.system("python setup.py sdist upload")
os.system("python setup.py bdist_wheel upload")
os.system("git push --tags")
sys.exit()
setup(
name=meta['__title__'],
version=meta['__version__'],
url=meta['__url__'],
license=meta['__license__'],
author=meta['__author__'],
author_email=meta['__email__'],
description=meta['__summary__'],
long_description=read('README.md'),
long_description_content_type='text/markdown',
platforms='all',
packages=['sanic_fcm'],
install_requires=['aiohttp>=3.4.0'],
# tests_require=['pytest'],
# test_suite="tests.get_tests",
keywords='sanic firebase fcm apns ios gcm android push notifications',
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'Operating System :: OS Independent',
'License :: OSI Approved :: MIT License',
'Topic :: Software Development :: Libraries :: Python Modules',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
]
)