forked from eduardocereto/pyboleto
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
83 lines (76 loc) · 2.44 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
72
73
74
75
76
77
78
79
80
81
82
83
# -*- coding: utf-8 -*-
from setuptools import setup, find_packages
import sys
import os
import re
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
def get_version(package):
"""Return package version as listed in `__version__` in `__init__.py`."""
init_py = open(os.path.join(os.path.dirname(__file__),
package, '__init__.py'),
'r').read()
return re.search("^__version__ = ['\"]([^'\"]+)['\"]",
init_py, re.MULTILINE
).group(1)
extra = {}
if sys.version_info >= (3,):
extra['use_2to3'] = True
#extra['convert_2to3_doctests'] = ['src/your/module/README.txt']
#extra['use_2to3_fixers'] = ['your.fixers']
extra['install_requires'] = [
'distribute',
]
extra['tests_require'] = [
'pep8>=0.6.1',
'pep8<1.3',
],
else:
extra['install_requires'] = [
'reportlab>=2.5',
]
extra['tests_require'] = [
'pep8>=0.6.1',
'pep8<1.3',
'pyflakes>=0.5.0',
]
setup(
name='pyboleto',
version=get_version('pyboleto'),
author='Eduardo Cereto Carvalho',
author_email='[email protected]',
url='https://github.com/eduardocereto/pyboleto',
packages=find_packages(),
package_data={
'': ['LICENSE'],
'pyboleto': ['media/*.jpg'],
},
zip_safe=False,
provides=[
'pyboleto'
],
license='BSD',
description='Python Library to create "boletos de cobrança bancária" for several Brazilian banks',
long_description=read('README.rst'),
download_url='http://pypi.python.org/pypi/pyboleto',
scripts=['bin/pyboleto_sample.py'],
classifiers=[
'Development Status :: 4 - Beta',
'Operating System :: OS Independent',
'Intended Audience :: Developers',
'Intended Audience :: Financial and Insurance Industry',
'Operating System :: OS Independent',
'License :: OSI Approved :: BSD License',
'Natural Language :: Portuguese (Brazilian)',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 2.6',
'Topic :: Office/Business :: Financial',
'Topic :: Software Development :: Libraries :: Python Modules',
'Framework :: Django',
],
platforms='any',
test_suite='tests.alltests.suite',
**extra
)