From 37a1478a976db00eb7fadd04de7a7bbb51216cff Mon Sep 17 00:00:00 2001 From: Joshua Saxby Date: Fri, 2 Nov 2018 19:36:13 +0000 Subject: [PATCH 1/2] Bump version and add dev specifier again for safety --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 996c065..ad1b675 100644 --- a/setup.py +++ b/setup.py @@ -24,7 +24,7 @@ def parse_requirements(filepath): setup( name='basest', - version='0.7.3', + version='0.7.4.dev1', description='Arbitrary base binary-to-text encoder (any base to any base)', long_description=open( os.path.join(os.path.dirname(__file__), 'README.md') From 2ac41ce6eaabb2ede2b387f9a8eeb68fedeb37e3 Mon Sep 17 00:00:00 2001 From: Joshua Saxby Date: Sat, 3 Nov 2018 03:00:50 +0000 Subject: [PATCH 2/2] Add Pytest, eventually this will replace built-in unittest completely --- Makefile | 2 +- python_requirements/test.txt | 1 + setup.cfg | 3 +++ tests/__main__.py | 21 --------------------- 4 files changed, 5 insertions(+), 22 deletions(-) delete mode 100644 tests/__main__.py diff --git a/Makefile b/Makefile index f4766d2..0cdfa87 100644 --- a/Makefile +++ b/Makefile @@ -22,7 +22,7 @@ fix-lint: .PHONY: test test: - coverage run --source='basest' tests/__main__.py + coverage run --source='basest' -m py.test .PHONY: cover cover: diff --git a/python_requirements/test.txt b/python_requirements/test.txt index 6885ad7..fc0789c 100644 --- a/python_requirements/test.txt +++ b/python_requirements/test.txt @@ -4,3 +4,4 @@ isort>=4.2,<4.3 ddt>=1.1,<1.2 coverage>=4.1,<4.2 mock>=2.0,<2.1 +pytest==3.9.3 diff --git a/setup.cfg b/setup.cfg index a9f1547..1cfdf43 100644 --- a/setup.cfg +++ b/setup.cfg @@ -3,3 +3,6 @@ universal = 1 [metadata] license-file = LICENSE + +[tool:pytest] +python_files = test_*.py diff --git a/tests/__main__.py b/tests/__main__.py deleted file mode 100644 index 7c787a8..0000000 --- a/tests/__main__.py +++ /dev/null @@ -1,21 +0,0 @@ -#!/usr/bin/env python -# -*- coding: utf-8 -*- -# -# Copyright (C) 2016, 2018, Joshua Saxby -# -# This Source Code Form is subject to the terms of the Mozilla Public -# License, v. 2.0. If a copy of the MPL was not distributed with this -# file, You can obtain one at http://mozilla.org/MPL/2.0/. -# -from __future__ import ( - absolute_import, division, print_function, unicode_literals -) - -import unittest - - -if __name__ == '__main__': - loader = unittest.TestLoader() - tests = loader.discover('.') - testRunner = unittest.runner.TextTestRunner() - testRunner.run(tests) pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy