-
Notifications
You must be signed in to change notification settings - Fork 26
/
setup.py
74 lines (60 loc) · 2 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
"""profanity
=========
A Python library to check for (and clean) profanity in strings.
##Installation
pip install profanity
##Usage
from profanity import profanity
profanity.contains_profanity("You smell like shit.")
Out: True
profanity.censor("You smell like shit.")
Out: 'You smell like !@#$.'
## Features
* Load your own wordlist, or use the bundled one.
* Censors words using standard censor characters (!@#$%), or load your own
censor characters.
* Uses a pool of censor characters to create a more natural censor string.
* Censors all instances of a given word with the same censor string - for
easy correlation.
### I love Forks, Pull Requests, and Bugs!
I wrote this to satisfy my needs. Please feel free to contribute if you have
other needs that you think others would benefit from!
Feel free to contact me: http://www.bugben.com
"""
from distutils.core import setup
import profanity
try:
from setuptools import setup
setup # make pep8 happy
except ImportError:
from distutils.core import setup
setup(
name='profanity',
version=profanity.__version__,
author='Ben Friedland',
author_email='ben174@gmail.com',
packages=['profanity'],
url='https://github.com/ben174/profanity',
description=profanity.__doc__,
long_description=__doc__,
classifiers=(
'Development Status :: 4 - Beta',
'Environment :: Console',
'Intended Audience :: Developers',
'Natural Language :: English',
'License :: OSI Approved :: Apache Software License',
'Operating System :: MacOS',
'Operating System :: POSIX :: Linux',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.3',),
data_files=[('data', ['profanity/data/wordlist.txt']), ],
package_data={
'': ['profanity/data/wordlist.txt'],
},
include_package_data=True,
entry_points={
'console_scripts':
['profanity=profanity:main'],
}
)