-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added setup and travis integration for eventual test cases
- Loading branch information
1 parent
bb56e3a
commit 1e6f854
Showing
3 changed files
with
59 additions
and
0 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,11 @@ | ||
language: python | ||
|
||
env: | ||
- TOXENV=py36 | ||
|
||
install: pip install tox | ||
|
||
script: tox | ||
|
||
notifications: | ||
email: false |
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,29 @@ | ||
from setuptools import setup, find_packages | ||
|
||
|
||
def readme(): | ||
with open('README.md') as file: | ||
return file.read() | ||
|
||
setup(name='naughty_words', | ||
version='0.1', | ||
python_requires='>=3.6', | ||
long_description=readme(), | ||
description='A simple naughty word filter in python.', | ||
classifiers=[ | ||
'Development Status :: 3 - Alpha', | ||
'License :: OSI Approved :: Apache License 2.0', | ||
'Intended Audience :: Developers', | ||
'Programming Language :: Python :: 3.6', | ||
'Topic :: Text Processing :: Linguistic', | ||
], | ||
keywords='naughty words profanities profanity filter bad words', | ||
url='https://github.com/52inc/python-naughty-words', | ||
author='Evan Owen', | ||
author_email='[email protected]', | ||
license='Apache License 2.0', | ||
packages=find_packages(exclude=['tests']), | ||
install_requires=[], | ||
include_package_data=True, | ||
zip_safe=False | ||
) |
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,19 @@ | ||
[tox] | ||
envlist = py{36} | ||
|
||
[testenv] | ||
basepython = | ||
py36: python3.6 | ||
deps = | ||
check-manifest | ||
readme_renderer | ||
flake8 | ||
pytest | ||
commands = | ||
check-manifest --ignore tox.ini,tests* | ||
python setup.py check -m -r -s | ||
flake8 . | ||
py.test tests | ||
[flake8] | ||
exclude = .tox,*.egg,build,data | ||
select = E,W,F |