Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛 fix circular imports error on install #280

Merged
merged 2 commits into from
Nov 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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