-
Notifications
You must be signed in to change notification settings - Fork 3
/
setup.py
60 lines (53 loc) · 1.54 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
# -*- coding: utf-8 -*-
from os.path import join, dirname
from setuptools import setup, find_packages
import sys
import re
version = ""
with open("nos/client/utils.py", "r") as fd:
version = re.search(r"^VERSION\s*=\s*[\"']([^\"']*)[\"']", fd.read(),
re.MULTILINE).group(1)
long_description = ""
with open(join(dirname(__file__), "README.rst")) as fd:
long_description = fd.read().strip()
install_requires = [
"urllib3>=1.8, <2.0",
"certifi",
]
tests_require = [
"nose",
"coverage",
"mock",
"pyaml",
"nosexcover"
]
# use external unittest for 2.6
if sys.version_info[:2] == (2, 6):
install_requires.append("unittest2")
setup(
name="nos-python-sdk",
description="NetEase Object Storage SDK",
license="MIT License",
url="https://c.163.com/",
long_description=long_description,
version=version,
author="NOS Developer",
author_email="[email protected]",
packages=find_packages(
where=".",
exclude=("test_nos*", )
),
classifiers=[
"Development Status :: 5 - Production/Stable",
"License :: OSI Approved :: MIT License",
"Intended Audience :: Developers",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 2.6",
"Programming Language :: Python :: 2.7"
],
install_requires=install_requires,
test_suite="test_nos.run_tests.run_all",
tests_require=tests_require,
)