Updated code quality class doc string, import ignore & comment spaces in setup.py #1817

Merged
kdcis merged 3 commits from v0.6-codequality-setup into v0.6 2021-09-30 13:48:18 +02:00

View File

@ -5,6 +5,7 @@ import platform
import shutil
import sys
from importlib import import_module
from setuptools import setup, Extension
from setuptools.command.install import install
@ -27,6 +28,8 @@ EXTRAS_REQUIRE = {
class InstallCmd(install):
"""Custom setuptools install command preparing icons"""
def run(self):
# prepare icons directories
try:
@ -84,7 +87,7 @@ if __name__ == "__main__":
"msgpack-python" if msgpack.version[:2] < (0, 6) else "msgpack")
except ImportError:
try:
import umsgpack
import_module('umsgpack')
installRequires.append("umsgpack")
except ImportError:
packages += ['pybitmessage.fallback.umsgpack']
@ -115,11 +118,8 @@ if __name__ == "__main__":
long_description=README,
license='MIT',
# TODO: add author info
#author='',
#author_email='',
url='https://bitmessage.org',
# TODO: add keywords
#keywords='',
install_requires=installRequires,
tests_require=requirements,
test_suite='tests.unittest_discover',