-
Notifications
You must be signed in to change notification settings - Fork 2
/
setup.py
61 lines (44 loc) · 1.79 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
59
60
61
from os import path
import re
from setuptools import setup
import sys
# Check if the version is sufficient.
if sys.version_info[:2] < (3,3):
raise SystemExit("ERROR: Insufficient Python version; you need v3.3 or higher.")
here = path.abspath(path.dirname(__file__))
# Get the version string without importing the package
with open(path.join(here, 'beansoup', 'version.py'), 'rt') as f:
version = re.search(r"__version__ = '(.*?)'", f.read()).group(1)
with open(path.join(here, 'README.rst'), 'rt', encoding='utf-8') as f:
long_description = f.read()
setup(
name='beansoup',
version=version,
description='A companion to beancount, a command-line double-entry accounting tool',
long_description=long_description,
# Project homepage
url='https://github.com/fxtlabs/beansoup',
# Author details
author='Filippo Tampieri',
author_email='[email protected]',
license='GPLv2',
classifiers=[
'Development Status :: 2 - Pre-Alpha',
'Intended Audience :: Developers',
'Intended Audience :: Financial and Insurance Industry',
'Topic :: Office/Business :: Financial',
'Topic :: Office/Business :: Financial :: Accounting',
'Topic :: Office/Business :: Financial :: Investment',
# Use the same license as beancount
'License :: OSI Approved :: GNU General Public License v2 (GPLv2)',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Operating System :: OS Independent',
],
keywords=['accounting', 'investing'],
packages=['beansoup'],
install_requires=['beancount'],
setup_requires=['pytest-runner'],
tests_require=['pytest', 'pytest-cov', 'coverage', 'python-dateutil'],
)