blizzardapi2 2.0.7__tar.gz → 2.1.3__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {blizzardapi2-2.0.7 → blizzardapi2-2.1.3}/.github/workflows/python-package.yml +22 -44
- {blizzardapi2-2.0.7/blizzardapi2.egg-info → blizzardapi2-2.1.3}/PKG-INFO +2 -3
- {blizzardapi2-2.0.7 → blizzardapi2-2.1.3}/blizzardapi2/_version.py +2 -2
- {blizzardapi2-2.0.7 → blizzardapi2-2.1.3}/blizzardapi2/api.py +57 -33
- {blizzardapi2-2.0.7 → blizzardapi2-2.1.3}/blizzardapi2/wow/wow_game_data_api.py +4 -1
- {blizzardapi2-2.0.7 → blizzardapi2-2.1.3}/blizzardapi2/wow/wow_profile_api.py +7 -4
- {blizzardapi2-2.0.7 → blizzardapi2-2.1.3/blizzardapi2.egg-info}/PKG-INFO +2 -3
- {blizzardapi2-2.0.7 → blizzardapi2-2.1.3}/blizzardapi2.egg-info/SOURCES.txt +0 -1
- {blizzardapi2-2.0.7 → blizzardapi2-2.1.3}/package.json +6 -1
- {blizzardapi2-2.0.7 → blizzardapi2-2.1.3}/pyproject.toml +8 -6
- {blizzardapi2-2.0.7 → blizzardapi2-2.1.3}/uv.lock +27 -1
- blizzardapi2-2.0.7/.github/workflows/release.yml +0 -21
- {blizzardapi2-2.0.7 → blizzardapi2-2.1.3}/.github/ISSUE_TEMPLATE/bug_report.md +0 -0
- {blizzardapi2-2.0.7 → blizzardapi2-2.1.3}/.github/ISSUE_TEMPLATE/feature_request.md +0 -0
- {blizzardapi2-2.0.7 → blizzardapi2-2.1.3}/.github/dependabot.yml +0 -0
- {blizzardapi2-2.0.7 → blizzardapi2-2.1.3}/.github/workflows/black.yml +0 -0
- {blizzardapi2-2.0.7 → blizzardapi2-2.1.3}/.gitignore +0 -0
- {blizzardapi2-2.0.7 → blizzardapi2-2.1.3}/CODE_OF_CONDUCT.md +0 -0
- {blizzardapi2-2.0.7 → blizzardapi2-2.1.3}/CONTRIBUTING.md +0 -0
- {blizzardapi2-2.0.7 → blizzardapi2-2.1.3}/LICENSE +0 -0
- {blizzardapi2-2.0.7 → blizzardapi2-2.1.3}/README.md +0 -0
- {blizzardapi2-2.0.7 → blizzardapi2-2.1.3}/SECURITY.md +0 -0
- {blizzardapi2-2.0.7 → blizzardapi2-2.1.3}/blizzardapi2/__init__.py +0 -0
- {blizzardapi2-2.0.7 → blizzardapi2-2.1.3}/blizzardapi2/battlenet/__init__.py +0 -0
- {blizzardapi2-2.0.7 → blizzardapi2-2.1.3}/blizzardapi2/battlenet/battlenet_api.py +0 -0
- {blizzardapi2-2.0.7 → blizzardapi2-2.1.3}/blizzardapi2/battlenet/battlenet_oauth_api.py +0 -0
- {blizzardapi2-2.0.7 → blizzardapi2-2.1.3}/blizzardapi2/blizzard_api.py +0 -0
- {blizzardapi2-2.0.7 → blizzardapi2-2.1.3}/blizzardapi2/diablo3/__init__.py +0 -0
- {blizzardapi2-2.0.7 → blizzardapi2-2.1.3}/blizzardapi2/diablo3/diablo3_api.py +0 -0
- {blizzardapi2-2.0.7 → blizzardapi2-2.1.3}/blizzardapi2/diablo3/diablo3_community_api.py +0 -0
- {blizzardapi2-2.0.7 → blizzardapi2-2.1.3}/blizzardapi2/diablo3/diablo3_game_data_api.py +0 -0
- {blizzardapi2-2.0.7 → blizzardapi2-2.1.3}/blizzardapi2/hearthstone/__init__.py +0 -0
- {blizzardapi2-2.0.7 → blizzardapi2-2.1.3}/blizzardapi2/hearthstone/hearthstone_api.py +0 -0
- {blizzardapi2-2.0.7 → blizzardapi2-2.1.3}/blizzardapi2/hearthstone/hearthstone_game_data_api.py +0 -0
- {blizzardapi2-2.0.7 → blizzardapi2-2.1.3}/blizzardapi2/starcraft2/__init__.py +0 -0
- {blizzardapi2-2.0.7 → blizzardapi2-2.1.3}/blizzardapi2/starcraft2/starcraft2_api.py +0 -0
- {blizzardapi2-2.0.7 → blizzardapi2-2.1.3}/blizzardapi2/starcraft2/starcraft2_community_api.py +0 -0
- {blizzardapi2-2.0.7 → blizzardapi2-2.1.3}/blizzardapi2/starcraft2/starcraft2_game_data_api.py +0 -0
- {blizzardapi2-2.0.7 → blizzardapi2-2.1.3}/blizzardapi2/types.py +0 -0
- {blizzardapi2-2.0.7 → blizzardapi2-2.1.3}/blizzardapi2/wow/__init__.py +0 -0
- {blizzardapi2-2.0.7 → blizzardapi2-2.1.3}/blizzardapi2/wow/wow_api.py +0 -0
- {blizzardapi2-2.0.7 → blizzardapi2-2.1.3}/blizzardapi2.egg-info/dependency_links.txt +0 -0
- {blizzardapi2-2.0.7 → blizzardapi2-2.1.3}/blizzardapi2.egg-info/requires.txt +0 -0
- {blizzardapi2-2.0.7 → blizzardapi2-2.1.3}/blizzardapi2.egg-info/top_level.txt +0 -0
- {blizzardapi2-2.0.7 → blizzardapi2-2.1.3}/docs/battlenet/README.md +0 -0
- {blizzardapi2-2.0.7 → blizzardapi2-2.1.3}/docs/diablo3/README.md +0 -0
- {blizzardapi2-2.0.7 → blizzardapi2-2.1.3}/docs/hearthstone/README.md +0 -0
- {blizzardapi2-2.0.7 → blizzardapi2-2.1.3}/docs/pull_request_template.md +0 -0
- {blizzardapi2-2.0.7 → blizzardapi2-2.1.3}/docs/starcraft2/README.md +0 -0
- {blizzardapi2-2.0.7 → blizzardapi2-2.1.3}/docs/wow/README.md +0 -0
- {blizzardapi2-2.0.7 → blizzardapi2-2.1.3}/setup.cfg +0 -0
|
@@ -7,6 +7,10 @@ on:
|
|
|
7
7
|
push:
|
|
8
8
|
branches: ["main"]
|
|
9
9
|
|
|
10
|
+
# Add permissions block
|
|
11
|
+
permissions:
|
|
12
|
+
contents: write
|
|
13
|
+
|
|
10
14
|
jobs:
|
|
11
15
|
checkout:
|
|
12
16
|
runs-on: ubuntu-latest
|
|
@@ -18,7 +22,7 @@ jobs:
|
|
|
18
22
|
steps:
|
|
19
23
|
- uses: actions/checkout@v4
|
|
20
24
|
with:
|
|
21
|
-
fetch-depth: 0
|
|
25
|
+
fetch-depth: 0
|
|
22
26
|
|
|
23
27
|
- name: Set up Python ${{ matrix.python-version }}
|
|
24
28
|
uses: actions/setup-python@v5
|
|
@@ -64,6 +68,10 @@ jobs:
|
|
|
64
68
|
- name: Install dependencies
|
|
65
69
|
run: |
|
|
66
70
|
uv pip install -e ".[dev]"
|
|
71
|
+
- name: Configure Git
|
|
72
|
+
run: |
|
|
73
|
+
git config --global user.name "lostcol0ny"
|
|
74
|
+
git config --global user.email "c098os0k@4wrd.cc"
|
|
67
75
|
|
|
68
76
|
- name: Build and publish to PyPI
|
|
69
77
|
run: |
|
|
@@ -73,61 +81,31 @@ jobs:
|
|
|
73
81
|
CURRENT_VERSION=$(grep 'version = ' pyproject.toml | cut -d'"' -f2)
|
|
74
82
|
# Split version into major.minor.patch
|
|
75
83
|
IFS='.' read -r MAJOR MINOR PATCH <<< "$CURRENT_VERSION"
|
|
76
|
-
# Increment
|
|
84
|
+
# Increment patch version
|
|
77
85
|
NEW_VERSION="$MAJOR.$MINOR.$((PATCH + 1))"
|
|
78
86
|
# Update version in pyproject.toml
|
|
79
87
|
sed -i "s/version = \".*\"/version = \"$NEW_VERSION\"/" pyproject.toml
|
|
80
88
|
# Update version in package.json
|
|
81
89
|
sed -i "s/\"version\": \".*\"/\"version\": \"$NEW_VERSION\"/" package.json
|
|
90
|
+
# Commit the version changes
|
|
91
|
+
git add pyproject.toml package.json
|
|
92
|
+
git commit -m "chore: bump version to $NEW_VERSION"
|
|
93
|
+
git push https://${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}.git
|
|
82
94
|
python -m build
|
|
83
95
|
twine upload dist/* --username __token__ --password ${{ secrets.PYPI_API_TOKEN }}
|
|
84
|
-
|
|
85
96
|
release:
|
|
86
|
-
runs-on: ubuntu-latest
|
|
87
97
|
needs: publish
|
|
88
|
-
|
|
89
|
-
permissions:
|
|
90
|
-
contents: write
|
|
91
|
-
issues: write
|
|
92
|
-
pull-requests: write
|
|
93
|
-
|
|
98
|
+
runs-on: ubuntu-latest
|
|
94
99
|
steps:
|
|
95
|
-
- name: Checkout
|
|
100
|
+
- name: Checkout repository
|
|
96
101
|
uses: actions/checkout@v4
|
|
97
|
-
|
|
98
|
-
fetch-depth: 0
|
|
99
|
-
token: ${{ secrets.GITHUB_TOKEN }}
|
|
100
|
-
|
|
101
|
-
- name: Setup Python
|
|
102
|
-
uses: actions/setup-python@v5
|
|
103
|
-
with:
|
|
104
|
-
python-version: "3.11"
|
|
105
|
-
|
|
106
|
-
- name: Install Node.js
|
|
102
|
+
- name: Setup Node.js
|
|
107
103
|
uses: actions/setup-node@v4
|
|
108
104
|
with:
|
|
109
|
-
node-version: "
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
curl -LsSf https://astral.sh/uv/install.sh | sh
|
|
114
|
-
echo "$HOME/.cargo/bin" >> $GITHUB_PATH
|
|
115
|
-
|
|
116
|
-
- name: Create virtual environment
|
|
117
|
-
run: |
|
|
118
|
-
uv venv
|
|
119
|
-
|
|
120
|
-
- name: Install dependencies
|
|
121
|
-
run: |
|
|
122
|
-
uv pip install -e ".[dev]"
|
|
123
|
-
npm install
|
|
124
|
-
|
|
125
|
-
- name: Configure Git
|
|
126
|
-
run: |
|
|
127
|
-
git config user.email "github-actions@github.com"
|
|
128
|
-
git config user.name "Github Actions"
|
|
129
|
-
|
|
130
|
-
- name: Run release-it
|
|
105
|
+
node-version: "18.x"
|
|
106
|
+
- name: Install npm dependencies
|
|
107
|
+
run: npm install
|
|
108
|
+
- name: Run release script
|
|
131
109
|
env:
|
|
132
110
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
133
|
-
run:
|
|
111
|
+
run: npm run release
|
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: blizzardapi2
|
|
3
|
-
Version: 2.
|
|
3
|
+
Version: 2.1.3
|
|
4
4
|
Summary: A Python wrapper for Blizzard API
|
|
5
5
|
Author-email: lostcol0ny <c098os0k@4wrd.cc>
|
|
6
|
-
License: MIT
|
|
6
|
+
License-Expression: MIT
|
|
7
7
|
Classifier: Programming Language :: Python :: 3
|
|
8
8
|
Classifier: Programming Language :: Python :: 3.11
|
|
9
9
|
Classifier: Programming Language :: Python :: 3.12
|
|
10
10
|
Classifier: Programming Language :: Python :: 3.13
|
|
11
|
-
Classifier: License :: OSI Approved :: MIT License
|
|
12
11
|
Classifier: Operating System :: OS Independent
|
|
13
12
|
Requires-Python: >=3.11
|
|
14
13
|
Description-Content-Type: text/markdown
|
|
@@ -17,5 +17,5 @@ __version__: str
|
|
|
17
17
|
__version_tuple__: VERSION_TUPLE
|
|
18
18
|
version_tuple: VERSION_TUPLE
|
|
19
19
|
|
|
20
|
-
__version__ = version = '
|
|
21
|
-
__version_tuple__ = version_tuple = (
|
|
20
|
+
__version__ = version = '2.0.8.dev6+gecd749f'
|
|
21
|
+
__version_tuple__ = version_tuple = (2, 0, 8, 'dev6', 'gecd749f')
|
|
@@ -266,21 +266,30 @@ class BaseApi:
|
|
|
266
266
|
TokenError: If the token request fails.
|
|
267
267
|
"""
|
|
268
268
|
if self._token is None or self._is_token_expired():
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
raise TokenError(
|
|
276
|
-
f"Failed to get token: {response.status_code} {response.reason}",
|
|
277
|
-
response=response,
|
|
269
|
+
try:
|
|
270
|
+
url = "https://oauth.battle.net/oauth/token"
|
|
271
|
+
response = self._session.post(
|
|
272
|
+
url,
|
|
273
|
+
auth=(self._client_id, self._client_secret),
|
|
274
|
+
data={"grant_type": "client_credentials"},
|
|
278
275
|
)
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
276
|
+
if response.status_code != 200:
|
|
277
|
+
error_msg = f"Failed to get token: {response.status_code} {response.reason}"
|
|
278
|
+
try:
|
|
279
|
+
error_data = response.json()
|
|
280
|
+
error_msg += f"\nError details: {error_data}"
|
|
281
|
+
except:
|
|
282
|
+
error_msg += f"\nResponse body: {response.text}"
|
|
283
|
+
raise TokenError(error_msg, response=response)
|
|
284
|
+
data = response.json()
|
|
285
|
+
self._token = data["access_token"]
|
|
286
|
+
self._token_type = data["token_type"]
|
|
287
|
+
self._token_expires_in = data["expires_in"]
|
|
288
|
+
self._token_created_at = response.elapsed.total_seconds()
|
|
289
|
+
except Exception as e:
|
|
290
|
+
if not isinstance(e, TokenError):
|
|
291
|
+
raise TokenError(f"Unexpected error getting token: {str(e)}")
|
|
292
|
+
raise
|
|
284
293
|
return self._token
|
|
285
294
|
|
|
286
295
|
async def _get_token_async(self) -> str:
|
|
@@ -293,24 +302,33 @@ class BaseApi:
|
|
|
293
302
|
TokenError: If the token request fails.
|
|
294
303
|
"""
|
|
295
304
|
if self._token is None or self._is_token_expired():
|
|
296
|
-
|
|
297
|
-
self._async_session
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
raise TokenError(
|
|
305
|
-
f"Failed to get token: {response.status} {response.reason}",
|
|
306
|
-
response=response,
|
|
305
|
+
try:
|
|
306
|
+
if self._async_session is None:
|
|
307
|
+
self._async_session = aiohttp.ClientSession()
|
|
308
|
+
url = "https://oauth.battle.net/oauth/token"
|
|
309
|
+
response = await self._async_session.post(
|
|
310
|
+
url,
|
|
311
|
+
auth=aiohttp.BasicAuth(self._client_id, self._client_secret),
|
|
312
|
+
data={"grant_type": "client_credentials"},
|
|
307
313
|
)
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
+
if response.status != 200:
|
|
315
|
+
error_msg = f"Failed to get token: {response.status} {response.reason}"
|
|
316
|
+
try:
|
|
317
|
+
error_data = await response.json()
|
|
318
|
+
error_msg += f"\nError details: {error_data}"
|
|
319
|
+
except:
|
|
320
|
+
error_msg += f"\nResponse body: {await response.text()}"
|
|
321
|
+
raise TokenError(error_msg, response=response)
|
|
322
|
+
data = await response.json()
|
|
323
|
+
self._token = data["access_token"]
|
|
324
|
+
self._token_type = data["token_type"]
|
|
325
|
+
self._token_expires_in = data["expires_in"]
|
|
326
|
+
self._token_created_at = response.elapsed.total_seconds()
|
|
327
|
+
await response.release()
|
|
328
|
+
except Exception as e:
|
|
329
|
+
if not isinstance(e, TokenError):
|
|
330
|
+
raise TokenError(f"Unexpected error getting token: {str(e)}")
|
|
331
|
+
raise
|
|
314
332
|
return self._token
|
|
315
333
|
|
|
316
334
|
def _is_token_expired(self) -> bool:
|
|
@@ -346,9 +364,12 @@ class BaseApi:
|
|
|
346
364
|
TokenError: If the token request fails.
|
|
347
365
|
"""
|
|
348
366
|
token = self._get_token()
|
|
367
|
+
headers = {"Authorization": f"Bearer {token}"}
|
|
368
|
+
endpoint = endpoint.lstrip('/')
|
|
349
369
|
response = self._session.get(
|
|
350
370
|
f"https://{region}.api.blizzard.com/{endpoint}",
|
|
351
|
-
|
|
371
|
+
headers=headers,
|
|
372
|
+
params={"locale": self._locale, **query_params},
|
|
352
373
|
)
|
|
353
374
|
if response.status_code != 200:
|
|
354
375
|
raise TokenError(
|
|
@@ -379,9 +400,12 @@ class BaseApi:
|
|
|
379
400
|
token = await self._get_token_async()
|
|
380
401
|
if self._async_session is None:
|
|
381
402
|
self._async_session = aiohttp.ClientSession()
|
|
403
|
+
headers = {"Authorization": f"Bearer {token}"}
|
|
404
|
+
endpoint = endpoint.lstrip('/')
|
|
382
405
|
response = await self._async_session.get(
|
|
383
406
|
f"https://{region}.api.blizzard.com/{endpoint}",
|
|
384
|
-
|
|
407
|
+
headers=headers,
|
|
408
|
+
params={"locale": self._locale, **query_params},
|
|
385
409
|
)
|
|
386
410
|
if response.status != 200:
|
|
387
411
|
raise TokenError(
|
|
@@ -2617,5 +2617,8 @@ class WowGameDataApi(BaseApi):
|
|
|
2617
2617
|
"""
|
|
2618
2618
|
resource = "/data/wow/token/index"
|
|
2619
2619
|
namespace = f"dynamic-classic-{region}" if is_classic else f"dynamic-{region}"
|
|
2620
|
-
query_params = {
|
|
2620
|
+
query_params = {
|
|
2621
|
+
"namespace": namespace,
|
|
2622
|
+
"locale": locale,
|
|
2623
|
+
}
|
|
2621
2624
|
return self.get_resource(resource, region, query_params)
|
|
@@ -587,16 +587,19 @@ class WowProfileApi(BaseApi):
|
|
|
587
587
|
Return a profile summary for a character.
|
|
588
588
|
|
|
589
589
|
Args:
|
|
590
|
-
region (
|
|
591
|
-
locale (
|
|
590
|
+
region (Region): The region to query.
|
|
591
|
+
locale (Locale): The locale to use for the response.
|
|
592
592
|
realm_slug (str): The slug of the realm.
|
|
593
593
|
character_name (str): The name of the character.
|
|
594
594
|
|
|
595
595
|
Returns:
|
|
596
|
-
|
|
596
|
+
dict[str, Any]: A dictionary containing the character profile summary.
|
|
597
597
|
"""
|
|
598
598
|
resource = f"/profile/wow/character/{realm_slug}/{character_name}"
|
|
599
|
-
query_params = {
|
|
599
|
+
query_params = {
|
|
600
|
+
"namespace": f"profile-{region}",
|
|
601
|
+
"locale": locale,
|
|
602
|
+
}
|
|
600
603
|
return self.get_resource(resource, region, query_params)
|
|
601
604
|
|
|
602
605
|
def get_character_profile_status(
|
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: blizzardapi2
|
|
3
|
-
Version: 2.
|
|
3
|
+
Version: 2.1.3
|
|
4
4
|
Summary: A Python wrapper for Blizzard API
|
|
5
5
|
Author-email: lostcol0ny <c098os0k@4wrd.cc>
|
|
6
|
-
License: MIT
|
|
6
|
+
License-Expression: MIT
|
|
7
7
|
Classifier: Programming Language :: Python :: 3
|
|
8
8
|
Classifier: Programming Language :: Python :: 3.11
|
|
9
9
|
Classifier: Programming Language :: Python :: 3.12
|
|
10
10
|
Classifier: Programming Language :: Python :: 3.13
|
|
11
|
-
Classifier: License :: OSI Approved :: MIT License
|
|
12
11
|
Classifier: Operating System :: OS Independent
|
|
13
12
|
Requires-Python: >=3.11
|
|
14
13
|
Description-Content-Type: text/markdown
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "blizzardapi2",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.1.3",
|
|
4
4
|
"private": true,
|
|
5
5
|
"scripts": {
|
|
6
6
|
"release": "release-it"
|
|
@@ -17,6 +17,11 @@
|
|
|
17
17
|
"release": true,
|
|
18
18
|
"releaseName": "Release v${version}",
|
|
19
19
|
"releaseNotes": "git log --pretty=format:\"* %s (%h)\" ${latestTag}...HEAD"
|
|
20
|
+
},
|
|
21
|
+
"hooks": {
|
|
22
|
+
"after:bump": [
|
|
23
|
+
"sed -i 's/version = \".*\"/version = \"${version}\"/' pyproject.toml"
|
|
24
|
+
]
|
|
20
25
|
}
|
|
21
26
|
}
|
|
22
27
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "blizzardapi2"
|
|
3
|
-
version = "2.
|
|
3
|
+
version = "2.1.3"
|
|
4
4
|
description = "A Python wrapper for Blizzard API"
|
|
5
5
|
authors = [{ name = "lostcol0ny", email = "c098os0k@4wrd.cc" }]
|
|
6
|
-
license =
|
|
6
|
+
license = "MIT"
|
|
7
7
|
readme = "README.md"
|
|
8
8
|
dependencies = [
|
|
9
9
|
"requests>=2.32.3,<3.0.0",
|
|
@@ -20,7 +20,6 @@ classifiers = [
|
|
|
20
20
|
"Programming Language :: Python :: 3.11",
|
|
21
21
|
"Programming Language :: Python :: 3.12",
|
|
22
22
|
"Programming Language :: Python :: 3.13",
|
|
23
|
-
"License :: OSI Approved :: MIT License",
|
|
24
23
|
"Operating System :: OS Independent",
|
|
25
24
|
]
|
|
26
25
|
|
|
@@ -28,9 +27,12 @@ classifiers = [
|
|
|
28
27
|
requires = ["setuptools>=42", "wheel", "setuptools_scm[toml]>=6.2"]
|
|
29
28
|
build-backend = "setuptools.build_meta"
|
|
30
29
|
|
|
30
|
+
[tool.setuptools]
|
|
31
|
+
packages = ["blizzardapi2"]
|
|
32
|
+
|
|
31
33
|
[tool.setuptools_scm]
|
|
32
|
-
write_to = "blizzardapi2/_version.py"
|
|
33
|
-
local_scheme = "node-and-timestamp"
|
|
34
|
+
write_to = "blizzardapi2/_version.py"
|
|
35
|
+
local_scheme = "node-and-timestamp"
|
|
34
36
|
|
|
35
37
|
[project.optional-dependencies]
|
|
36
38
|
dev = [
|
|
@@ -76,7 +78,7 @@ exclude = [
|
|
|
76
78
|
line-length = 120
|
|
77
79
|
|
|
78
80
|
# Assume Python 3.1
|
|
79
|
-
target-version = "2.
|
|
81
|
+
target-version = "2.1.3"
|
|
80
82
|
|
|
81
83
|
[tool.ruff.lint]
|
|
82
84
|
# Enable Pyflakes (`F`) and a subset of the pycodestyle (`E`) codes by default.
|
|
@@ -138,7 +138,7 @@ wheels = [
|
|
|
138
138
|
|
|
139
139
|
[[package]]
|
|
140
140
|
name = "blizzardapi2"
|
|
141
|
-
version = "
|
|
141
|
+
version = "2.1.0"
|
|
142
142
|
source = { editable = "." }
|
|
143
143
|
dependencies = [
|
|
144
144
|
{ name = "aiohttp" },
|
|
@@ -150,15 +150,29 @@ dependencies = [
|
|
|
150
150
|
{ name = "ruff" },
|
|
151
151
|
]
|
|
152
152
|
|
|
153
|
+
[package.optional-dependencies]
|
|
154
|
+
dev = [
|
|
155
|
+
{ name = "black" },
|
|
156
|
+
{ name = "pytest" },
|
|
157
|
+
{ name = "pytest-asyncio" },
|
|
158
|
+
{ name = "pytest-mock" },
|
|
159
|
+
{ name = "ruff" },
|
|
160
|
+
]
|
|
161
|
+
|
|
153
162
|
[package.metadata]
|
|
154
163
|
requires-dist = [
|
|
155
164
|
{ name = "aiohttp", specifier = ">=3.12.12" },
|
|
156
165
|
{ name = "black", specifier = ">=24.4.2,<25.0.0" },
|
|
166
|
+
{ name = "black", marker = "extra == 'dev'", specifier = ">=24.4.2,<25.0.0" },
|
|
157
167
|
{ name = "pydantic", specifier = ">=2.11.6" },
|
|
158
168
|
{ name = "pytest", specifier = ">=8.2.2,<9.0.0" },
|
|
169
|
+
{ name = "pytest", marker = "extra == 'dev'", specifier = ">=8.2.2,<9.0.0" },
|
|
170
|
+
{ name = "pytest-asyncio", marker = "extra == 'dev'", specifier = ">=0.23.5,<1.0.0" },
|
|
159
171
|
{ name = "pytest-mock", specifier = ">=3.14.0,<4.0.0" },
|
|
172
|
+
{ name = "pytest-mock", marker = "extra == 'dev'", specifier = ">=3.14.0,<4.0.0" },
|
|
160
173
|
{ name = "requests", specifier = ">=2.32.3,<3.0.0" },
|
|
161
174
|
{ name = "ruff", specifier = ">=0.3.0,<1.0.0" },
|
|
175
|
+
{ name = "ruff", marker = "extra == 'dev'", specifier = ">=0.3.0,<1.0.0" },
|
|
162
176
|
]
|
|
163
177
|
|
|
164
178
|
[[package]]
|
|
@@ -634,6 +648,18 @@ wheels = [
|
|
|
634
648
|
{ url = "https://files.pythonhosted.org/packages/2f/de/afa024cbe022b1b318a3d224125aa24939e99b4ff6f22e0ba639a2eaee47/pytest-8.4.0-py3-none-any.whl", hash = "sha256:f40f825768ad76c0977cbacdf1fd37c6f7a468e460ea6a0636078f8972d4517e", size = 363797 },
|
|
635
649
|
]
|
|
636
650
|
|
|
651
|
+
[[package]]
|
|
652
|
+
name = "pytest-asyncio"
|
|
653
|
+
version = "0.26.0"
|
|
654
|
+
source = { registry = "https://pypi.org/simple" }
|
|
655
|
+
dependencies = [
|
|
656
|
+
{ name = "pytest" },
|
|
657
|
+
]
|
|
658
|
+
sdist = { url = "https://files.pythonhosted.org/packages/8e/c4/453c52c659521066969523e87d85d54139bbd17b78f09532fb8eb8cdb58e/pytest_asyncio-0.26.0.tar.gz", hash = "sha256:c4df2a697648241ff39e7f0e4a73050b03f123f760673956cf0d72a4990e312f", size = 54156 }
|
|
659
|
+
wheels = [
|
|
660
|
+
{ url = "https://files.pythonhosted.org/packages/20/7f/338843f449ace853647ace35870874f69a764d251872ed1b4de9f234822c/pytest_asyncio-0.26.0-py3-none-any.whl", hash = "sha256:7b51ed894f4fbea1340262bdae5135797ebbe21d8638978e35d31c6d19f72fb0", size = 19694 },
|
|
661
|
+
]
|
|
662
|
+
|
|
637
663
|
[[package]]
|
|
638
664
|
name = "pytest-mock"
|
|
639
665
|
version = "3.14.1"
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
name: Release a new version
|
|
2
|
-
on:
|
|
3
|
-
push:
|
|
4
|
-
branches:
|
|
5
|
-
- main
|
|
6
|
-
jobs:
|
|
7
|
-
release:
|
|
8
|
-
runs-on: ubuntu-latest
|
|
9
|
-
steps:
|
|
10
|
-
- name: Checkout repository
|
|
11
|
-
uses: actions/checkout@v4
|
|
12
|
-
- name: Setup Node.js
|
|
13
|
-
uses: actions/setup-node@v4
|
|
14
|
-
with:
|
|
15
|
-
node-version: "18.x"
|
|
16
|
-
- name: Install npm dependencies
|
|
17
|
-
run: npm install
|
|
18
|
-
- name: Run release script
|
|
19
|
-
env:
|
|
20
|
-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
21
|
-
run: npm run release
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{blizzardapi2-2.0.7 → blizzardapi2-2.1.3}/blizzardapi2/hearthstone/hearthstone_game_data_api.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{blizzardapi2-2.0.7 → blizzardapi2-2.1.3}/blizzardapi2/starcraft2/starcraft2_community_api.py
RENAMED
|
File without changes
|
{blizzardapi2-2.0.7 → blizzardapi2-2.1.3}/blizzardapi2/starcraft2/starcraft2_game_data_api.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|