forked from mailpile/Mailpile
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
executable file
·56 lines (49 loc) · 1.42 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
#!/usr/bin/env python2
from datetime import date
from setuptools import setup, find_packages
import os
import re
from glob import glob
APPVER = next(
line.strip() for line in open('mailpile/defaults.py', 'r')
if re.match(r'^APPVER\s*=', line)
).split('"')[1]
try:
# This borks sdist.
os.remove('.SELF')
except:
pass
data_files = []
# Copy static UI files
for dir, dirs, files in os.walk('static'):
data_files.append((dir, [os.path.join(dir, file_) for file_ in files]))
# Copy translation files
for dir, dirs, files in os.walk('locale'):
data_files.append((dir, [os.path.join(dir, file_) for file_ in files]))
setup(
name="mailpile",
version=APPVER.replace('github',
'dev'+date.today().isoformat().replace('-', '')),
license="AGPLv3+",
author="Bjarni R. Einarsson",
author_email="[email protected]",
url="http://www.mailpile.is/",
description="""\
Mailpile is a personal tool for searching and indexing e-mail.""",
long_description="""\
Mailpile is a tool for building and maintaining a tagging search
engine for a personal collection of e-mail. It can be used as a
simple web-mail client.
""",
packages=find_packages(),
data_files=data_files,
install_requires=[
'lxml>=2.3.2',
'jinja2',
'spambayes>=1.1b1'
],
entry_points={
'console_scripts': [
'mailpile = mailpile.__main__:main'
]},
)