-
Notifications
You must be signed in to change notification settings - Fork 5
/
setup.py
executable file
·58 lines (53 loc) · 1.81 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
#!/usr/bin/env python
# -*- coding: utf-8 -*-
try:
import setuptools
except ImportError:
from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup, find_packages
def reqfile(filepath):
"""Turns a text file into a list (one element per line)"""
result = []
import re
url_re = re.compile(".+:.+#egg=(.+)")
with open(filepath, "r") as f:
for line in f:
line = line.strip()
if not line or line.startswith("#"):
continue
mo = url_re.match(line)
if mo is not None:
line = mo.group(1)
result.append(line)
return result
setup(
name="KittyStore",
version="0.9.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=reqfile("requirements.txt"),
test_suite = "kittystore.test",
entry_points={
'console_scripts': [
'kittystore-import = kittystore.importer:main',
'kittystore-updatedb = kittystore.scripts:updatedb',
'kittystore-download21 = kittystore.scripts:dl_archives',
'kittystore-sync-mailman = kittystore.scripts:sync_mailman_cmd',
],
},
)