ae3e4617d3
When we format a rate as a price, we don't know how much precision is "enough" to do the conversion, because we don't know what's being converted to. As a result, we may (=will almost certainly) end up formatting the rate with different precision on the cost date vs. the price date, and that causes Beancount/Ledger to fail to make the connection between them. Using a constant of 6 is enough to make the current test for "enough" precision pass, so just do that for now. This might need further refinement in the future.
21 lines
508 B
Python
Executable file
21 lines
508 B
Python
Executable file
#!/usr/bin/env python3
|
|
|
|
from setuptools import setup
|
|
|
|
setup(
|
|
name='oxrlib',
|
|
description="Library to query the Open Exchange Rates (OXR) API",
|
|
version='2.1',
|
|
author='Brett Smith',
|
|
author_email='brettcsmith@brettcsmith.org',
|
|
license='GNU AGPLv3+',
|
|
|
|
install_requires=['babel'],
|
|
setup_requires=['pytest-runner'],
|
|
tests_require=['pytest'],
|
|
|
|
packages=['oxrlib', 'oxrlib.commands'],
|
|
entry_points={
|
|
'console_scripts': ['oxrquery = oxrlib.__main__:main'],
|
|
},
|
|
)
|