Skip to content

Commit

Permalink
Fix packaging issue
Browse files Browse the repository at this point in the history
  • Loading branch information
joe-sheldon committed Nov 18, 2022
1 parent 1249fc4 commit 3e42694
Show file tree
Hide file tree
Showing 21 changed files with 53 additions and 55 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/helper-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10"]
python-version: ["3.8", "3.9", "3.10"]

steps:
- uses: actions/checkout@v3
Expand Down
Empty file removed __init__.py
Empty file.
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[metadata]
name = blueink-client-python
version = 0.9.3
version = 0.9.4
author = Blueink
author_email = pypi@blueink.com
description = Python Client for Blueink eSignature API
Expand Down
Empty file removed src/__init__.py
Empty file.
8 changes: 4 additions & 4 deletions src/blueink/__init__.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
from requests import exceptions

from .client import Client
from .bundle_helper import BundleHelper
from .person_helper import PersonHelper
from . import constants
import blueink.constants
from blueink.bundle_helper import BundleHelper
from blueink.client import Client
from blueink.person_helper import PersonHelper

__all__ = ["Client", "BundleHelper", "PersonHelper", "exceptions", "constants"]
2 changes: 1 addition & 1 deletion src/blueink/bundle_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from os.path import basename
from typing import List

from .model.bundles import (
from blueink.model.bundles import (
Bundle,
Document,
Field,
Expand Down
14 changes: 7 additions & 7 deletions src/blueink/client.py
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
from os import environ

from src.blueink.constants import (
from blueink.constants import (
DEFAULT_BASE_URL,
ENV_BLUEINK_API_URL,
ENV_BLUEINK_PRIVATE_API_KEY,
)
from src.blueink.request_helper import RequestHelper
from src.blueink.subclients.bundle import BundleSubClient
from src.blueink.subclients.packet import PacketSubClient
from src.blueink.subclients.person import PersonSubClient
from src.blueink.subclients.template import TemplateSubClient
from src.blueink.subclients.webhook import WebhookSubClient
from blueink.request_helper import RequestHelper
from blueink.subclients.bundle import BundleSubClient
from blueink.subclients.packet import PacketSubClient
from blueink.subclients.person import PersonSubClient
from blueink.subclients.template import TemplateSubClient
from blueink.subclients.webhook import WebhookSubClient


class Client:
Expand Down
5 changes: 3 additions & 2 deletions src/blueink/model/bundles.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import random
import string
from typing import List, Optional
from pydantic import BaseModel, validator, EmailStr

from ..constants import DELIVER_VIA, FIELD_KIND
from pydantic import BaseModel, EmailStr, validator

from blueink.constants import DELIVER_VIA, FIELD_KIND


class ValidationError(RuntimeError):
Expand Down
5 changes: 3 additions & 2 deletions src/blueink/model/webhook.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
from typing import List, Optional
from pydantic import BaseModel, validator, Field

from src.blueink.constants import EVENT_TYPE
from pydantic import BaseModel, Field, validator

from blueink.constants import EVENT_TYPE


class WebhookExtraHeaderSchema(BaseModel):
Expand Down
2 changes: 1 addition & 1 deletion src/blueink/paginator.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from requests.exceptions import HTTPError

from .request_helper import NormalizedResponse
from blueink.request_helper import NormalizedResponse


class PaginatedIterator:
Expand Down
2 changes: 1 addition & 1 deletion src/blueink/person_helper.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from typing import List

from .model.persons import ContactChannelSchema, PersonSchema
from blueink.model.persons import ContactChannelSchema, PersonSchema


class PersonHelper:
Expand Down
3 changes: 1 addition & 2 deletions src/blueink/request_helper.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
import requests

from munch import munchify
from requests import Request, Session

from .constants import BLUEINK_PAGINATION_HEADER
from blueink.constants import BLUEINK_PAGINATION_HEADER


class Pagination:
Expand Down
12 changes: 6 additions & 6 deletions src/blueink/subclients/bundle.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@

from munch import Munch

from src.blueink import endpoints
from src.blueink.bundle_helper import BundleHelper
from src.blueink.constants import BUNDLE_STATUS
from src.blueink.paginator import PaginatedIterator
from src.blueink.request_helper import NormalizedResponse
from src.blueink.subclients.subclient import SubClient
from blueink import endpoints
from blueink.bundle_helper import BundleHelper
from blueink.constants import BUNDLE_STATUS
from blueink.paginator import PaginatedIterator
from blueink.request_helper import NormalizedResponse
from blueink.subclients.subclient import SubClient


class BundleSubClient(SubClient):
Expand Down
6 changes: 3 additions & 3 deletions src/blueink/subclients/packet.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from src.blueink import endpoints
from src.blueink.request_helper import NormalizedResponse
from src.blueink.subclients.subclient import SubClient
from blueink import endpoints
from blueink.request_helper import NormalizedResponse
from blueink.subclients.subclient import SubClient


class PacketSubClient(SubClient):
Expand Down
10 changes: 5 additions & 5 deletions src/blueink/subclients/person.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
from src.blueink import endpoints
from src.blueink.paginator import PaginatedIterator
from src.blueink.person_helper import PersonHelper
from src.blueink.request_helper import NormalizedResponse
from src.blueink.subclients.subclient import SubClient
from blueink import endpoints
from blueink.paginator import PaginatedIterator
from blueink.person_helper import PersonHelper
from blueink.request_helper import NormalizedResponse
from blueink.subclients.subclient import SubClient


class PersonSubClient(SubClient):
Expand Down
4 changes: 2 additions & 2 deletions src/blueink/subclients/subclient.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from src.blueink import endpoints
from src.blueink.request_helper import RequestHelper
from blueink import endpoints
from blueink.request_helper import RequestHelper


class SubClient:
Expand Down
8 changes: 4 additions & 4 deletions src/blueink/subclients/template.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from src.blueink import endpoints
from src.blueink.paginator import PaginatedIterator
from src.blueink.request_helper import NormalizedResponse
from src.blueink.subclients.subclient import SubClient
from blueink import endpoints
from blueink.paginator import PaginatedIterator
from blueink.request_helper import NormalizedResponse
from blueink.subclients.subclient import SubClient


class TemplateSubClient(SubClient):
Expand Down
6 changes: 3 additions & 3 deletions src/blueink/subclients/webhook.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from src.blueink import endpoints
from src.blueink.request_helper import NormalizedResponse
from src.blueink.subclients.subclient import SubClient
from blueink import endpoints
from blueink.request_helper import NormalizedResponse
from blueink.subclients.subclient import SubClient


class WebhookSubClient(SubClient):
Expand Down
7 changes: 2 additions & 5 deletions src/blueink/tests/test_bundle_helper.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
import copy
from base64 import b64encode
from os.path import basename

from munch import Munch

from src.blueink import BundleHelper, Client
from src.blueink.person_helper import PersonHelper
from src.blueink.utils.testcase import TestCase
from blueink.bundle_helper import BundleHelper
from blueink.utils.testcase import TestCase


class TestBundleHelper(TestCase):
Expand Down
6 changes: 3 additions & 3 deletions src/blueink/tests/test_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@

from munch import Munch

from src.blueink import BundleHelper, Client, PersonHelper
from src.blueink.constants import EVENT_TYPE
from src.blueink.utils.testcase import TestCase
from blueink import BundleHelper, Client, PersonHelper
from blueink.constants import EVENT_TYPE
from blueink.utils.testcase import TestCase


class TestClient(TestCase):
Expand Down
4 changes: 2 additions & 2 deletions src/blueink/tests/test_person_helper.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from src.blueink.person_helper import PersonHelper
from src.blueink.utils.testcase import TestCase
from blueink.person_helper import PersonHelper
from blueink.utils.testcase import TestCase


class TestPersonHelper(TestCase):
Expand Down

0 comments on commit 3e42694

Please sign in to comment.