From 78bf413e774b94156880f7b85dfce8e2f9d1a8e8 Mon Sep 17 00:00:00 2001 From: Tomasz Swiecicki Date: Sat, 20 Jun 2020 14:10:49 +0200 Subject: [PATCH 1/4] bump version --- setup.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 1affdb7..da7b0ec 100644 --- a/setup.py +++ b/setup.py @@ -20,7 +20,7 @@ def run_tests(self): setup( name='RandomWords', - version='0.2.1', + version='0.2.2', author='Tomek Święcicki', author_email='tomislater@gmail.com', packages=['random_words'], @@ -39,6 +39,8 @@ def run_tests(self): 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', 'Programming Language :: Python :: 3.6', + 'Programming Language :: Python :: 3.7', + 'Programming Language :: Python :: 3.8', 'Topic :: Software Development :: Libraries :: Python Modules', ], include_package_data=True, From 0a361cbda0c7dd06bebb90727a235fff56ba1a84 Mon Sep 17 00:00:00 2001 From: Tomasz Swiecicki Date: Sat, 20 Jun 2020 14:12:03 +0200 Subject: [PATCH 2/4] add 3.7 and 3.8 to travis --- .travis.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.travis.yml b/.travis.yml index 2294986..41eaca9 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,6 +5,8 @@ python: - '3.4' - '3.5' - '3.6' +- '3.7' +- '3.8' install: - python setup.py install - pip install coverage From af5ff2d23d38d37712dfbf7185fc704b6c4185a8 Mon Sep 17 00:00:00 2001 From: Tomasz Swiecicki Date: Sat, 20 Jun 2020 14:16:06 +0200 Subject: [PATCH 3/4] remove support for 3.3 --- .travis.yml | 1 - CHANGES.txt | 1 + setup.py | 1 - 3 files changed, 1 insertion(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 41eaca9..0377df2 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,7 +1,6 @@ language: python python: - '2.7' -- '3.3' - '3.4' - '3.5' - '3.6' diff --git a/CHANGES.txt b/CHANGES.txt index 0352750..0f9469c 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -1,3 +1,4 @@ +v0.2.2, 2020-06-20 -- Add python 3.7 and 3.8 to travis (remove 3.3) v0.2.1, 2017-03-04 -- Add python 3.6 to travis (remove 2.6 and 3.3) v0.2.0, 2016-03-09 -- Remove ujson for json v0.1.13, 2016-02-09 -- Add py3.4 and py3.5 to tests. Deploy on pypi via travis. diff --git a/setup.py b/setup.py index da7b0ec..200b70e 100644 --- a/setup.py +++ b/setup.py @@ -35,7 +35,6 @@ def run_tests(self): 'Natural Language :: English', 'Development Status :: 5 - Production/Stable', 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3.3', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', 'Programming Language :: Python :: 3.6', From 177ca177dff38faa4cd8714eecc53ed1a54d9468 Mon Sep 17 00:00:00 2001 From: Tomasz Swiecicki Date: Sat, 20 Jun 2020 14:24:41 +0200 Subject: [PATCH 4/4] add test for checking if letter is a string --- random_words/test/test_random_words.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/random_words/test/test_random_words.py b/random_words/test/test_random_words.py index 5b8dd60..a158d5a 100644 --- a/random_words/test/test_random_words.py +++ b/random_words/test/test_random_words.py @@ -109,6 +109,9 @@ def test_random_nicks_count(self): for letter in self.letters: pytest.raises( ValueError, self.rn.random_nicks, letter, count=len_random) + + def test_random_nicks_letter_must_be_string(self): + pytest.raises(ValueError, self.rn.random_nicks, 0) def test_random_nicks_not_gender(self): pytest.raises(ValueError, self.rn.random_nicks, gender=[])