summaryrefslogtreecommitdiffstats
path: root/setup.py
blob: 1c30483b5dd06be0c1d31896bc711575b61a45b4 (plain)
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
#!/usr/bin/env python
# -*- coding: utf-8 -*-

from distribute_setup import use_setuptools
use_setuptools()

from setuptools import setup, find_packages

def filetolist(filepath):
    """Turns a text file into a list (one element per line)"""
    result = []
    with open(filepath, "r") as f:
        for line in f:
            if "#" in line:
                line = line[:line.index("#")]
            line = line.strip()
            if not line:
                continue
            result.append(line)
    return result


setup(
    name="KittyStore",
    version="0.1.4",
    description="A storage engine for GNU Mailman v3 archives",
    long_description=open('README.rst').read(),
    author='HyperKitty Developers',
    author_email='hyperkitty-devel@lists.fedorahosted.org',
    url="https://fedorahosted.org/hyperkitty/",
    license="GPLv3",
    classifiers=[
        "Development Status :: 3 - Alpha",
        "License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
        "Topic :: Communications :: Email :: Mailing List Servers",
        "Programming Language :: Python :: 2",
        ],
    keywords='email',
    #packages=find_packages(exclude=["*.test", "test", "*.test.*"]),
    packages=find_packages(),
    include_package_data=True,
    install_requires=filetolist("requirements.txt"),
    test_suite = "kittystore.test",
    entry_points={
        'console_scripts': [
            'kittystore-import = kittystore.import:main',
            'kittystore-updatedb = kittystore.scripts:updatedb',
            'kittystore-download21 = kittystore.scripts:dl_archives',
            ],
        },
    )