forked from mgax/beancount
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
executable file
·53 lines (45 loc) · 1.62 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
#!/usr/bin/env python
"""
Install script for beancount.
"""
__author__ = "Martin Blais <blais@furius.ca>"
import os
from os.path import join, isfile
from setuptools import setup
# Install all scripts under bin.
scripts = [join('bin', x) for x in ('bean-web',
'bean-trial',
'bean-suck',
'bean-convert-ofx',
'bean-convert-paypal-csv',
'bean-convert-rbc-activity',
)]
def read_version():
try:
return open('VERSION', 'r').readline().strip()
except IOError, e:
raise SystemExit(
"Error: you must run setup from the root directory (%s)" % str(e))
setup(name="beancount",
version=read_version(),
description=\
"Command-line Double-Entry Accounting",
long_description="""
A double-entry accounting system that uses a simple text file format
as input. A few Python scripts are used to parse the contents of the
file, for example, to serve the contents as a locally running web
server. Scripts are provided to convert from OFX files into Ledger
input format, and other formats (easily extensible).
""",
license="GPL",
author="Martin Blais",
author_email="blais@furius.ca",
url="http://furius.ca/beancount",
package_dir = {'': 'lib/python'},
packages = ['beancount',
'beancount.web',
'beancount.fallback',
'beancount.fallback.elementtree',
],
scripts=scripts
)