diff --git a/.travis.yml b/.travis.yml index 2294986..0377df2 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,10 +1,11 @@ language: python python: - '2.7' -- '3.3' - '3.4' - '3.5' - '3.6' +- '3.7' +- '3.8' install: - python setup.py install - pip install coverage 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/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=[]) diff --git a/setup.py b/setup.py index 1affdb7..200b70e 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'], @@ -35,10 +35,11 @@ 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', + 'Programming Language :: Python :: 3.7', + 'Programming Language :: Python :: 3.8', 'Topic :: Software Development :: Libraries :: Python Modules', ], include_package_data=True,