-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix LF line ending in all project files.
Some of the project file still uses CRLF as line ending. Modify all line endings to LF.
- Loading branch information
Cedric Zhuang
committed
Jan 17, 2017
1 parent
055118d
commit 460d446
Showing
424 changed files
with
73,470 additions
and
73,470 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,27 @@ | ||
# Binaries | ||
*,cover | ||
*.pyc | ||
*.lck | ||
.tox/ | ||
.env/ | ||
build/ | ||
dist/ | ||
*.egg-info/ | ||
.eggs/ | ||
docs/_build/doctrees/ | ||
.cache | ||
storops-*/ | ||
|
||
# IDE related | ||
.idea/ | ||
.swp | ||
|
||
# tests | ||
junit-result.xml | ||
coverage.xml | ||
clover.xml | ||
htmlcov/ | ||
.coverage | ||
.coverage.* | ||
logs/ | ||
*_names.json | ||
# Binaries | ||
*,cover | ||
*.pyc | ||
*.lck | ||
.tox/ | ||
.env/ | ||
build/ | ||
dist/ | ||
*.egg-info/ | ||
.eggs/ | ||
docs/_build/doctrees/ | ||
.cache | ||
storops-*/ | ||
|
||
# IDE related | ||
.idea/ | ||
.swp | ||
|
||
# tests | ||
junit-result.xml | ||
coverage.xml | ||
clover.xml | ||
htmlcov/ | ||
.coverage | ||
.coverage.* | ||
logs/ | ||
*_names.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
include *.md | ||
include *.cfg | ||
include *.rst | ||
include *.txt | ||
recursive-include storops *.yaml | ||
include *.md | ||
include *.cfg | ||
include *.rst | ||
include *.txt | ||
recursive-include storops *.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
[run] | ||
branch = True | ||
source = storops | ||
|
||
[report] | ||
|
||
|
||
[xml] | ||
[run] | ||
branch = True | ||
source = storops | ||
|
||
[report] | ||
|
||
|
||
[xml] | ||
output = coverage.xml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
future>=0.15.1 | ||
paramiko>=1.13.0 | ||
python-dateutil>=2.4.2 | ||
PyYAML>=3.11 | ||
requests!=2.9.0,>=2.8.1 | ||
retryz>=0.1.8 | ||
cachez>=0.1.0 | ||
six>=1.9.0 | ||
bitmath>=1.3.0 | ||
queuelib>=1.4.2 | ||
future>=0.15.1 | ||
paramiko>=1.13.0 | ||
python-dateutil>=2.4.2 | ||
PyYAML>=3.11 | ||
requests!=2.9.0,>=2.8.1 | ||
retryz>=0.1.8 | ||
cachez>=0.1.0 | ||
six>=1.9.0 | ||
bitmath>=1.3.0 | ||
queuelib>=1.4.2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,99 +1,99 @@ | ||
# coding=utf-8 | ||
# Copyright (c) 2015 EMC Corporation. | ||
# All Rights Reserved. | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); you may | ||
# not use this file except in compliance with the License. You may obtain | ||
# a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT | ||
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the | ||
# License for the specific language governing permissions and limitations | ||
# under the License. | ||
|
||
from __future__ import unicode_literals | ||
|
||
import io | ||
import os | ||
import re | ||
import sys | ||
|
||
from setuptools import setup, find_packages | ||
|
||
__author__ = 'Cedric Zhuang' | ||
|
||
|
||
def version(): | ||
desc = get_long_description() | ||
ret = re.findall(r'VERSION: (.*)', desc)[0] | ||
return ret.strip() | ||
|
||
|
||
def here(filename=None): | ||
ret = os.path.abspath(os.path.dirname(__file__)) | ||
if filename is not None: | ||
ret = os.path.join(ret, filename) | ||
return ret | ||
|
||
|
||
def read(*filenames, **kwargs): | ||
encoding = kwargs.get('encoding', 'utf-8') | ||
sep = kwargs.get('sep', '\n\n') | ||
buf = [] | ||
for filename in filenames: | ||
with io.open(here(filename), encoding=encoding) as f: | ||
buf.append(f.read()) | ||
return sep.join(buf) | ||
|
||
|
||
def read_requirements(filename): | ||
with open(filename) as f: | ||
return f.read().splitlines() | ||
|
||
|
||
def install_requirements(filename): | ||
packages = read_requirements(filename) | ||
if sys.version_info < (3, 4): | ||
packages.append("enum34>=1.0.4") | ||
|
||
|
||
def get_description(): | ||
return "Python API for VNX and Unity." | ||
|
||
|
||
def get_long_description(): | ||
filename = 'README.rst' | ||
return read(filename) | ||
|
||
|
||
setup( | ||
name="storops", | ||
version=version(), | ||
author="Cedric Zhuang", | ||
author_email="cedric.zhuang@gmail.com", | ||
description=get_description(), | ||
license="Apache Software License", | ||
keywords="VNX", | ||
include_package_data=True, | ||
packages=find_packages(), | ||
platforms=['any'], | ||
long_description=get_long_description(), | ||
classifiers=[ | ||
"Programming Language :: Python", | ||
'Programming Language :: Python :: 2.7', | ||
'Programming Language :: Python :: 3.4', | ||
'Programming Language :: Python :: 3.5', | ||
'Programming Language :: Python :: 3.6', | ||
"Natural Language :: English", | ||
"Intended Audience :: Developers", | ||
"Operating System :: OS Independent", | ||
"Development Status :: 4 - Beta", | ||
"Topic :: Utilities", | ||
"License :: OSI Approved :: Apache Software License", | ||
], | ||
install_requires=read_requirements('requirements.txt'), | ||
tests_require=read_requirements('test-requirements.txt') | ||
) | ||
# coding=utf-8 | ||
# Copyright (c) 2015 EMC Corporation. | ||
# All Rights Reserved. | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); you may | ||
# not use this file except in compliance with the License. You may obtain | ||
# a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT | ||
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the | ||
# License for the specific language governing permissions and limitations | ||
# under the License. | ||
|
||
from __future__ import unicode_literals | ||
|
||
import io | ||
import os | ||
import re | ||
import sys | ||
|
||
from setuptools import setup, find_packages | ||
|
||
__author__ = 'Cedric Zhuang' | ||
|
||
|
||
def version(): | ||
desc = get_long_description() | ||
ret = re.findall(r'VERSION: (.*)', desc)[0] | ||
return ret.strip() | ||
|
||
|
||
def here(filename=None): | ||
ret = os.path.abspath(os.path.dirname(__file__)) | ||
if filename is not None: | ||
ret = os.path.join(ret, filename) | ||
return ret | ||
|
||
|
||
def read(*filenames, **kwargs): | ||
encoding = kwargs.get('encoding', 'utf-8') | ||
sep = kwargs.get('sep', '\n\n') | ||
buf = [] | ||
for filename in filenames: | ||
with io.open(here(filename), encoding=encoding) as f: | ||
buf.append(f.read()) | ||
return sep.join(buf) | ||
|
||
|
||
def read_requirements(filename): | ||
with open(filename) as f: | ||
return f.read().splitlines() | ||
|
||
|
||
def install_requirements(filename): | ||
packages = read_requirements(filename) | ||
if sys.version_info < (3, 4): | ||
packages.append("enum34>=1.0.4") | ||
|
||
|
||
def get_description(): | ||
return "Python API for VNX and Unity." | ||
|
||
|
||
def get_long_description(): | ||
filename = 'README.rst' | ||
return read(filename) | ||
|
||
|
||
setup( | ||
name="storops", | ||
version=version(), | ||
author="Cedric Zhuang", | ||
author_email="cedric.zhuang@gmail.com", | ||
description=get_description(), | ||
license="Apache Software License", | ||
keywords="VNX", | ||
include_package_data=True, | ||
packages=find_packages(), | ||
platforms=['any'], | ||
long_description=get_long_description(), | ||
classifiers=[ | ||
"Programming Language :: Python", | ||
'Programming Language :: Python :: 2.7', | ||
'Programming Language :: Python :: 3.4', | ||
'Programming Language :: Python :: 3.5', | ||
'Programming Language :: Python :: 3.6', | ||
"Natural Language :: English", | ||
"Intended Audience :: Developers", | ||
"Operating System :: OS Independent", | ||
"Development Status :: 4 - Beta", | ||
"Topic :: Utilities", | ||
"License :: OSI Approved :: Apache Software License", | ||
], | ||
install_requires=read_requirements('requirements.txt'), | ||
tests_require=read_requirements('test-requirements.txt') | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,46 +1,46 @@ | ||
# coding=utf-8 | ||
# Copyright (c) 2015 EMC Corporation. | ||
# All Rights Reserved. | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); you may | ||
# not use this file except in compliance with the License. You may obtain | ||
# a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT | ||
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the | ||
# License for the specific language governing permissions and limitations | ||
# under the License. | ||
from __future__ import unicode_literals | ||
|
||
import sys | ||
import logging | ||
|
||
from storops.unity.enums import * # noqa | ||
from storops.unity.resource.system import UnitySystem # noqa | ||
from storops.vnx.enums import * # noqa | ||
from storops.vnx.resource.system import VNXSystem # noqa | ||
|
||
__author__ = 'Cedric Zhuang' | ||
|
||
|
||
def enable_log(level=logging.DEBUG): | ||
"""Enable console logging. | ||
This is a utils method for try run with storops. | ||
:param level: log level, default to DEBUG | ||
""" | ||
logger = logging.getLogger(__name__) | ||
logger.setLevel(level) | ||
if not logger.handlers: | ||
logger.info('enabling logging to console.') | ||
logger.addHandler(logging.StreamHandler(sys.stdout)) | ||
|
||
|
||
def disable_log(): | ||
logger = logging.getLogger(__name__) | ||
logger.info('disabling logging to console.') | ||
logger.setLevel(logging.NOTSET) | ||
logger.handlers = [] | ||
# coding=utf-8 | ||
# Copyright (c) 2015 EMC Corporation. | ||
# All Rights Reserved. | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); you may | ||
# not use this file except in compliance with the License. You may obtain | ||
# a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT | ||
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the | ||
# License for the specific language governing permissions and limitations | ||
# under the License. | ||
from __future__ import unicode_literals | ||
|
||
import sys | ||
import logging | ||
|
||
from storops.unity.enums import * # noqa | ||
from storops.unity.resource.system import UnitySystem # noqa | ||
from storops.vnx.enums import * # noqa | ||
from storops.vnx.resource.system import VNXSystem # noqa | ||
|
||
__author__ = 'Cedric Zhuang' | ||
|
||
|
||
def enable_log(level=logging.DEBUG): | ||
"""Enable console logging. | ||
This is a utils method for try run with storops. | ||
:param level: log level, default to DEBUG | ||
""" | ||
logger = logging.getLogger(__name__) | ||
logger.setLevel(level) | ||
if not logger.handlers: | ||
logger.info('enabling logging to console.') | ||
logger.addHandler(logging.StreamHandler(sys.stdout)) | ||
|
||
|
||
def disable_log(): | ||
logger = logging.getLogger(__name__) | ||
logger.info('disabling logging to console.') | ||
logger.setLevel(logging.NOTSET) | ||
logger.handlers = [] |
Oops, something went wrong.