From f56be8f39d1845ec7b8c7c002c49644e4347d417 Mon Sep 17 00:00:00 2001 From: Jorik de Vries Date: Mon, 8 Mar 2021 14:32:55 +0100 Subject: [PATCH] fix failing tests --- setup.py | 53 +++++++++++++++++++++++++---------------------------- 1 file changed, 25 insertions(+), 28 deletions(-) diff --git a/setup.py b/setup.py index 85fa914..5073828 100644 --- a/setup.py +++ b/setup.py @@ -7,55 +7,52 @@ """ # Always prefer setuptools over distutils -from setuptools import setup, find_packages -from os import path +from setuptools import find_packages, setup -here = path.abspath(path.dirname(__file__)) - -__author__ = 'Magnus Knutas' -VERSION = '1.3.3' +__author__ = "Magnus Knutas" +VERSION = "1.3.3" with open("README.md", "r") as fh: long_description = fh.read() -install_requires = [ - 'cryptography==3.3.2', - 'asyncssh' -] +install_requires = ["cryptography==3.3.2", "asyncssh"] tests_require = [ - 'pytest', - 'pytest-cov', - 'pytest-mock', - 'pytest-asyncio' + "pytest", + "pytest-cov", + "pytest-mock", + "pytest-asyncio", + "pytest-runner", ] extras_require = { - 'dev': ['check-manifest'], + "dev": ["check-manifest"], } +github_url = "https://github.com/kennedyshead/aioasuswrt" + setup( - name='aioasuswrt', + name="aioasuswrt", version=VERSION, - description='Api wrapper for Asuswrt https://www.asus.com/ASUSWRT/', + description="Api wrapper for Asuswrt https://www.asus.com/ASUSWRT/", long_description=long_description, long_description_content_type="text/markdown", - url='https://github.com/kennedyshead/aioasuswrt', - download_url='https://github.com/kennedyshead/aioasuswrt/archive/%s.tar.gz' % VERSION, + url=github_url, + download_url=f"{github_url}/archive/{VERSION}.tar.gz", author=__author__, - author_email='magnusknutas@gmail.com', + author_email="magnusknutas@gmail.com", license="MIT", classifiers=[ - 'Development Status :: 3 - Alpha', - 'Intended Audience :: Developers', - 'Topic :: Software Development :: Libraries', - 'License :: OSI Approved :: MIT License', - 'Programming Language :: Python :: 3', + "Development Status :: 3 - Alpha", + "Intended Audience :: Developers", + "Topic :: Software Development :: Libraries", + "License :: OSI Approved :: MIT License", + "Programming Language :: Python :: 3", ], - keywords='Asuswrt wrapper', - packages=find_packages(exclude=['contrib', 'docs', 'tests']), + keywords="Asuswrt wrapper", + packages=find_packages(exclude=["contrib", "docs", "tests"]), install_requires=install_requires, - test_suite='tests', + test_suite="tests", tests_require=tests_require, extras_require=extras_require, )