-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
executable file
·71 lines (61 loc) · 2.13 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
62
63
64
65
66
67
68
69
70
71
import os, re
from setuptools import setup, find_packages
here = os.path.abspath(os.path.dirname(__file__))
# Utility function to read the README.md file.
# Used for the long_description. It's nice, because now 1) we have a top level
# README.md file and 2) it's easier to type in the README.md file than to put a raw
# string in below ...
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
with open('requirements.txt') as fp:
install_requires = fp.readlines()
# get the dependencies and installs
changelog = read('README.md').splitlines()
for i,line in enumerate(changelog):
if line.startswith('Change-Log'):
line = changelog[i+1]
j = 1
while line.strip()=='' or line.startswith('---'):
j += 1
line = changelog[i+j]
version = line.strip('# ')
break
test_requires = [
'pylint>=1.0.0',
'nosexcover>=1.0.0',
'nose>=1.3.0',
]
extras_require = {
}
print(find_packages())
setup(
name='dineral',
version=version,
author='Tobias Schoch',
author_email='[email protected]',
license='public',
keywords='finance budget gui report',
packages=find_packages(),
include_package_data=True,
package_data={'dineral': ['res',
'bash/SecuredPDF2txt.sh',
'res/classifiers/*',
'res/conf',
'res/conf/properties_template.yaml',
'res/data/*']},
long_description=read('README.md'),
install_requires=install_requires,
tests_require=test_requires,
extras_require=extras_require,
test_suite='nose.collector',
entry_points = {
'console_scripts': ['dineral=dineral.main:main']
},
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'License :: Other/Proprietary License',
'Programming Language :: Python :: 2.7',
'Topic :: Software Development :: Libraries :: Python Modules'
]
)