-
-
Notifications
You must be signed in to change notification settings - Fork 32
/
Copy pathsetup.py
64 lines (56 loc) · 1.81 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
52
53
54
55
56
57
58
59
60
61
62
63
64
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from codecs import open
import os
import sys
__title__ = 'baidupcs'
__version__ = '0.3.2'
__author__ = 'mozillazg'
__license__ = 'MIT'
__copyright__ = 'Copyright (c) 2014 mozillazg'
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
if sys.argv[-1] == 'publish':
os.system('python setup.py sdist upload')
sys.exit()
requirements = open('requirements.txt').read().decode().split('\n')
packages = [
'baidupcs',
]
def long_description():
readme = open('README.rst', encoding= 'utf-8').read()
changelog = open('CHANGELOG.rst', encoding= 'utf-8').read()
return readme + '\n\n' + changelog
setup(
name='baidupcs',
version=__version__,
description='百度个人云存储(PCS)Python SDK',
long_description=long_description(),
url='https://github.com/mozillazg/baidu-pcs-python-sdk',
download_url='https://github.com/mozillazg/baidu-pcs-python-sdk',
author=__author__,
author_email='mozillazg101@gmail.com',
license=__license__,
packages=packages,
package_data={'': ['LICENSE.txt']},
package_dir={'baidupcs': 'baidupcs'},
include_package_data=True,
install_requires=requirements,
zip_safe=False,
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Topic :: Utilities',
],
keywords='百度网盘, 百度云, SDK',
)