Skip to content

Commit fa9b891

Browse files
author
Anonymous Committer
committed
chore: release 2.0.0
1 parent 2f04f6a commit fa9b891

File tree

8 files changed

+13
-8
lines changed

8 files changed

+13
-8
lines changed

justserpapi/__init__.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@
44

55
"""JustSerpAPI Python SDK."""
66

7-
8-
__version__ = "1.0.4"
7+
from justserpapi._version import __version__
98

109
# Define package exports
1110
__all__ = [

justserpapi/_version.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
"""Package version."""
2+
3+
__version__ = "2.0.0"

justserpapi/api_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
from urllib.parse import quote
1717
from typing import Tuple, Optional, List, Dict, Union
1818
from pydantic import SecretStr
19-
from justserpapi import __version__
19+
from justserpapi._version import __version__
2020

2121
from justserpapi.configuration import Configuration
2222
from justserpapi.api_response import ApiResponse, T as ApiResponseT

justserpapi/configuration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
from logging import FileHandler
88
import multiprocessing
99
import sys
10-
from justserpapi import __version__
10+
from justserpapi._version import __version__
1111
from typing import Any, ClassVar, Dict, List, Literal, Optional, TypedDict, Union
1212
from typing_extensions import NotRequired, Self
1313

overlays/python/justserpapi/__init__.py.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
"""JustSerpAPI Python SDK."""
66

7-
__version__ = "{{SPEC_VERSION}}"
7+
from justserpapi._version import __version__
88

99
__all__ = [
1010
"Client",
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
"""Package version."""
2+
3+
__version__ = "{{SPEC_VERSION}}"

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ include-package-data = true
4545
include = ["justserpapi*"]
4646

4747
[tool.setuptools.dynamic]
48-
version = {attr = "justserpapi.__init__.__version__"}
48+
version = {attr = "justserpapi._version.__version__"}
4949

5050
[tool.setuptools.package-data]
5151
justserpapi = ["py.typed"]

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
NAME = "justserpapi"
77

88
VERSION = "1.0.0"
9-
# Get the version from __init__.py
10-
with open(os.path.join(os.path.dirname(__file__), 'justserpapi', '__init__.py')) as f:
9+
# Get the version from _version.py
10+
with open(os.path.join(os.path.dirname(__file__), 'justserpapi', '_version.py')) as f:
1111
for line in f:
1212
if line.startswith('__version__ ='):
1313
VERSION = line.split('=')[1].strip().strip('"').strip("'")

0 commit comments

Comments
 (0)