From fe25af11f89c22d16ad7efd68ac56be049f88fd5 Mon Sep 17 00:00:00 2001 From: Leon Morten Richter Date: Sun, 24 Apr 2022 13:57:28 +0200 Subject: [PATCH] Drop nose as a dependency and replace it with pytest --- .dcignore | 16 ---------------- Makefile | 2 +- requirements.txt | 3 ++- setup.py | 2 +- 4 files changed, 4 insertions(+), 19 deletions(-) delete mode 100644 .dcignore diff --git a/.dcignore b/.dcignore deleted file mode 100644 index 5b5f04d..0000000 --- a/.dcignore +++ /dev/null @@ -1,16 +0,0 @@ - -env/ -build/ -develop-eggs/ -dist/ -downloads/ -eggs/ -.eggs/ -lib/ -lib64/ -parts/ -sdist/ -var/ - -.venv/ -venv/ \ No newline at end of file diff --git a/Makefile b/Makefile index 34ed535..d8751e0 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,5 @@ run_tests: - nosetests -v --cover-xml --with-coverage --cover-package pyais tests/*.py + pytest --cov=pyais tests/ flake: flake8 diff --git a/requirements.txt b/requirements.txt index 66fa577..12e78c1 100644 --- a/requirements.txt +++ b/requirements.txt @@ -10,8 +10,9 @@ attrs # TEST flake8 coverage -nose mypy +pytest +pytest-cov # DEPLOY twine diff --git a/setup.py b/setup.py index b732e89..1f68769 100644 --- a/setup.py +++ b/setup.py @@ -41,7 +41,7 @@ "attrs" ], extras_require={ - 'dev': ['nose', 'mypy', 'flake8', 'coverage', 'twine', 'sphinx'] + 'dev': ['mypy', 'flake8', 'coverage', 'twine', 'sphinx', 'pytest', 'pytest-cov'] }, entry_points={ "console_scripts": [