File tree Expand file tree Collapse file tree 4 files changed +5
-6
lines changed
Expand file tree Collapse file tree 4 files changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44
55[project ]
66name = " TorBox"
7- version = " 0.1.0"
7+ version = " 0.1.0-alpha.0 "
88description = " Python wrapper for the TorBox API"
99readme = " README.md"
1010authors = [
Original file line number Diff line number Diff line change 1- __all__ = ["__version__" , " TorBox" ]
1+ __all__ = ["TorBox" ]
22
3- from .version import __version__ as __version__ # noqa: I001
43from .client import TorBox as TorBox
Original file line number Diff line number Diff line change 1+ import importlib .metadata
12import time
23from typing import Any , Dict
34
45import requests
56from typing_extensions import Optional
67
7- from torbox . version import __version__
8+ _VERSION = importlib . metadata . version ( "torbox" )
89
910
1011class TorBoxError (Exception ):
@@ -43,7 +44,7 @@ def __init__(
4344 self ._session .headers .update (
4445 {
4546 "Authorization" : f"Bearer { self ._api_key } " ,
46- "User-Agent" : f"TorBox.py/{ __version__ } " ,
47+ "User-Agent" : f"TorBox.py/{ _VERSION } " ,
4748 }
4849 )
4950
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments