Skip to content

Commit

Permalink
feat: Use populated version as ua version (J-Quants#89)
Browse files Browse the repository at this point in the history
* chore: remove Python 3.7 support

* chore: adjust numpy version for python 3.12

* feat: use dynamically populated version as ua version

* chore: poetry lock
  • Loading branch information
hiohiohio authored Mar 26, 2024
1 parent 63549df commit 5e52af5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions jquantsapi/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
# this version will be overwritten by poetry-dynamic-versioning
__version__ = "0.0.0"

from .client import Client
from .enums import MARKET_API_SECTIONS
4 changes: 2 additions & 2 deletions jquantsapi/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
)
from urllib3.util import Retry

from jquantsapi import constants, enums
from jquantsapi import __version__, constants, enums

if sys.version_info >= (3, 11):
import tomllib
Expand All @@ -44,7 +44,7 @@ class Client:
JQUANTS_API_BASE = "https://api.jquants.com/v1"
MAX_WORKERS = 5
USER_AGENT = "jqapi-python"
USER_AGENT_VERSION = "0.0.0"
USER_AGENT_VERSION = __version__
RAW_ENCODING = "utf-8"

def __init__(
Expand Down

0 comments on commit 5e52af5

Please sign in to comment.