Skip to content

Commit

Permalink
Merge branch 'hotfix/0.1.1' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
Charles Larivier committed Nov 25, 2021
2 parents c592637 + c159253 commit b3a9691
Show file tree
Hide file tree
Showing 26 changed files with 20 additions and 32 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -141,4 +141,4 @@ cython_debug/


.idea/
/metabase/_version.py
/src/metabase/_version.py
7 changes: 3 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
name="metabase-python",
use_scm_version={
"local_scheme": "dirty-tag",
"write_to": "metabase/_version.py",
"write_to": "src/metabase/_version.py",
"fallback_version": "0.0.0",
},
description="A Python wrapper for interacting with Metabase's API.",
Expand All @@ -19,9 +19,8 @@
author="Charles Lariviere",
author_email="[email protected] ",
url="https://github.com/chasleslr/metabase-python",
packages=find_packages("metabase"),
package_dir={"": "metabase"},
py_modules=[splitext(basename(path))[0] for path in glob("metabase/*.py")],
packages=find_packages("src"),
package_dir={"": "src"},
include_package_data=True,
zip_safe=False,
classifiers=[
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion metabase/resource.py → src/metabase/resource.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
from __future__ import annotations

from exceptions import NotFoundError
from requests import HTTPError

from metabase import Metabase
from metabase.exceptions import NotFoundError
from metabase.missing import MISSING


Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
7 changes: 2 additions & 5 deletions tests/resources/test_database.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
from exceptions import NotFoundError

from metabase import Database
from metabase.resources.field import Field
from metabase.resources.table import Table
from metabase import Database, Field, Table
from metabase.exceptions import NotFoundError
from tests.helpers import IntegrationTestCase


Expand Down
2 changes: 1 addition & 1 deletion tests/resources/test_field.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from metabase.resources.field import Field
from metabase import Field
from tests.helpers import IntegrationTestCase


Expand Down
5 changes: 2 additions & 3 deletions tests/resources/test_metric.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
from exceptions import NotFoundError

from metabase.resources.metric import Metric
from metabase import Metric
from metabase.exceptions import NotFoundError
from tests.helpers import IntegrationTestCase


Expand Down
5 changes: 2 additions & 3 deletions tests/resources/test_permission_group.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
from exceptions import NotFoundError

from metabase import PermissionGroup, PermissionMembership
from metabase import PermissionGroup
from metabase.exceptions import NotFoundError
from tests.helpers import IntegrationTestCase


Expand Down
2 changes: 0 additions & 2 deletions tests/resources/test_permission_membership.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from exceptions import NotFoundError

from metabase import PermissionGroup, PermissionMembership
from tests.helpers import IntegrationTestCase

Expand Down
5 changes: 2 additions & 3 deletions tests/resources/test_segment.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
from exceptions import NotFoundError

from metabase.resources.segment import Segment
from metabase import Segment
from metabase.exceptions import NotFoundError
from tests.helpers import IntegrationTestCase


Expand Down
6 changes: 2 additions & 4 deletions tests/resources/test_table.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
from resources.segment import Segment

from metabase.resources.field import Field
from metabase.resources.metric import Metric
from metabase import Field, Metric
from metabase.resources.segment import Segment
from metabase.resources.table import Dimension, Table
from tests.helpers import IntegrationTestCase

Expand Down
5 changes: 2 additions & 3 deletions tests/resources/test_user.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
from random import randint

from exceptions import NotFoundError

from metabase.resources.user import User
from metabase import User
from metabase.exceptions import NotFoundError
from tests.helpers import IntegrationTestCase


Expand Down
4 changes: 2 additions & 2 deletions tests/test_resource.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
from unittest.mock import patch

from exceptions import NotFoundError
from requests import HTTPError

from metabase.metabase import Metabase
from metabase import Metabase
from metabase.exceptions import NotFoundError
from metabase.missing import MISSING
from metabase.resource import (
CreateResource,
Expand Down

0 comments on commit b3a9691

Please sign in to comment.