PyInvoice/setup.py
jeroenmac 4c7dc7e5ec Invouce amounts rounded to 2 decimals (#1)
* round total, subtotal and tax to 2 digits

* version update

* version update

* version update

* version update

* version update

* changes:
1) decimal.quantize function used instead of round
2) added function to limit number of digits
3) extended constructor of class

* typo

* changed getdecimals function

* changed getdecimals function

* updated test_templates

* updated test_templates
2016-04-21 20:47:57 +08:00

44 lines
1.4 KiB
Python

#!/usr/bin/env python
import os
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
with open(os.path.join(os.path.dirname(__file__), 'README.rst')) as readme:
README = readme.read()
# allow setup.py to be run from any path
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
setup(
name='PyInvoice',
version='0.1.7',
packages=['pyinvoice', 'tests'],
include_package_data=True,
license='MIT License',
description='Invoice/Receipt generator',
long_description=README,
url='https://github.com/CiCiApp/PyInvoice',
author='zhangshine',
author_email='zhangshine0125@gmail.com',
install_requires=['reportlab'],
test_suite='tests',
classifiers=[
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.2',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: Implementation :: CPython',
'Topic :: Software Development :: Libraries :: Python Modules',
],
)