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.
Files changed (51) hide show
  1. {blizzardapi2-2.0.2 → blizzardapi2-2.0.6}/.github/workflows/python-package.yml +52 -0
  2. blizzardapi2-2.0.6/.github/workflows/release.yml +21 -0
  3. {blizzardapi2-2.0.2 → blizzardapi2-2.0.6}/PKG-INFO +1 -1
  4. {blizzardapi2-2.0.2 → blizzardapi2-2.0.6}/blizzardapi2/_version.py +2 -2
  5. {blizzardapi2-2.0.2 → blizzardapi2-2.0.6}/blizzardapi2.egg-info/PKG-INFO +1 -1
  6. {blizzardapi2-2.0.2 → blizzardapi2-2.0.6}/blizzardapi2.egg-info/SOURCES.txt +2 -0
  7. blizzardapi2-2.0.6/package.json +22 -0
  8. {blizzardapi2-2.0.2 → blizzardapi2-2.0.6}/pyproject.toml +2 -2
  9. {blizzardapi2-2.0.2 → blizzardapi2-2.0.6}/.github/ISSUE_TEMPLATE/bug_report.md +0 -0
  10. {blizzardapi2-2.0.2 → blizzardapi2-2.0.6}/.github/ISSUE_TEMPLATE/feature_request.md +0 -0
  11. {blizzardapi2-2.0.2 → blizzardapi2-2.0.6}/.github/dependabot.yml +0 -0
  12. {blizzardapi2-2.0.2 → blizzardapi2-2.0.6}/.github/workflows/black.yml +0 -0
  13. {blizzardapi2-2.0.2 → blizzardapi2-2.0.6}/.gitignore +0 -0
  14. {blizzardapi2-2.0.2 → blizzardapi2-2.0.6}/CODE_OF_CONDUCT.md +0 -0
  15. {blizzardapi2-2.0.2 → blizzardapi2-2.0.6}/CONTRIBUTING.md +0 -0
  16. {blizzardapi2-2.0.2 → blizzardapi2-2.0.6}/LICENSE +0 -0
  17. {blizzardapi2-2.0.2 → blizzardapi2-2.0.6}/README.md +0 -0
  18. {blizzardapi2-2.0.2 → blizzardapi2-2.0.6}/SECURITY.md +0 -0
  19. {blizzardapi2-2.0.2 → blizzardapi2-2.0.6}/blizzardapi2/__init__.py +0 -0
  20. {blizzardapi2-2.0.2 → blizzardapi2-2.0.6}/blizzardapi2/api.py +0 -0
  21. {blizzardapi2-2.0.2 → blizzardapi2-2.0.6}/blizzardapi2/battlenet/__init__.py +0 -0
  22. {blizzardapi2-2.0.2 → blizzardapi2-2.0.6}/blizzardapi2/battlenet/battlenet_api.py +0 -0
  23. {blizzardapi2-2.0.2 → blizzardapi2-2.0.6}/blizzardapi2/battlenet/battlenet_oauth_api.py +0 -0
  24. {blizzardapi2-2.0.2 → blizzardapi2-2.0.6}/blizzardapi2/blizzard_api.py +0 -0
  25. {blizzardapi2-2.0.2 → blizzardapi2-2.0.6}/blizzardapi2/diablo3/__init__.py +0 -0
  26. {blizzardapi2-2.0.2 → blizzardapi2-2.0.6}/blizzardapi2/diablo3/diablo3_api.py +0 -0
  27. {blizzardapi2-2.0.2 → blizzardapi2-2.0.6}/blizzardapi2/diablo3/diablo3_community_api.py +0 -0
  28. {blizzardapi2-2.0.2 → blizzardapi2-2.0.6}/blizzardapi2/diablo3/diablo3_game_data_api.py +0 -0
  29. {blizzardapi2-2.0.2 → blizzardapi2-2.0.6}/blizzardapi2/hearthstone/__init__.py +0 -0
  30. {blizzardapi2-2.0.2 → blizzardapi2-2.0.6}/blizzardapi2/hearthstone/hearthstone_api.py +0 -0
  31. {blizzardapi2-2.0.2 → blizzardapi2-2.0.6}/blizzardapi2/hearthstone/hearthstone_game_data_api.py +0 -0
  32. {blizzardapi2-2.0.2 → blizzardapi2-2.0.6}/blizzardapi2/starcraft2/__init__.py +0 -0
  33. {blizzardapi2-2.0.2 → blizzardapi2-2.0.6}/blizzardapi2/starcraft2/starcraft2_api.py +0 -0
  34. {blizzardapi2-2.0.2 → blizzardapi2-2.0.6}/blizzardapi2/starcraft2/starcraft2_community_api.py +0 -0
  35. {blizzardapi2-2.0.2 → blizzardapi2-2.0.6}/blizzardapi2/starcraft2/starcraft2_game_data_api.py +0 -0
  36. {blizzardapi2-2.0.2 → blizzardapi2-2.0.6}/blizzardapi2/types.py +0 -0
  37. {blizzardapi2-2.0.2 → blizzardapi2-2.0.6}/blizzardapi2/wow/__init__.py +0 -0
  38. {blizzardapi2-2.0.2 → blizzardapi2-2.0.6}/blizzardapi2/wow/wow_api.py +0 -0
  39. {blizzardapi2-2.0.2 → blizzardapi2-2.0.6}/blizzardapi2/wow/wow_game_data_api.py +0 -0
  40. {blizzardapi2-2.0.2 → blizzardapi2-2.0.6}/blizzardapi2/wow/wow_profile_api.py +0 -0
  41. {blizzardapi2-2.0.2 → blizzardapi2-2.0.6}/blizzardapi2.egg-info/dependency_links.txt +0 -0
  42. {blizzardapi2-2.0.2 → blizzardapi2-2.0.6}/blizzardapi2.egg-info/requires.txt +0 -0
  43. {blizzardapi2-2.0.2 → blizzardapi2-2.0.6}/blizzardapi2.egg-info/top_level.txt +0 -0
  44. {blizzardapi2-2.0.2 → blizzardapi2-2.0.6}/docs/battlenet/README.md +0 -0
  45. {blizzardapi2-2.0.2 → blizzardapi2-2.0.6}/docs/diablo3/README.md +0 -0
  46. {blizzardapi2-2.0.2 → blizzardapi2-2.0.6}/docs/hearthstone/README.md +0 -0
  47. {blizzardapi2-2.0.2 → blizzardapi2-2.0.6}/docs/pull_request_template.md +0 -0
  48. {blizzardapi2-2.0.2 → blizzardapi2-2.0.6}/docs/starcraft2/README.md +0 -0
  49. {blizzardapi2-2.0.2 → blizzardapi2-2.0.6}/docs/wow/README.md +0 -0
  50. {blizzardapi2-2.0.2 → blizzardapi2-2.0.6}/setup.cfg +0 -0
  51. {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
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: blizzardapi2
3
- Version: 2.0.2
3
+ Version: 2.0.6
4
4
  Summary: A Python wrapper for Blizzard API
5
5
  Author-email: lostcol0ny <c098os0k@4wrd.cc>
6
6
  License: MIT
@@ -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.dev18+g1cd0183.d20250615020914'
21
- __version_tuple__ = version_tuple = (1, 1, 4, 'b1', 'dev18', 'g1cd0183.d20250615020914')
20
+ __version__ = version = '1.1.4b1.dev29+g91d99a5.d20250615025826'
21
+ __version_tuple__ = version_tuple = (1, 1, 4, 'b1', 'dev29', 'g91d99a5.d20250615025826')
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: blizzardapi2
3
- Version: 2.0.2
3
+ Version: 2.0.6
4
4
  Summary: A Python wrapper for Blizzard API
5
5
  Author-email: lostcol0ny <c098os0k@4wrd.cc>
6
6
  License: MIT
@@ -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.2"
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.2"
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