Skip to content

Commit 2a58016

Browse files
Merge branch 'didorothy-avalara-package'
2 parents e694364 + 54ee396 commit 2a58016

File tree

11 files changed

+11
-16
lines changed

11 files changed

+11
-16
lines changed

setup.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,7 @@
1212
version='19.9.1.1',
1313
url='https://github.com/avadev/AvaTax-REST-V2-Python-SDK',
1414
package_dir={'': 'src'},
15-
py_modules=[
16-
'client',
17-
'client_methods',
18-
'transaction_builder',
19-
'transaction_builder_methods',
20-
'_str_version'
21-
],
15+
packages=['avalara'],
2216
author='Han Bao, Adrienne Karnoski, Robert Bronson, Philip Werner, Genevieve Conty',
2317
author_email='han.bao@avalara.com',
2418
description='Avalara Tax Python SDK.',

src/avalara/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
from .client import AvataxClient
File renamed without changes.

src/client.py renamed to src/avalara/client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@
2525
@link https://github.com/avadev/AvaTax-REST-V2-Python-SDK
2626
"""
2727
from requests.auth import HTTPBasicAuth
28-
from _str_version import str_type
29-
import client_methods
28+
from ._str_version import str_type
29+
from . import client_methods
3030
import os
3131

3232

src/client_methods.py renamed to src/avalara/client_methods.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"""
1818

1919
import requests
20-
from _str_version import str_type
20+
from ._str_version import str_type
2121

2222

2323
class Mixin:

src/transaction_builder.py renamed to src/avalara/transaction_builder.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
interface
2929
"""
3030
from datetime import datetime
31-
import transaction_builder_methods
31+
from . import transaction_builder_methods
3232

3333

3434
class TransactionBuilder(transaction_builder_methods.Mixin):
File renamed without changes.

tests/conftest.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"""Conftest is a file recognize by pytest module, allowing us to share fixture across multiple tests."""
2-
from client import AvataxClient
3-
from transaction_builder import TransactionBuilder
2+
from avalara import AvataxClient
3+
from avalara.transaction_builder import TransactionBuilder
44
import os
55
import pytest
66

tests/test_auth.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"""Test the add_credential method."""
22
import pytest
33
from requests.auth import HTTPBasicAuth
4-
from client import AvataxClient
4+
from avalara.client import AvataxClient
55

66

77
def test_username_auth(unauth_client):

tests/test_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""Test the client model."""
2-
from client import AvataxClient
2+
from avalara.client import AvataxClient
33

44

55
def test_client_can_be_created(unauth_client):

0 commit comments

Comments
 (0)