diff --git a/dist/satoshi-0.1.4-py3-none-any.whl b/dist/satoshi-0.1.4-py3-none-any.whl new file mode 100644 index 0000000..070bdfa Binary files /dev/null and b/dist/satoshi-0.1.4-py3-none-any.whl differ diff --git a/dist/satoshi-0.1.4.tar.gz b/dist/satoshi-0.1.4.tar.gz new file mode 100644 index 0000000..f4bebb9 Binary files /dev/null and b/dist/satoshi-0.1.4.tar.gz differ diff --git a/satoshi/__init__.py b/satoshi/__init__.py index d164cd1..9127af9 100644 --- a/satoshi/__init__.py +++ b/satoshi/__init__.py @@ -26,7 +26,8 @@ def to_fiat(satoshis=1, fiat='USD'): response = requests.get(quote_url) btc_value = response.json().get(fiat.upper()) fiat_value = float(satoshis * BTC_FRACTION) * float(btc_value) - return '{:.2f}'.format(fiat_value) + return float('{:.2f}'.format(fiat_value)) + def print_art(): '''Read ASCII art from bitcoin_art.txt and print directly''' diff --git a/setup.py b/setup.py index 5ce4a8e..898238e 100644 --- a/setup.py +++ b/setup.py @@ -5,7 +5,7 @@ here = dirname(__file__) setup(name='satoshi', - version='0.1.3', + version='0.1.4', description='Manipulate satoshi-related prices in Python 3, simple and sweet.', long_description=open(join(here, 'README.md')).read(), license='MIT', @@ -13,7 +13,7 @@ author='canokaue', author_email='kaue.cano@quan.digital', url='https://github.com/quan-digital/satoshi/', - download_url = 'https://github.com/quan-digital/satoshi/dist/satoshi-0.1.3.tar.gz', + download_url = 'https://github.com/quan-digital/satoshi/dist/satoshi-0.1.4.tar.gz', install_requires=[ 'requests==2.23.0' ], @@ -34,4 +34,8 @@ 'Operating System :: OS Independent', ], include_package_data=True - ) \ No newline at end of file + ) + +# PyPi publish flow +# python3 setup.py sdist bdist_wheel +# python3 -m twine upload dist/* \ No newline at end of file