-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
66 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# Config file for automatic testing at travis-ci.org | ||
sudo: false | ||
|
||
language: python | ||
python: 3.5 | ||
|
||
install: | ||
- pip install tox | ||
|
||
script: tox |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
include LICENSE.txt | ||
include README.rst |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
pytest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# | ||
# This file is autogenerated by pip-compile | ||
# To update, run: | ||
# | ||
# pip-compile --output-file requirements.txt requirements.in | ||
# | ||
py==1.4.31 # via pytest | ||
pytest==3.0.2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
[bdist_wheel] | ||
universal = 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,37 @@ | ||
import os | ||
try: | ||
# use setuptools if available | ||
from setuptools import setup | ||
kwargs = { | ||
'entry_points': {'console_scripts': | ||
'gibberish = gibberish:console_main', | ||
} | ||
} | ||
except ImportError: | ||
# fall back to distutils | ||
from distutils import setup | ||
kwargs = {} | ||
|
||
from setuptools import setup | ||
|
||
base_dir = os.path.dirname(os.path.abspath(__file__)) | ||
|
||
with open(os.path.join(base_dir, 'README.rst')) as fp: | ||
long_description = fp.read() | ||
|
||
setup( | ||
name='Gibberish', | ||
name='gibberish', | ||
description="A pseudo-word generator", | ||
version='0.3', | ||
version='0.3.1', | ||
author='Gregory Haskins', | ||
author_email='[email protected]', | ||
url='https://github.com/greghaskins/gibberish', | ||
packages=('gibberish',), | ||
license='MIT License', | ||
long_description=open(os.path.join(base_dir, 'README.rst')).read(), | ||
long_description=long_description, | ||
install_requires=['PyYAML'], | ||
package_data={ | ||
'gibberish': ['database/*'], | ||
}, | ||
# include_package_data=True, | ||
extras_require={ | ||
'dev': ['nltk'] | ||
}, | ||
**kwargs | ||
}, | ||
classifiers=[ | ||
'Intended Audience :: Developers', | ||
'License :: OSI Approved :: MIT License', | ||
'Natural Language :: English', | ||
'Programming Language :: Python :: 2', | ||
'Programming Language :: Python :: 3', | ||
], | ||
entry_points={ | ||
'console_scripts': 'gibberish = gibberish:console_main', | ||
} | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import gibberish | ||
|
||
|
||
def test_generate_word(): | ||
word = gibberish.generate_word() | ||
assert len(word) | ||
assert word.isalpha() | ||
|
||
|
||
def test_generate_words(): | ||
word_list = gibberish.generate_word() | ||
|
||
assert len(word_list) | ||
|
||
for word in word_list: | ||
assert len(word) | ||
assert word.isalpha() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
[tox] | ||
envlist = py{27,35} | ||
|
||
[testenv] | ||
install_command = pip install --no-deps {opts} {packages} | ||
deps = -rrequirements.txt | ||
commands = py.test {posargs} |