Skip to content

Commit 7736da0

Browse files
committed
preparing packages for release
1 parent 3f6d7bb commit 7736da0

File tree

17 files changed

+73
-22
lines changed

17 files changed

+73
-22
lines changed

http_client/BUILD

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ files(sources=['tests/data/*'])
44

55
python_distribution(
66
name='vonage-http-client',
7-
dependencies=[':pyproject', 'http_client/src/http_client'],
7+
dependencies=[':pyproject', 'http_client/src/http_client', 'utils/src/utils'],
88
provides=python_artifact(),
99
generate_setup=False,
1010
repositories=['https://test.pypi.org/legacy/'],

http_client/pyproject.toml

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,30 @@
11
[project]
22
name = 'vonage-http-client'
3-
description = 'An asynchronous HTTP client for making requests to Vonage APIs.'
43
version = '0.1.0'
5-
dependencies = ['vonage-jwt', 'requests']
4+
description = 'An HTTP client for making requests to Vonage APIs.'
5+
readme = "README.md"
6+
authors = [{ name = "Vonage", email = "devrel@vonage.com" }]
7+
requires-python = ">=3.8"
8+
dependencies = [
9+
"vonage-utils>=0.1.0",
10+
"vonage-jwt>=1.1.0",
11+
"requests==2.*",
12+
"pydantic>=2.6.1",
13+
"typing_extensions>=4.9.0",
14+
]
15+
classifiers = [
16+
"Programming Language :: Python",
17+
"Programming Language :: Python :: 3",
18+
"Programming Language :: Python :: 3.8",
19+
"Programming Language :: Python :: 3.9",
20+
"Programming Language :: Python :: 3.10",
21+
"Programming Language :: Python :: 3.11",
22+
"Programming Language :: Python :: 3.12",
23+
"License :: OSI Approved :: Apache Software License",
24+
]
25+
26+
[project.urls]
27+
homepage = "https://github.com/Vonage/vonage-python-sdk"
628

729
[build-system]
830
requires = ["setuptools>=61.0", "wheel"]

http_client/src/http_client/http_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
from requests.sessions import Session
1717
from typing_extensions import Annotated
1818

19-
logger = getLogger('vonage-http-client-v2')
19+
logger = getLogger('vonage')
2020

2121

2222
class HttpClientOptions(BaseModel):

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', 'utils'])
1+
python_tests(dependencies=['http_client'])

number_insight_v2/BUILD

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,11 @@ files(sources=['tests/data/*'])
44

55
python_distribution(
66
name='vonage-number-insight-v2',
7-
dependencies=[':pyproject', 'number_insight_v2/src/number_insight_v2', 'utils'],
7+
dependencies=[
8+
':pyproject',
9+
'number_insight_v2/src/number_insight_v2',
10+
'utils/src/utils',
11+
],
812
provides=python_artifact(),
913
generate_setup=False,
1014
repositories=['https://test.pypi.org/legacy/'],

number_insight_v2/pyproject.toml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
11
[project]
22
name = 'vonage-number-insight-v2'
3-
description = 'Vonage Number Insight v2 package'
43
version = '0.1.0'
4+
description = 'Vonage Number Insight v2 package'
55
readme = "README.md"
66
authors = [{ name = "Vonage", email = "devrel@vonage.com" }]
7-
license = "Apache"
8-
homepage = "https://github.com/Vonage/vonage-python-sdk"
7+
requires-python = ">=3.8"
8+
dependencies = [
9+
"vonage-http-client>=0.1.0",
10+
"vonage-utils>=0.1.0",
11+
"pydantic>=2.6.1",
12+
]
913
classifiers = [
1014
"Programming Language :: Python",
1115
"Programming Language :: Python :: 3",
@@ -14,10 +18,11 @@ classifiers = [
1418
"Programming Language :: Python :: 3.10",
1519
"Programming Language :: Python :: 3.11",
1620
"Programming Language :: Python :: 3.12",
21+
"License :: OSI Approved :: Apache Software License",
1722
]
1823

19-
[project.python-requires]
20-
python_version = ">=3.8"
24+
[project.urls]
25+
homepage = "https://github.com/Vonage/vonage-python-sdk"
2126

2227
[build-system]
2328
requires = ["setuptools>=61.0", "wheel"]

number_insight_v2/src/number_insight_v2/errors.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from errors import VonageError
1+
from utils.errors import VonageError
22

33

44
class NumberInsightV2Error(VonageError):

number_insight_v2/tests/test_number_insight_v2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
NumberInsightV2,
1414
)
1515
from testing_utils import build_response
16-
from utils import remove_none_values
16+
from utils.utils import remove_none_values
1717

1818
path = abspath(__file__)
1919

pants.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ filter = [
3131
'vonage/src',
3232
'http_client/src',
3333
'number_insight_v2/src',
34+
'utils/src',
3435
'testing_utils',
3536
]
3637

testing_utils/BUILD

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
python_sources()
1+
python_sources(name='testing_utils')

0 commit comments

Comments
 (0)