Skip to content

Commit 3f6d7bb

Browse files
committed
restructuring utils directory
1 parent 095fb7b commit 3f6d7bb

File tree

24 files changed

+72
-20
lines changed

24 files changed

+72
-20
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ ENV*
111111
.pytest_cache
112112
html/
113113
.mutmut-cache
114+
_test_scripts/
114115

115116
# Pants workspace files
116117
/.pants.*
File renamed without changes.

http_client/src/http_client/errors.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from json import JSONDecodeError
22

3-
from errors import VonageError
43
from requests import Response
4+
from utils.errors import VonageError
55

66

77
class JWTGenerationError(VonageError):

http_client/tests/BUILD

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
python_tests(dependencies=['http_client', 'libs'])
1+
python_tests(dependencies=['http_client', 'utils'])

http_client/tests/test_http_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@
1212
)
1313
from pytest import raises
1414
from requests import Response
15-
from testing_utils import build_response
1615

1716
from http_client.http_client import HttpClient
17+
from testing_utils import build_response
1818

1919
path = abspath(__file__)
2020

libs/pyproject.toml

Lines changed: 0 additions & 8 deletions
This file was deleted.

libs/tests/BUILD

Lines changed: 0 additions & 1 deletion
This file was deleted.

number_insight_v2/BUILD

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ resource(name='pyproject', source='pyproject.toml')
33
files(sources=['tests/data/*'])
44

55
python_distribution(
6-
name='vonage-number-insight',
7-
dependencies=[':pyproject', 'number_insight_v2/src/number_insight_v2'],
6+
name='vonage-number-insight-v2',
7+
dependencies=[':pyproject', 'number_insight_v2/src/number_insight_v2', 'utils'],
88
provides=python_artifact(),
99
generate_setup=False,
1010
repositories=['https://test.pypi.org/legacy/'],

number_insight_v2/pyproject.toml

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,22 @@
22
name = 'vonage-number-insight-v2'
33
description = 'Vonage Number Insight v2 package'
44
version = '0.1.0'
5-
dependencies = ['vonage-http-client']
5+
readme = "README.md"
6+
authors = [{ name = "Vonage", email = "[email protected]" }]
7+
license = "Apache"
8+
homepage = "https://github.com/Vonage/vonage-python-sdk"
9+
classifiers = [
10+
"Programming Language :: Python",
11+
"Programming Language :: Python :: 3",
12+
"Programming Language :: Python :: 3.8",
13+
"Programming Language :: Python :: 3.9",
14+
"Programming Language :: Python :: 3.10",
15+
"Programming Language :: Python :: 3.11",
16+
"Programming Language :: Python :: 3.12",
17+
]
18+
19+
[project.python-requires]
20+
python_version = ">=3.8"
621

722
[build-system]
823
requires = ["setuptools>=61.0", "wheel"]

number_insight_v2/tests/test_number_insight_v2.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@
55
from http_client.auth import Auth
66
from pydantic import ValidationError
77
from pytest import raises
8-
from testing_utils import build_response
9-
from utils import remove_none_values
108

119
from http_client.http_client import HttpClient
1210
from number_insight_v2.number_insight_v2 import (
1311
FraudCheckRequest,
1412
FraudCheckResponse,
1513
NumberInsightV2,
1614
)
15+
from testing_utils import build_response
16+
from utils import remove_none_values
1717

1818
path = abspath(__file__)
1919

0 commit comments

Comments
 (0)