|
| 1 | +#!/usr/bin/env python |
| 2 | +# -*- coding: utf-8 -*- |
| 3 | +""" |
| 4 | +File: setup.py |
| 5 | +Author: huxuan |
| 6 | +Email: i(at)huxuan.org |
| 7 | +Description: Python packaging for wxpusher. |
| 8 | +""" |
| 9 | +from setuptools import setup |
| 10 | + |
| 11 | +CLASSIFIERS = [ |
| 12 | + 'Development Status :: 4 - Beta', |
| 13 | + 'Intended Audience :: Developers', |
| 14 | + 'License :: OSI Approved :: Apache Software License', |
| 15 | + 'Programming Language :: Python :: 3', |
| 16 | + 'Programming Language :: Python :: 3 :: Only', |
| 17 | + 'Topic :: Utilities' |
| 18 | +] |
| 19 | + |
| 20 | +INSTALL_REQUIRES = [ |
| 21 | + 'requests' |
| 22 | +] |
| 23 | + |
| 24 | +DEV_REQUIRES = [ |
| 25 | + 'pycodestyle', |
| 26 | + 'pyflakes', |
| 27 | + 'pylint' |
| 28 | +] |
| 29 | + |
| 30 | +TEST_REQUIRES = [ |
| 31 | + 'coverage', |
| 32 | + 'nose' |
| 33 | +] |
| 34 | + |
| 35 | +EXTRAS_REQUIRE = { |
| 36 | + 'dev': DEV_REQUIRES, |
| 37 | + 'test': TEST_REQUIRES |
| 38 | +} |
| 39 | + |
| 40 | +DESCRIPTION = ( |
| 41 | + 'WxPusher Python SDK.' |
| 42 | +) |
| 43 | + |
| 44 | + |
| 45 | +def readme(): |
| 46 | + """Parse README for long_description.""" |
| 47 | + with open('README.md') as fin: |
| 48 | + return fin.read() |
| 49 | + |
| 50 | + |
| 51 | +setup(name='wxpusher', |
| 52 | + version=open('VERSION').read().strip(), |
| 53 | + description=DESCRIPTION, |
| 54 | + long_description=readme(), |
| 55 | + long_description_content_type='text/markdown', |
| 56 | + classifiers=CLASSIFIERS, |
| 57 | + keywords='wxpusher wechat push-notification', |
| 58 | + url='https://github.com/wxpusher/wxpusher-sdk-python', |
| 59 | + author='Xuan (Sean) Hu', |
| 60 | + author_email='i+wxpusher@huxuan.org', |
| 61 | + license='Apache License 2.0', |
| 62 | + packages=['wxpusher'], |
| 63 | + install_requires=INSTALL_REQUIRES, |
| 64 | + extras_require=EXTRAS_REQUIRE, |
| 65 | + python_requires='>=3', |
| 66 | + include_package_data=True) |
0 commit comments