Skip to content

Commit

Permalink
🐛 fix circular imports error on install (#280)
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianMindee authored Nov 25, 2024
1 parent 65227ad commit 9146e43
Show file tree
Hide file tree
Showing 14 changed files with 17 additions and 16 deletions.
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@ build = [
mindee = "mindee.cli:main"


[tool.setuptools]
packages = ["mindee", ]
[tool.setuptools.packages]
find = {}

[tool.setuptools.dynamic]
version = {attr = "mindee.versions.__version__"}
Expand Down
3 changes: 0 additions & 3 deletions tests/product/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
from pathlib import Path
from typing import Type

from mindee.parsing.common.prediction import Prediction

PRODUCT_DATA_DIR = Path("./tests/data/products/")

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import pytest

from mindee.client import Client
from mindee.product.eu import LicensePlateV1
from mindee.product.eu.license_plate.license_plate_v1 import LicensePlateV1
from tests.product import PRODUCT_DATA_DIR, get_id, get_version


Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
import pytest

from mindee.client import Client
from mindee.product.fr import BankAccountDetailsV1
from mindee.product.fr.bank_account_details.bank_account_details_v1 import (
BankAccountDetailsV1,
)
from tests.product import PRODUCT_DATA_DIR, get_id, get_version


Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
import pytest

from mindee.client import Client
from mindee.product.fr import BankAccountDetailsV2
from mindee.product.fr.bank_account_details.bank_account_details_v2 import (
BankAccountDetailsV2,
)
from tests.product import PRODUCT_DATA_DIR, get_id, get_version


Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import pytest

from mindee.client import Client
from mindee.product.fr import CarteGriseV1
from mindee.product.fr.carte_grise.carte_grise_v1 import CarteGriseV1
from tests.product import PRODUCT_DATA_DIR, get_id, get_version


Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import pytest

from mindee.client import Client
from mindee.product.fr import CarteVitaleV1
from mindee.product.fr.carte_vitale.carte_vitale_v1 import CarteVitaleV1
from tests.product import PRODUCT_DATA_DIR, get_id, get_version


Expand Down
2 changes: 1 addition & 1 deletion tests/product/fr/id_card/test_id_card_v1_regression.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import pytest

from mindee.client import Client
from mindee.product.fr import IdCardV1
from mindee.product.fr.id_card.id_card_v1 import IdCardV1
from tests.product import PRODUCT_DATA_DIR, get_id, get_version


Expand Down
2 changes: 1 addition & 1 deletion tests/product/fr/id_card/test_id_card_v2_regression.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import pytest

from mindee.client import Client
from mindee.product.fr import IdCardV2
from mindee.product.fr.id_card.id_card_v2 import IdCardV2
from tests.product import PRODUCT_DATA_DIR, get_id, get_version


Expand Down
Empty file.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import pytest

from mindee.client import Client
from mindee.product.fr import PetrolReceiptV1
from mindee.product.fr.petrol_receipt.petrol_receipt_v1 import PetrolReceiptV1
from tests.product import PRODUCT_DATA_DIR, get_id, get_version


Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import pytest

from mindee.client import Client
from mindee.product.us import BankCheckV1
from mindee.product.us.bank_check.bank_check_v1 import BankCheckV1
from tests.product import PRODUCT_DATA_DIR, get_id, get_version


Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import pytest

from mindee.client import Client
from mindee.product.us import DriverLicenseV1
from mindee.product.us.driver_license.driver_license_v1 import DriverLicenseV1
from tests.product import PRODUCT_DATA_DIR, get_id, get_version


Expand Down
2 changes: 1 addition & 1 deletion tests/product/us/w9/test_w9_v1_regression.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import pytest

from mindee.client import Client
from mindee.product.us import W9V1
from mindee.product.us.w9.w9_v1 import W9V1
from tests.product import PRODUCT_DATA_DIR, get_id, get_version


Expand Down

0 comments on commit 9146e43

Please sign in to comment.