Skip to content

Commit

Permalink
Added setup and travis integration for eventual test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
ulmentflam committed Jul 29, 2017
1 parent bb56e3a commit 1e6f854
Show file tree
Hide file tree
Showing 3 changed files with 59 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .travis.yml
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
29 changes: 29 additions & 0 deletions setup.py
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
)
19 changes: 19 additions & 0 deletions tox.ini
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

0 comments on commit 1e6f854

Please sign in to comment.