fixes pylint warnings

This commit is contained in:
Moisés Guimarães
2016-11-22 10:31:14 -03:00
parent c0b59a585b
commit 0ed0672b16
9 changed files with 57 additions and 39 deletions

View File

@ -1,6 +1,8 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# setup.py
#
# Copyright (C) 2006-2016 wolfSSL Inc.
#
# This file is part of wolfSSL. (formerly known as CyaSSL)
@ -23,20 +25,20 @@
from __future__ import absolute_import
import os
import sys
from wolfssl.__about__ import metadata
from wolfssl.__about__ import METADATA
from setuptools import setup, find_packages
os.chdir(os.path.dirname(sys.argv[0]) or ".")
long_description = open("README.rst", "rt").read().replace(
LONG_DESCRIPTION = open("README.rst", "rt").read().replace(
".. include:: LICENSING.rst\n",
open("LICENSING.rst", "rt").read()
)
info = dict(
metadata = {k[2:-2]: metadata[k] for k in metadata},
INFO = dict(
metadata={k[2:-2]: METADATA[k] for k in METADATA},
contents={
"long_description": long_description,
"long_description" : LONG_DESCRIPTION,
"package_data" : {"": ["*.txt"]},
"packages" : find_packages(),
"cffi_modules" : ["./wolfssl/build_ffi.py:ffi"],
@ -51,5 +53,5 @@ info = dict(
)
if __name__ == "__main__":
kwargs = {k:v for dct in info.values() for (k,v) in dct.items()}
setup(**kwargs)
KWARGS = {k:v for dct in INFO.values() for (k, v) in dct.items()}
setup(**KWARGS)

View File

@ -1,3 +1,5 @@
# -*- coding: utf-8 -*-
#
# test_context.py
#
# Copyright (C) 2006-2016 wolfSSL Inc.

View File

@ -1,3 +1,5 @@
# -*- coding: utf-8 -*-
#
# __about__.py
#
# Copyright (C) 2006-2016 wolfSSL Inc.
@ -18,7 +20,7 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
metadata = dict(
METADATA = dict(
__name__="wolfssl",
__version__="0.1.0",
__license__="GPLv2 or Commercial License",
@ -40,6 +42,6 @@ metadata = dict(
]
)
globals().update(metadata)
globals().update(METADATA)
__all__ = list(metadata.keys())
__all__ = list(METADATA.keys())

View File

@ -1,3 +1,5 @@
# -*- coding: utf-8 -*-
#
# _context.py
#
# Copyright (C) 2006-2016 wolfSSL Inc.

View File

@ -1,3 +1,5 @@
# -*- coding: utf-8 -*-
#
# _exceptions.py
#
# Copyright (C) 2006-2016 wolfSSL Inc.

View File

@ -1,3 +1,5 @@
# -*- coding: utf-8 -*-
#
# _memory.py
#
# Copyright (C) 2006-2016 wolfSSL Inc.

View File

@ -1,3 +1,5 @@
# -*- coding: utf-8 -*-
#
# _methods.py
#
# Copyright (C) 2006-2016 wolfSSL Inc.

View File

@ -1,3 +1,5 @@
# -*- coding: utf-8 -*-
#
# build_ffi.py
#
# Copyright (C) 2006-2016 wolfSSL Inc.

View File

@ -1,3 +1,5 @@
# -*- coding: utf-8 -*-
#
# utils.py
#
# Copyright (C) 2006-2016 wolfSSL Inc.