Skip to content

Commit

Permalink
Support for new pythons (#9)
Browse files Browse the repository at this point in the history
* bump version

* add 3.7 and 3.8 to travis

* remove support for 3.3

* add test for checking if letter is a string
  • Loading branch information
tomislater authored Jun 20, 2020
1 parent 601aa48 commit a47bf0e
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -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
Expand Down
1 change: 1 addition & 0 deletions CHANGES.txt
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
3 changes: 3 additions & 0 deletions random_words/test/test_random_words.py
Original file line number Diff line number Diff line change
Expand Up @@ -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=[])
Expand Down
5 changes: 3 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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='[email protected]',
packages=['random_words'],
Expand All @@ -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,
Expand Down

0 comments on commit a47bf0e

Please sign in to comment.