Skip to content

Commit

Permalink
beancount.ingest moved to beangulp starting bc 3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Zburatorul committed Sep 18, 2024
1 parent ae6857d commit 1d5602f
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 7 deletions.
6 changes: 3 additions & 3 deletions beancount_import/source/generic_importer_source.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""This module implements a Source Subclass for wrapping
`beancount.ingest.importer.ImporterProtocol` subclasses importers.
`beangulp.importer.ImporterProtocol` subclasses importers.
The importers are considered athoritative of the account they represent.
The Transaction.narration set by each importer is copied to Posting.meta[source_desc]
Expand All @@ -21,8 +21,8 @@
from beancount.core.data import Balance, Transaction, Posting, Directive
from beancount.core.amount import Amount
from beancount.core.convert import get_weight
from beancount.ingest.importer import ImporterProtocol
from beancount.ingest.cache import get_file
from beangulp.importer import ImporterProtocol
from beangulp.cache import get_file
from beancount.parser.booking_full import convert_costspec_to_cost

from ..matching import FIXME_ACCOUNT, SimpleInventory
Expand Down
4 changes: 2 additions & 2 deletions beancount_import/source/generic_importer_source_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
import pytest

from .source_test import check_source_example
from beancount.ingest.importers.csv import Importer as CSVImporter, Col
from beancount.ingest.importer import ImporterProtocol
from beangulp.importers.csv import Importer as CSVImporter, Col
from beangulp.importer import ImporterProtocol
from beancount.parser.parser import parse_file

testdata_dir = os.path.realpath(
Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@ def run(self):
setup_requires=['setuptools_scm>=5.0.2'],
install_requires=[
'beancount>=2.1.3',
'beangulp',
'tornado',
'numpy',
'scipy',
Expand Down
2 changes: 0 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ deps =
mypy
coverage
typing-extensions
beautifulsoup4
setuptools

commands =
mypy beancount_import --install-types --non-interactive --disable-error-code=type-abstract
Expand Down

0 comments on commit 1d5602f

Please sign in to comment.