blizzardapi2 3.0.1__tar.gz → 3.0.4__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-3.0.1 → blizzardapi2-3.0.4}/.github/workflows/python-package.yml +28 -49
- {blizzardapi2-3.0.1 → blizzardapi2-3.0.4}/.release-it.json +1 -1
- {blizzardapi2-3.0.1/blizzardapi2.egg-info → blizzardapi2-3.0.4}/PKG-INFO +1 -1
- {blizzardapi2-3.0.1 → blizzardapi2-3.0.4/blizzardapi2.egg-info}/PKG-INFO +1 -1
- {blizzardapi2-3.0.1 → blizzardapi2-3.0.4}/package.json +1 -1
- {blizzardapi2-3.0.1 → blizzardapi2-3.0.4}/pyproject.toml +1 -1
- blizzardapi2-3.0.4/uv.lock +731 -0
- blizzardapi2-3.0.1/uv.lock +0 -904
- {blizzardapi2-3.0.1 → blizzardapi2-3.0.4}/.github/ISSUE_TEMPLATE/bug_report.md +0 -0
- {blizzardapi2-3.0.1 → blizzardapi2-3.0.4}/.github/ISSUE_TEMPLATE/feature_request.md +0 -0
- {blizzardapi2-3.0.1 → blizzardapi2-3.0.4}/.github/dependabot.yml +0 -0
- {blizzardapi2-3.0.1 → blizzardapi2-3.0.4}/.github/workflows/README.md +0 -0
- {blizzardapi2-3.0.1 → blizzardapi2-3.0.4}/.github/workflows/black-check.yml +0 -0
- {blizzardapi2-3.0.1 → blizzardapi2-3.0.4}/.gitignore +0 -0
- {blizzardapi2-3.0.1 → blizzardapi2-3.0.4}/.pre-commit-config.yaml +0 -0
- {blizzardapi2-3.0.1 → blizzardapi2-3.0.4}/CLAUDE.md +0 -0
- {blizzardapi2-3.0.1 → blizzardapi2-3.0.4}/CODE_OF_CONDUCT.md +0 -0
- {blizzardapi2-3.0.1 → blizzardapi2-3.0.4}/CONTRIBUTING.md +0 -0
- {blizzardapi2-3.0.1 → blizzardapi2-3.0.4}/LICENSE +0 -0
- {blizzardapi2-3.0.1 → blizzardapi2-3.0.4}/README.md +0 -0
- {blizzardapi2-3.0.1 → blizzardapi2-3.0.4}/SECURITY.md +0 -0
- {blizzardapi2-3.0.1 → blizzardapi2-3.0.4}/blizzardapi2/__init__.py +0 -0
- {blizzardapi2-3.0.1 → blizzardapi2-3.0.4}/blizzardapi2/api.py +0 -0
- {blizzardapi2-3.0.1 → blizzardapi2-3.0.4}/blizzardapi2/battlenet/__init__.py +0 -0
- {blizzardapi2-3.0.1 → blizzardapi2-3.0.4}/blizzardapi2/battlenet/battlenet_api.py +0 -0
- {blizzardapi2-3.0.1 → blizzardapi2-3.0.4}/blizzardapi2/battlenet/battlenet_oauth_api.py +0 -0
- {blizzardapi2-3.0.1 → blizzardapi2-3.0.4}/blizzardapi2/blizzard_api.py +0 -0
- {blizzardapi2-3.0.1 → blizzardapi2-3.0.4}/blizzardapi2/diablo3/__init__.py +0 -0
- {blizzardapi2-3.0.1 → blizzardapi2-3.0.4}/blizzardapi2/diablo3/diablo3_api.py +0 -0
- {blizzardapi2-3.0.1 → blizzardapi2-3.0.4}/blizzardapi2/diablo3/diablo3_community_api.py +0 -0
- {blizzardapi2-3.0.1 → blizzardapi2-3.0.4}/blizzardapi2/diablo3/diablo3_game_data_api.py +0 -0
- {blizzardapi2-3.0.1 → blizzardapi2-3.0.4}/blizzardapi2/hearthstone/__init__.py +0 -0
- {blizzardapi2-3.0.1 → blizzardapi2-3.0.4}/blizzardapi2/hearthstone/hearthstone_api.py +0 -0
- {blizzardapi2-3.0.1 → blizzardapi2-3.0.4}/blizzardapi2/hearthstone/hearthstone_game_data_api.py +0 -0
- {blizzardapi2-3.0.1 → blizzardapi2-3.0.4}/blizzardapi2/starcraft2/__init__.py +0 -0
- {blizzardapi2-3.0.1 → blizzardapi2-3.0.4}/blizzardapi2/starcraft2/starcraft2_api.py +0 -0
- {blizzardapi2-3.0.1 → blizzardapi2-3.0.4}/blizzardapi2/starcraft2/starcraft2_community_api.py +0 -0
- {blizzardapi2-3.0.1 → blizzardapi2-3.0.4}/blizzardapi2/starcraft2/starcraft2_game_data_api.py +0 -0
- {blizzardapi2-3.0.1 → blizzardapi2-3.0.4}/blizzardapi2/types.py +0 -0
- {blizzardapi2-3.0.1 → blizzardapi2-3.0.4}/blizzardapi2/wow/__init__.py +0 -0
- {blizzardapi2-3.0.1 → blizzardapi2-3.0.4}/blizzardapi2/wow/wow_api.py +0 -0
- {blizzardapi2-3.0.1 → blizzardapi2-3.0.4}/blizzardapi2/wow/wow_game_data_api.py +0 -0
- {blizzardapi2-3.0.1 → blizzardapi2-3.0.4}/blizzardapi2/wow/wow_profile_api.py +0 -0
- {blizzardapi2-3.0.1 → blizzardapi2-3.0.4}/blizzardapi2.egg-info/SOURCES.txt +0 -0
- {blizzardapi2-3.0.1 → blizzardapi2-3.0.4}/blizzardapi2.egg-info/dependency_links.txt +0 -0
- {blizzardapi2-3.0.1 → blizzardapi2-3.0.4}/blizzardapi2.egg-info/requires.txt +0 -0
- {blizzardapi2-3.0.1 → blizzardapi2-3.0.4}/blizzardapi2.egg-info/top_level.txt +0 -0
- {blizzardapi2-3.0.1 → blizzardapi2-3.0.4}/docs/battlenet/README.md +0 -0
- {blizzardapi2-3.0.1 → blizzardapi2-3.0.4}/docs/diablo3/README.md +0 -0
- {blizzardapi2-3.0.1 → blizzardapi2-3.0.4}/docs/hearthstone/README.md +0 -0
- {blizzardapi2-3.0.1 → blizzardapi2-3.0.4}/docs/pull_request_template.md +0 -0
- {blizzardapi2-3.0.1 → blizzardapi2-3.0.4}/docs/starcraft2/README.md +0 -0
- {blizzardapi2-3.0.1 → blizzardapi2-3.0.4}/docs/wow/README.md +0 -0
- {blizzardapi2-3.0.1 → blizzardapi2-3.0.4}/poetry.lock +0 -0
- {blizzardapi2-3.0.1 → blizzardapi2-3.0.4}/setup.cfg +0 -0
- {blizzardapi2-3.0.1 → blizzardapi2-3.0.4}/tests/__init__.py +0 -0
- {blizzardapi2-3.0.1 → blizzardapi2-3.0.4}/tests/conftest.py +0 -0
- {blizzardapi2-3.0.1 → blizzardapi2-3.0.4}/tests/test_base_api.py +0 -0
- {blizzardapi2-3.0.1 → blizzardapi2-3.0.4}/tests/test_battlenet.py +0 -0
- {blizzardapi2-3.0.1 → blizzardapi2-3.0.4}/tests/test_diablo3.py +0 -0
- {blizzardapi2-3.0.1 → blizzardapi2-3.0.4}/tests/test_hearthstone.py +0 -0
- {blizzardapi2-3.0.1 → blizzardapi2-3.0.4}/tests/test_starcraft2.py +0 -0
- {blizzardapi2-3.0.1 → blizzardapi2-3.0.4}/tests/test_types.py +0 -0
- {blizzardapi2-3.0.1 → blizzardapi2-3.0.4}/tests/test_wow.py +0 -0
|
@@ -43,56 +43,15 @@ jobs:
|
|
|
43
43
|
- name: Run tests
|
|
44
44
|
run: uv run pytest tests/ -v
|
|
45
45
|
|
|
46
|
-
|
|
46
|
+
release:
|
|
47
47
|
needs: test
|
|
48
48
|
if: github.ref == 'refs/heads/main'
|
|
49
49
|
runs-on: ubuntu-latest
|
|
50
|
-
steps:
|
|
51
|
-
- uses: actions/checkout@v4
|
|
52
|
-
with:
|
|
53
|
-
fetch-depth: 0
|
|
54
|
-
|
|
55
|
-
- name: Set up Python
|
|
56
|
-
uses: actions/setup-python@v5
|
|
57
|
-
with:
|
|
58
|
-
python-version: "3.11"
|
|
59
|
-
|
|
60
|
-
- name: Install uv
|
|
61
|
-
run: |
|
|
62
|
-
curl -LsSf https://astral.sh/uv/install.sh | sh
|
|
63
|
-
echo "$HOME/.cargo/bin" >> $GITHUB_PATH
|
|
64
|
-
|
|
65
|
-
- name: Create virtual environment
|
|
66
|
-
run: |
|
|
67
|
-
uv venv
|
|
68
|
-
|
|
69
|
-
- name: Install dependencies
|
|
70
|
-
run: |
|
|
71
|
-
uv pip install -e ".[dev]"
|
|
72
|
-
- name: Configure Git
|
|
73
|
-
run: |
|
|
74
|
-
git config --global user.name "lostcol0ny"
|
|
75
|
-
git config --global user.email "c098os0k@4wrd.cc"
|
|
76
|
-
|
|
77
|
-
- name: Build and publish to PyPI
|
|
78
|
-
run: |
|
|
79
|
-
python -m pip install --upgrade pip
|
|
80
|
-
pip install build twine setuptools_scm
|
|
81
|
-
python -m build
|
|
82
|
-
twine upload dist/* --skip-existing --username __token__ --password ${{ secrets.PYPI_API_TOKEN }} || {
|
|
83
|
-
echo "Upload failed - version may already exist or filename was previously used"
|
|
84
|
-
echo "This is expected behavior and won't block the release"
|
|
85
|
-
exit 0
|
|
86
|
-
}
|
|
87
|
-
env:
|
|
88
|
-
PYPI_API_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
|
|
89
|
-
|
|
90
|
-
release:
|
|
91
|
-
needs: publish
|
|
92
|
-
runs-on: ubuntu-latest
|
|
93
50
|
permissions:
|
|
94
51
|
contents: write
|
|
95
52
|
id-token: write
|
|
53
|
+
outputs:
|
|
54
|
+
tag: ${{ steps.bump.outputs.tag }}
|
|
96
55
|
steps:
|
|
97
56
|
- name: Checkout repository
|
|
98
57
|
uses: actions/checkout@v4
|
|
@@ -122,16 +81,36 @@ jobs:
|
|
|
122
81
|
&& sudo apt install gh -y
|
|
123
82
|
|
|
124
83
|
- name: Run release script
|
|
84
|
+
id: bump
|
|
125
85
|
env:
|
|
126
86
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
127
87
|
run: |
|
|
128
|
-
# Debug: Check current version
|
|
129
|
-
echo "Current package.json version: $(node -p "require('./package.json').version")"
|
|
130
|
-
echo "Current pyproject.toml version: $(grep 'version = ' pyproject.toml | head -n 1 | cut -d'"' -f2)"
|
|
131
|
-
|
|
132
|
-
# Run release-it with CI mode
|
|
133
88
|
npx release-it --ci || {
|
|
134
89
|
echo "release-it failed, creating GitHub release manually..."
|
|
135
90
|
VERSION=$(node -p "require('./package.json').version")
|
|
136
91
|
gh release create "v$VERSION" --title "Release v$VERSION" --notes "Release v$VERSION"
|
|
137
92
|
}
|
|
93
|
+
tag=$(git describe --tags --abbrev=0)
|
|
94
|
+
echo "tag=$tag" >> "$GITHUB_OUTPUT"
|
|
95
|
+
|
|
96
|
+
publish:
|
|
97
|
+
needs: release
|
|
98
|
+
runs-on: ubuntu-latest
|
|
99
|
+
steps:
|
|
100
|
+
- uses: actions/checkout@v4
|
|
101
|
+
with:
|
|
102
|
+
ref: ${{ needs.release.outputs.tag }}
|
|
103
|
+
fetch-depth: 0
|
|
104
|
+
|
|
105
|
+
- name: Set up Python
|
|
106
|
+
uses: actions/setup-python@v5
|
|
107
|
+
with:
|
|
108
|
+
python-version: "3.11"
|
|
109
|
+
|
|
110
|
+
- name: Build and publish to PyPI
|
|
111
|
+
env:
|
|
112
|
+
PYPI_API_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
|
|
113
|
+
run: |
|
|
114
|
+
python -m pip install --upgrade pip build twine
|
|
115
|
+
python -m build
|
|
116
|
+
twine upload dist/* --skip-existing --username __token__ --password "$PYPI_API_TOKEN"
|