File: setup.py

package info (click to toggle)
trac-spamfilter 0.2.1%2Bsvn6871-1
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 256 kB
  • ctags: 259
  • sloc: python: 1,683; cs: 341; makefile: 40
file content (56 lines) | stat: -rwxr-xr-x 1,986 bytes parent folder | download | duplicates (2)
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
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright (C) 2006 Edgewall Software
# All rights reserved.
#
# This software is licensed as described in the file COPYING, which
# you should have received as part of this distribution. The terms
# are also available at http://trac.edgewall.com/license.html.
#
# This software consists of voluntary contributions made by many
# individuals. For the exact contribution history, see the revision
# history and logs, available at http://projects.edgewall.com/trac/.

from setuptools import setup, find_packages

PACKAGE = 'TracSpamFilter'
VERSION = '0.2.1'

setup(
    name = PACKAGE,
    version = VERSION,
    description = 'Plugin for spam filtering',
    author = "Edgewall Software",
    author_email = "info@edgewall.com",
    url = 'http://trac.edgewall.org/wiki/SpamFilter',
    download_url = 'http://trac.edgewall.org/wiki/SpamFilter',
    license = 'BSD',
    classifiers=[
        'Framework :: Trac',
        'License :: OSI Approved :: BSD License', 
    ],
    keywords='trac plugin',

    packages = find_packages(exclude=['*.tests*']),
    package_data = {'tracspamfilter': ['templates/*', 'htdocs/*']},
    extras_require = {
        'DNS': ['dnspython>=1.3.5'],
        'SpamBayes': ['spambayes'],
    },
    entry_points = """
        [trac.plugins]
        spamfilter = tracspamfilter.api
        spamfilter.admin = tracspamfilter.admin
        spamfilter.adapters = tracspamfilter.adapters
        spamfilter.akismet = tracspamfilter.filters.akismet
        spamfilter.bayes = tracspamfilter.filters.bayes[SpamBayes]
        spamfilter.extlinks = tracspamfilter.filters.extlinks
        spamfilter.ip_blacklist = tracspamfilter.filters.ip_blacklist[DNS]
        spamfilter.ip_throttle = tracspamfilter.filters.ip_throttle
        spamfilter.regex = tracspamfilter.filters.regex
        spamfilter.session = tracspamfilter.filters.session
    """,
    test_suite = 'tracspamfilter.tests.suite',
    zip_safe = True
)