Skip to content

Commit 8baef31

Browse files
committed
Update REAMDE. Add sys.exit to calls of cli.py:main.
1 parent a0c7458 commit 8baef31

File tree

6 files changed

+22
-14
lines changed

6 files changed

+22
-14
lines changed

README.md

+7-9
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
# Beancount Multitool
22

3-
![Tests badge](https://github.com/rlan/beancount-multitool/actions/workflows/tests.yml/badge.svg)
4-
![pypi version](https://img.shields.io/pypi/v/beancount-multitool
5-
)
6-
![python version required](https://img.shields.io/pypi/pyversions/beancount-multitool
7-
)
3+
[![Tests badge](https://github.com/rlan/beancount-multitool/actions/workflows/tests.yml/badge.svg)](https://github.com/rlan/beancount-multitool/actions/workflows/tests.yml)
4+
[![pypi version](https://img.shields.io/pypi/v/beancount-multitool)](https://pypi.org/project/beancount-multitool/)
5+
![python version required](https://img.shields.io/pypi/pyversions/beancount-multitool)
86
![static coverage badge](https://img.shields.io/badge/Coverage-97%25-blue)
97

108
Beancount Multitool is a command-line-interface (CLI) tool that converts financial data from financial institutions to Beancount files.
@@ -76,17 +74,17 @@ Workflow:
7674

7775
config.toml:
7876

79-
There is a default config.toml per financial institutions. Examples are in the test [data folder](./tests/data/).
77+
There is a default config.toml per financial institutions. Examples are in the test [data folder](tests/data).
8078

8179
## Requirements
8280

8381
* Python 3.9 or higher.
8482

8583
## More
8684

87-
* [Todo](./todo.md)
88-
* [Changelog](./changelog.md)
89-
* [Development](./development.md)
85+
* [Todo](todo.md)
86+
* [Changelog](changelog.md)
87+
* [Development](development.md)
9088

9189
## License
9290

changelog.md

+5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Changelog
22

3+
0.2.1
4+
5+
* Update README for PyPi project page.
6+
* Add sys.exit to calls of cli.py:main.
7+
38
0.2.0
49

510
* Show a list of supported financial institutions in --help.

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "beancount-multitool"
3-
version = "0.2.0"
3+
version = "0.2.1"
44
description = "A CLI tool that converts financial data to Beancount files"
55
authors = ["Rick Lan <[email protected]>"]
66
license = "MIT"

src/beancount_multitool/__main__.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
#! /usr/bin/env python3
1+
# This file is needed for Pytest
2+
import sys
23

34
if __name__ == "__main__":
45
from .cli import main
5-
main()
6+
sys.exit(main())
+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "0.2.0"
1+
__version__ = "0.2.1"

src/beancount_multitool/cli.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
21
import click
2+
import sys
33

44
# Get available finanicial institutions
55
from beancount_multitool import __INSTITUTIONS__
@@ -42,3 +42,7 @@ def main(name: str, config, data, output):
4242
tool = ShinseiBank(config)
4343

4444
tool.convert(data, output)
45+
46+
47+
if __name__ == "__main__":
48+
sys.exit(main())

0 commit comments

Comments
 (0)