blizzardapi2 2.0.2__tar.gz → 2.0.6__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.2 → blizzardapi2-2.0.6}/.github/workflows/python-package.yml +52 -0
- blizzardapi2-2.0.6/.github/workflows/release.yml +21 -0
- {blizzardapi2-2.0.2 → blizzardapi2-2.0.6}/PKG-INFO +1 -1
- {blizzardapi2-2.0.2 → blizzardapi2-2.0.6}/blizzardapi2/_version.py +2 -2
- {blizzardapi2-2.0.2 → blizzardapi2-2.0.6}/blizzardapi2.egg-info/PKG-INFO +1 -1
- {blizzardapi2-2.0.2 → blizzardapi2-2.0.6}/blizzardapi2.egg-info/SOURCES.txt +2 -0
- blizzardapi2-2.0.6/package.json +22 -0
- {blizzardapi2-2.0.2 → blizzardapi2-2.0.6}/pyproject.toml +2 -2
- {blizzardapi2-2.0.2 → blizzardapi2-2.0.6}/.github/ISSUE_TEMPLATE/bug_report.md +0 -0
- {blizzardapi2-2.0.2 → blizzardapi2-2.0.6}/.github/ISSUE_TEMPLATE/feature_request.md +0 -0
- {blizzardapi2-2.0.2 → blizzardapi2-2.0.6}/.github/dependabot.yml +0 -0
- {blizzardapi2-2.0.2 → blizzardapi2-2.0.6}/.github/workflows/black.yml +0 -0
- {blizzardapi2-2.0.2 → blizzardapi2-2.0.6}/.gitignore +0 -0
- {blizzardapi2-2.0.2 → blizzardapi2-2.0.6}/CODE_OF_CONDUCT.md +0 -0
- {blizzardapi2-2.0.2 → blizzardapi2-2.0.6}/CONTRIBUTING.md +0 -0
- {blizzardapi2-2.0.2 → blizzardapi2-2.0.6}/LICENSE +0 -0
- {blizzardapi2-2.0.2 → blizzardapi2-2.0.6}/README.md +0 -0
- {blizzardapi2-2.0.2 → blizzardapi2-2.0.6}/SECURITY.md +0 -0
- {blizzardapi2-2.0.2 → blizzardapi2-2.0.6}/blizzardapi2/__init__.py +0 -0
- {blizzardapi2-2.0.2 → blizzardapi2-2.0.6}/blizzardapi2/api.py +0 -0
- {blizzardapi2-2.0.2 → blizzardapi2-2.0.6}/blizzardapi2/battlenet/__init__.py +0 -0
- {blizzardapi2-2.0.2 → blizzardapi2-2.0.6}/blizzardapi2/battlenet/battlenet_api.py +0 -0
- {blizzardapi2-2.0.2 → blizzardapi2-2.0.6}/blizzardapi2/battlenet/battlenet_oauth_api.py +0 -0
- {blizzardapi2-2.0.2 → blizzardapi2-2.0.6}/blizzardapi2/blizzard_api.py +0 -0
- {blizzardapi2-2.0.2 → blizzardapi2-2.0.6}/blizzardapi2/diablo3/__init__.py +0 -0
- {blizzardapi2-2.0.2 → blizzardapi2-2.0.6}/blizzardapi2/diablo3/diablo3_api.py +0 -0
- {blizzardapi2-2.0.2 → blizzardapi2-2.0.6}/blizzardapi2/diablo3/diablo3_community_api.py +0 -0
- {blizzardapi2-2.0.2 → blizzardapi2-2.0.6}/blizzardapi2/diablo3/diablo3_game_data_api.py +0 -0
- {blizzardapi2-2.0.2 → blizzardapi2-2.0.6}/blizzardapi2/hearthstone/__init__.py +0 -0
- {blizzardapi2-2.0.2 → blizzardapi2-2.0.6}/blizzardapi2/hearthstone/hearthstone_api.py +0 -0
- {blizzardapi2-2.0.2 → blizzardapi2-2.0.6}/blizzardapi2/hearthstone/hearthstone_game_data_api.py +0 -0
- {blizzardapi2-2.0.2 → blizzardapi2-2.0.6}/blizzardapi2/starcraft2/__init__.py +0 -0
- {blizzardapi2-2.0.2 → blizzardapi2-2.0.6}/blizzardapi2/starcraft2/starcraft2_api.py +0 -0
- {blizzardapi2-2.0.2 → blizzardapi2-2.0.6}/blizzardapi2/starcraft2/starcraft2_community_api.py +0 -0
- {blizzardapi2-2.0.2 → blizzardapi2-2.0.6}/blizzardapi2/starcraft2/starcraft2_game_data_api.py +0 -0
- {blizzardapi2-2.0.2 → blizzardapi2-2.0.6}/blizzardapi2/types.py +0 -0
- {blizzardapi2-2.0.2 → blizzardapi2-2.0.6}/blizzardapi2/wow/__init__.py +0 -0
- {blizzardapi2-2.0.2 → blizzardapi2-2.0.6}/blizzardapi2/wow/wow_api.py +0 -0
- {blizzardapi2-2.0.2 → blizzardapi2-2.0.6}/blizzardapi2/wow/wow_game_data_api.py +0 -0
- {blizzardapi2-2.0.2 → blizzardapi2-2.0.6}/blizzardapi2/wow/wow_profile_api.py +0 -0
- {blizzardapi2-2.0.2 → blizzardapi2-2.0.6}/blizzardapi2.egg-info/dependency_links.txt +0 -0
- {blizzardapi2-2.0.2 → blizzardapi2-2.0.6}/blizzardapi2.egg-info/requires.txt +0 -0
- {blizzardapi2-2.0.2 → blizzardapi2-2.0.6}/blizzardapi2.egg-info/top_level.txt +0 -0
- {blizzardapi2-2.0.2 → blizzardapi2-2.0.6}/docs/battlenet/README.md +0 -0
- {blizzardapi2-2.0.2 → blizzardapi2-2.0.6}/docs/diablo3/README.md +0 -0
- {blizzardapi2-2.0.2 → blizzardapi2-2.0.6}/docs/hearthstone/README.md +0 -0
- {blizzardapi2-2.0.2 → blizzardapi2-2.0.6}/docs/pull_request_template.md +0 -0
- {blizzardapi2-2.0.2 → blizzardapi2-2.0.6}/docs/starcraft2/README.md +0 -0
- {blizzardapi2-2.0.2 → blizzardapi2-2.0.6}/docs/wow/README.md +0 -0
- {blizzardapi2-2.0.2 → blizzardapi2-2.0.6}/setup.cfg +0 -0
- {blizzardapi2-2.0.2 → blizzardapi2-2.0.6}/uv.lock +0 -0
|
@@ -77,5 +77,57 @@ jobs:
|
|
|
77
77
|
NEW_VERSION="$MAJOR.$MINOR.$((PATCH + 1))"
|
|
78
78
|
# Update version in pyproject.toml
|
|
79
79
|
sed -i "s/version = \".*\"/version = \"$NEW_VERSION\"/" pyproject.toml
|
|
80
|
+
# Update version in package.json
|
|
81
|
+
sed -i "s/\"version\": \".*\"/\"version\": \"$NEW_VERSION\"/" package.json
|
|
80
82
|
python -m build
|
|
81
83
|
twine upload dist/* --username __token__ --password ${{ secrets.PYPI_API_TOKEN }}
|
|
84
|
+
|
|
85
|
+
release:
|
|
86
|
+
runs-on: ubuntu-latest
|
|
87
|
+
needs: publish
|
|
88
|
+
if: github.ref == 'refs/heads/main' && success()
|
|
89
|
+
permissions:
|
|
90
|
+
contents: write
|
|
91
|
+
issues: write
|
|
92
|
+
pull-requests: write
|
|
93
|
+
|
|
94
|
+
steps:
|
|
95
|
+
- name: Checkout code
|
|
96
|
+
uses: actions/checkout@v4
|
|
97
|
+
with:
|
|
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
|
|
107
|
+
uses: actions/setup-node@v4
|
|
108
|
+
with:
|
|
109
|
+
node-version: "20"
|
|
110
|
+
|
|
111
|
+
- name: Install uv
|
|
112
|
+
run: |
|
|
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.name "Github Actions"
|
|
128
|
+
git config user.email "github-actions@github.com"
|
|
129
|
+
|
|
130
|
+
- name: Run release-it
|
|
131
|
+
env:
|
|
132
|
+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
133
|
+
run: npx release-it --verbose
|
|
@@ -0,0 +1,21 @@
|
|
|
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
|
|
@@ -17,5 +17,5 @@ __version__: str
|
|
|
17
17
|
__version_tuple__: VERSION_TUPLE
|
|
18
18
|
version_tuple: VERSION_TUPLE
|
|
19
19
|
|
|
20
|
-
__version__ = version = '1.1.4b1.
|
|
21
|
-
__version_tuple__ = version_tuple = (1, 1, 4, 'b1', '
|
|
20
|
+
__version__ = version = '1.1.4b1.dev29+g91d99a5.d20250615025826'
|
|
21
|
+
__version_tuple__ = version_tuple = (1, 1, 4, 'b1', 'dev29', 'g91d99a5.d20250615025826')
|
|
@@ -4,6 +4,7 @@ CONTRIBUTING.md
|
|
|
4
4
|
LICENSE
|
|
5
5
|
README.md
|
|
6
6
|
SECURITY.md
|
|
7
|
+
package.json
|
|
7
8
|
pyproject.toml
|
|
8
9
|
uv.lock
|
|
9
10
|
.github/dependabot.yml
|
|
@@ -11,6 +12,7 @@ uv.lock
|
|
|
11
12
|
.github/ISSUE_TEMPLATE/feature_request.md
|
|
12
13
|
.github/workflows/black.yml
|
|
13
14
|
.github/workflows/python-package.yml
|
|
15
|
+
.github/workflows/release.yml
|
|
14
16
|
blizzardapi2/__init__.py
|
|
15
17
|
blizzardapi2/_version.py
|
|
16
18
|
blizzardapi2/api.py
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "blizzardapi2",
|
|
3
|
+
"version": "2.0.6",
|
|
4
|
+
"private": true,
|
|
5
|
+
"scripts": {
|
|
6
|
+
"release": "release-it"
|
|
7
|
+
},
|
|
8
|
+
"devDependencies": {
|
|
9
|
+
"release-it": "^17.0.0"
|
|
10
|
+
},
|
|
11
|
+
"release-it": {
|
|
12
|
+
"git": {
|
|
13
|
+
"commitMessage": "chore: release v${version}",
|
|
14
|
+
"tagName": "v${version}"
|
|
15
|
+
},
|
|
16
|
+
"github": {
|
|
17
|
+
"release": true,
|
|
18
|
+
"releaseName": "Release v${version}",
|
|
19
|
+
"releaseNotes": "git log --pretty=format:\"* %s (%h)\" ${latestTag}...HEAD"
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "blizzardapi2"
|
|
3
|
-
version = "2.0.
|
|
3
|
+
version = "2.0.6"
|
|
4
4
|
description = "A Python wrapper for Blizzard API"
|
|
5
5
|
authors = [{ name = "lostcol0ny", email = "c098os0k@4wrd.cc" }]
|
|
6
6
|
license = { text = "MIT" }
|
|
@@ -76,7 +76,7 @@ exclude = [
|
|
|
76
76
|
line-length = 120
|
|
77
77
|
|
|
78
78
|
# Assume Python 3.1
|
|
79
|
-
target-version = "2.0.
|
|
79
|
+
target-version = "2.0.6"
|
|
80
80
|
|
|
81
81
|
[tool.ruff.lint]
|
|
82
82
|
# Enable Pyflakes (`F`) and a subset of the pycodestyle (`E`) codes by default.
|
|
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
|
|
File without changes
|
{blizzardapi2-2.0.2 → blizzardapi2-2.0.6}/blizzardapi2/hearthstone/hearthstone_game_data_api.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{blizzardapi2-2.0.2 → blizzardapi2-2.0.6}/blizzardapi2/starcraft2/starcraft2_community_api.py
RENAMED
|
File without changes
|
{blizzardapi2-2.0.2 → blizzardapi2-2.0.6}/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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|