-
Notifications
You must be signed in to change notification settings - Fork 22
/
setup.py
44 lines (38 loc) · 1.3 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
#coding:utf-8
import os
from setuptools import setup, find_packages
from antispam import __version__
def read(fname):
try:
import pypandoc
return pypandoc.convert(os.path.join(os.path.dirname(__file__), fname), 'rst')
except (IOError, ImportError):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(
name = "antispam",
version = __version__,
keywords = ('spam', 'filter', 'antispam'),
packages = find_packages(),
include_package_data = True,
package_data = {
'antispam' : [ './antispam/model.json' ]
},
install_requires = [],
author = "Dinever",
author_email = '[email protected]',
url = "http://github.com/dinever/antispam",
description = "Bayesian anti-spam classifier written in Python.",
long_description = read('README.md'),
license = "MIT License",
classifiers=[
'Operating System :: Microsoft :: Windows',
'Operating System :: MacOS :: MacOS X',
'Operating System :: POSIX',
'Natural Language :: English',
'Programming Language :: Python :: 2.5',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
],
)