|
1 | | -""" setup """ |
| 1 | +''' setup ''' |
2 | 2 |
|
3 | 3 | import setuptools |
4 | 4 |
|
5 | | -with open("README.md", "r") as fh: |
| 5 | +with open('README.md', 'r') as fh: |
6 | 6 | long_description = fh.read() |
7 | 7 |
|
| 8 | +version = '0.0.0' |
| 9 | +with open('VERSION', 'r') as fh: |
| 10 | + version = fh.readline() |
| 11 | + |
8 | 12 | setuptools.setup( |
9 | | - name="wechaty", |
10 | | - version="0.0.2", |
11 | | - author="Huan LI", |
12 | | - author_email="zixia@zixia.net", |
13 | | - description="Wechaty is a Bot SDK for Wechat Personal Account", |
| 13 | + name='wechaty', |
| 14 | + version=version, |
| 15 | + author='Huan LI (李卓桓)', |
| 16 | + author_email='zixia@zixia.net', |
| 17 | + description='Wechaty is a Bot SDK for Wechat Personal Account', |
14 | 18 | long_description=long_description, |
15 | | - long_description_content_type="text/markdown", |
16 | | - url="https://github.com/Chatie/python-wechaty", |
| 19 | + long_description_content_type='text/markdown', |
| 20 | + url='https://github.com/Chatie/python-wechaty', |
17 | 21 | packages=setuptools.find_packages('src'), |
18 | 22 | package_dir={'': 'src'}, |
19 | 23 | classifiers=[ |
20 | | - "Programming Language :: Python :: 3", |
21 | | - "License :: OSI Approved :: Apache Software License", |
22 | | - "Operating System :: OS Independent", |
| 24 | + 'Programming Language :: Python :: 3', |
| 25 | + 'License :: OSI Approved :: Apache Software License', |
| 26 | + 'Operating System :: OS Independent', |
23 | 27 | ], |
24 | 28 | ) |
0 commit comments