blizzardapi2 2.1.9__tar.gz → 2.1.11__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.1.9 → blizzardapi2-2.1.11}/.github/workflows/README.md +55 -3
- blizzardapi2-2.1.11/.github/workflows/black-check.yml +18 -0
- blizzardapi2-2.1.11/.github/workflows/black.yml +43 -0
- {blizzardapi2-2.1.9 → blizzardapi2-2.1.11}/.github/workflows/python-package.yml +8 -15
- blizzardapi2-2.1.11/.pre-commit-config.yaml +19 -0
- blizzardapi2-2.1.11/CONTRIBUTING.md +182 -0
- {blizzardapi2-2.1.9/blizzardapi2.egg-info → blizzardapi2-2.1.11}/PKG-INFO +1 -1
- {blizzardapi2-2.1.9 → blizzardapi2-2.1.11}/blizzardapi2/_version.py +3 -3
- {blizzardapi2-2.1.9 → blizzardapi2-2.1.11}/blizzardapi2/battlenet/battlenet_oauth_api.py +1 -0
- {blizzardapi2-2.1.9 → blizzardapi2-2.1.11}/blizzardapi2/hearthstone/hearthstone_api.py +1 -0
- {blizzardapi2-2.1.9 → blizzardapi2-2.1.11/blizzardapi2.egg-info}/PKG-INFO +1 -1
- {blizzardapi2-2.1.9 → blizzardapi2-2.1.11}/blizzardapi2.egg-info/SOURCES.txt +2 -0
- {blizzardapi2-2.1.9 → blizzardapi2-2.1.11}/package.json +1 -2
- {blizzardapi2-2.1.9 → blizzardapi2-2.1.11}/pyproject.toml +4 -3
- blizzardapi2-2.1.9/.github/workflows/black.yml +0 -13
- blizzardapi2-2.1.9/CONTRIBUTING.md +0 -14
- {blizzardapi2-2.1.9 → blizzardapi2-2.1.11}/.github/ISSUE_TEMPLATE/bug_report.md +0 -0
- {blizzardapi2-2.1.9 → blizzardapi2-2.1.11}/.github/ISSUE_TEMPLATE/feature_request.md +0 -0
- {blizzardapi2-2.1.9 → blizzardapi2-2.1.11}/.github/dependabot.yml +0 -0
- {blizzardapi2-2.1.9 → blizzardapi2-2.1.11}/.gitignore +0 -0
- {blizzardapi2-2.1.9 → blizzardapi2-2.1.11}/CODE_OF_CONDUCT.md +0 -0
- {blizzardapi2-2.1.9 → blizzardapi2-2.1.11}/LICENSE +0 -0
- {blizzardapi2-2.1.9 → blizzardapi2-2.1.11}/README.md +0 -0
- {blizzardapi2-2.1.9 → blizzardapi2-2.1.11}/SECURITY.md +0 -0
- {blizzardapi2-2.1.9 → blizzardapi2-2.1.11}/blizzardapi2/__init__.py +0 -0
- {blizzardapi2-2.1.9 → blizzardapi2-2.1.11}/blizzardapi2/api.py +0 -0
- {blizzardapi2-2.1.9 → blizzardapi2-2.1.11}/blizzardapi2/battlenet/__init__.py +0 -0
- {blizzardapi2-2.1.9 → blizzardapi2-2.1.11}/blizzardapi2/battlenet/battlenet_api.py +0 -0
- {blizzardapi2-2.1.9 → blizzardapi2-2.1.11}/blizzardapi2/blizzard_api.py +0 -0
- {blizzardapi2-2.1.9 → blizzardapi2-2.1.11}/blizzardapi2/diablo3/__init__.py +0 -0
- {blizzardapi2-2.1.9 → blizzardapi2-2.1.11}/blizzardapi2/diablo3/diablo3_api.py +0 -0
- {blizzardapi2-2.1.9 → blizzardapi2-2.1.11}/blizzardapi2/diablo3/diablo3_community_api.py +0 -0
- {blizzardapi2-2.1.9 → blizzardapi2-2.1.11}/blizzardapi2/diablo3/diablo3_game_data_api.py +0 -0
- {blizzardapi2-2.1.9 → blizzardapi2-2.1.11}/blizzardapi2/hearthstone/__init__.py +0 -0
- {blizzardapi2-2.1.9 → blizzardapi2-2.1.11}/blizzardapi2/hearthstone/hearthstone_game_data_api.py +0 -0
- {blizzardapi2-2.1.9 → blizzardapi2-2.1.11}/blizzardapi2/starcraft2/__init__.py +0 -0
- {blizzardapi2-2.1.9 → blizzardapi2-2.1.11}/blizzardapi2/starcraft2/starcraft2_api.py +0 -0
- {blizzardapi2-2.1.9 → blizzardapi2-2.1.11}/blizzardapi2/starcraft2/starcraft2_community_api.py +0 -0
- {blizzardapi2-2.1.9 → blizzardapi2-2.1.11}/blizzardapi2/starcraft2/starcraft2_game_data_api.py +0 -0
- {blizzardapi2-2.1.9 → blizzardapi2-2.1.11}/blizzardapi2/types.py +0 -0
- {blizzardapi2-2.1.9 → blizzardapi2-2.1.11}/blizzardapi2/wow/__init__.py +0 -0
- {blizzardapi2-2.1.9 → blizzardapi2-2.1.11}/blizzardapi2/wow/wow_api.py +0 -0
- {blizzardapi2-2.1.9 → blizzardapi2-2.1.11}/blizzardapi2/wow/wow_game_data_api.py +0 -0
- {blizzardapi2-2.1.9 → blizzardapi2-2.1.11}/blizzardapi2/wow/wow_profile_api.py +0 -0
- {blizzardapi2-2.1.9 → blizzardapi2-2.1.11}/blizzardapi2.egg-info/dependency_links.txt +0 -0
- {blizzardapi2-2.1.9 → blizzardapi2-2.1.11}/blizzardapi2.egg-info/requires.txt +0 -0
- {blizzardapi2-2.1.9 → blizzardapi2-2.1.11}/blizzardapi2.egg-info/top_level.txt +0 -0
- {blizzardapi2-2.1.9 → blizzardapi2-2.1.11}/docs/battlenet/README.md +0 -0
- {blizzardapi2-2.1.9 → blizzardapi2-2.1.11}/docs/diablo3/README.md +0 -0
- {blizzardapi2-2.1.9 → blizzardapi2-2.1.11}/docs/hearthstone/README.md +0 -0
- {blizzardapi2-2.1.9 → blizzardapi2-2.1.11}/docs/pull_request_template.md +0 -0
- {blizzardapi2-2.1.9 → blizzardapi2-2.1.11}/docs/starcraft2/README.md +0 -0
- {blizzardapi2-2.1.9 → blizzardapi2-2.1.11}/docs/wow/README.md +0 -0
- {blizzardapi2-2.1.9 → blizzardapi2-2.1.11}/poetry.lock +0 -0
- {blizzardapi2-2.1.9 → blizzardapi2-2.1.11}/setup.cfg +0 -0
- {blizzardapi2-2.1.9 → blizzardapi2-2.1.11}/uv.lock +0 -0
|
@@ -12,7 +12,7 @@ This directory contains GitHub Actions workflows for the blizzardapi2 project.
|
|
|
12
12
|
|
|
13
13
|
- **checkout**: Runs tests on multiple Python versions (3.11, 3.12, 3.13)
|
|
14
14
|
- **publish**: Builds and publishes to PyPI (only on main branch)
|
|
15
|
-
- **release**:
|
|
15
|
+
- **release**: Bumps version, creates Git tag, and creates GitHub release (only after successful publish)
|
|
16
16
|
|
|
17
17
|
**Recent Fixes Applied:**
|
|
18
18
|
|
|
@@ -21,11 +21,23 @@ This directory contains GitHub Actions workflows for the blizzardapi2 project.
|
|
|
21
21
|
- ✅ **Enhanced permissions** for package publishing
|
|
22
22
|
- ✅ **Improved error handling** and environment variables
|
|
23
23
|
|
|
24
|
-
### 2. `black.yml` -
|
|
24
|
+
### 2. `black.yml` - Auto-format with Black
|
|
25
25
|
|
|
26
26
|
**Triggers:** Push and pull requests
|
|
27
27
|
|
|
28
|
-
**Purpose:**
|
|
28
|
+
**Purpose:** Automatically formats code with Black and commits changes
|
|
29
|
+
|
|
30
|
+
**Features:**
|
|
31
|
+
|
|
32
|
+
- ✅ Auto-formats code that needs formatting
|
|
33
|
+
- ✅ Commits and pushes formatting changes
|
|
34
|
+
- ✅ Only runs when changes are detected
|
|
35
|
+
|
|
36
|
+
### 3. `black-check.yml` - Check Black Formatting
|
|
37
|
+
|
|
38
|
+
**Triggers:** Pull requests only
|
|
39
|
+
|
|
40
|
+
**Purpose:** Checks formatting without making changes (for PR validation)
|
|
29
41
|
|
|
30
42
|
## Issues Fixed
|
|
31
43
|
|
|
@@ -47,6 +59,21 @@ ERROR Error: Author identity unknown
|
|
|
47
59
|
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
|
|
48
60
|
```
|
|
49
61
|
|
|
62
|
+
### Release Push Conflict Error
|
|
63
|
+
|
|
64
|
+
**Problem:** Release workflow failed with "non-fast-forward" error when pushing to main
|
|
65
|
+
|
|
66
|
+
```
|
|
67
|
+
! [rejected] main -> main (non-fast-forward)
|
|
68
|
+
error: failed to push some refs to 'https://github.com/lostcol0ny/blizzardapi2'
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
**Solution:** Simplified workflow to avoid conflicts:
|
|
72
|
+
|
|
73
|
+
- Removed version bumping from publish job
|
|
74
|
+
- Let release job handle all version management and Git operations
|
|
75
|
+
- Eliminated race conditions between jobs
|
|
76
|
+
|
|
50
77
|
### Additional Improvements
|
|
51
78
|
|
|
52
79
|
1. **Enhanced Checkout Configuration:**
|
|
@@ -68,6 +95,31 @@ The workflows require these secrets to be configured in the repository:
|
|
|
68
95
|
- `GITHUB_TOKEN` (automatically provided)
|
|
69
96
|
- `PYPI_API_TOKEN` (for PyPI publishing)
|
|
70
97
|
|
|
98
|
+
## Pre-commit Hooks
|
|
99
|
+
|
|
100
|
+
The project includes pre-commit hooks to help maintain code quality:
|
|
101
|
+
|
|
102
|
+
### Setup for Contributors
|
|
103
|
+
|
|
104
|
+
```bash
|
|
105
|
+
# Install pre-commit
|
|
106
|
+
pip install pre-commit
|
|
107
|
+
|
|
108
|
+
# Install the git hooks
|
|
109
|
+
pre-commit install
|
|
110
|
+
|
|
111
|
+
# Run manually (optional)
|
|
112
|
+
pre-commit run --all-files
|
|
113
|
+
```
|
|
114
|
+
|
|
115
|
+
### What the Hooks Do
|
|
116
|
+
|
|
117
|
+
- **Black**: Formats Python code
|
|
118
|
+
- **isort**: Sorts imports
|
|
119
|
+
- **flake8**: Lints Python code
|
|
120
|
+
|
|
121
|
+
This ensures consistent formatting across all contributions.
|
|
122
|
+
|
|
71
123
|
## Troubleshooting
|
|
72
124
|
|
|
73
125
|
### Common Issues
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
name: Check Black Formatting
|
|
2
|
+
|
|
3
|
+
on: [pull_request]
|
|
4
|
+
|
|
5
|
+
jobs:
|
|
6
|
+
check-format:
|
|
7
|
+
runs-on: ubuntu-latest
|
|
8
|
+
permissions:
|
|
9
|
+
contents: read
|
|
10
|
+
steps:
|
|
11
|
+
- name: Checkout repository
|
|
12
|
+
uses: actions/checkout@v4
|
|
13
|
+
|
|
14
|
+
- name: Check formatting with Black
|
|
15
|
+
uses: psf/black@stable
|
|
16
|
+
with:
|
|
17
|
+
options: "--check --verbose"
|
|
18
|
+
src: "."
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
name: Format with Black
|
|
2
|
+
|
|
3
|
+
on: [push, pull_request]
|
|
4
|
+
|
|
5
|
+
permissions:
|
|
6
|
+
contents: write
|
|
7
|
+
pull-requests: write
|
|
8
|
+
|
|
9
|
+
jobs:
|
|
10
|
+
format:
|
|
11
|
+
runs-on: ubuntu-latest
|
|
12
|
+
steps:
|
|
13
|
+
- name: Checkout repository
|
|
14
|
+
uses: actions/checkout@v4
|
|
15
|
+
with:
|
|
16
|
+
token: ${{ secrets.GITHUB_TOKEN }}
|
|
17
|
+
|
|
18
|
+
- name: Configure Git
|
|
19
|
+
run: |
|
|
20
|
+
git config --global user.name "github-actions[bot]"
|
|
21
|
+
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
|
|
22
|
+
|
|
23
|
+
- name: Format with Black
|
|
24
|
+
uses: psf/black@stable
|
|
25
|
+
with:
|
|
26
|
+
options: "--verbose"
|
|
27
|
+
src: "."
|
|
28
|
+
|
|
29
|
+
- name: Check for changes
|
|
30
|
+
id: check_changes
|
|
31
|
+
run: |
|
|
32
|
+
if [ -n "$(git status --porcelain)" ]; then
|
|
33
|
+
echo "has_changes=true" >> $GITHUB_OUTPUT
|
|
34
|
+
else
|
|
35
|
+
echo "has_changes=false" >> $GITHUB_OUTPUT
|
|
36
|
+
fi
|
|
37
|
+
|
|
38
|
+
- name: Commit and push changes
|
|
39
|
+
if: steps.check_changes.outputs.has_changes == 'true'
|
|
40
|
+
run: |
|
|
41
|
+
git add .
|
|
42
|
+
git commit -m "style: format code with black"
|
|
43
|
+
git push
|
|
@@ -78,24 +78,11 @@ jobs:
|
|
|
78
78
|
run: |
|
|
79
79
|
python -m pip install --upgrade pip
|
|
80
80
|
pip install build twine setuptools_scm
|
|
81
|
-
# Get the current version from pyproject.toml
|
|
82
|
-
CURRENT_VERSION=$(grep 'version = ' pyproject.toml | head -n 1 | cut -d'"' -f2)
|
|
83
|
-
# Split version into major.minor.patch
|
|
84
|
-
IFS='.' read -r MAJOR MINOR PATCH <<< "$CURRENT_VERSION"
|
|
85
|
-
# Increment patch version
|
|
86
|
-
NEW_VERSION="$MAJOR.$MINOR.$((PATCH + 1))"
|
|
87
|
-
# Update version in pyproject.toml (only the first occurrence, which is the package version)
|
|
88
|
-
sed -i "0,/version = \".*\"/s/version = \".*\"/version = \"$NEW_VERSION\"/" pyproject.toml
|
|
89
|
-
# Update version in package.json
|
|
90
|
-
sed -i "s/\"version\": \".*\"/\"version\": \"$NEW_VERSION\"/" package.json
|
|
91
|
-
# Commit the version changes
|
|
92
|
-
git add pyproject.toml package.json
|
|
93
|
-
git commit -m "chore: bump version to $NEW_VERSION"
|
|
94
|
-
git push https://${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}.git
|
|
95
81
|
python -m build
|
|
96
82
|
twine upload dist/* --username __token__ --password ${{ secrets.PYPI_API_TOKEN }}
|
|
97
83
|
env:
|
|
98
84
|
PYPI_API_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
|
|
85
|
+
|
|
99
86
|
release:
|
|
100
87
|
needs: publish
|
|
101
88
|
runs-on: ubuntu-latest
|
|
@@ -122,4 +109,10 @@ jobs:
|
|
|
122
109
|
- name: Run release script
|
|
123
110
|
env:
|
|
124
111
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
125
|
-
run:
|
|
112
|
+
run: |
|
|
113
|
+
# Debug: Check current version
|
|
114
|
+
echo "Current package.json version: $(node -p "require('./package.json').version")"
|
|
115
|
+
echo "Current pyproject.toml version: $(grep 'version = ' pyproject.toml | head -n 1 | cut -d'"' -f2)"
|
|
116
|
+
|
|
117
|
+
# Run the release script
|
|
118
|
+
npm run release
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
repos:
|
|
2
|
+
- repo: https://github.com/psf/black
|
|
3
|
+
rev: 25.1.0
|
|
4
|
+
hooks:
|
|
5
|
+
- id: black
|
|
6
|
+
language_version: python3
|
|
7
|
+
args: [--line-length=88]
|
|
8
|
+
|
|
9
|
+
- repo: https://github.com/pycqa/isort
|
|
10
|
+
rev: 5.13.2
|
|
11
|
+
hooks:
|
|
12
|
+
- id: isort
|
|
13
|
+
args: [--profile=black]
|
|
14
|
+
|
|
15
|
+
- repo: https://github.com/pycqa/flake8
|
|
16
|
+
rev: 7.0.0
|
|
17
|
+
hooks:
|
|
18
|
+
- id: flake8
|
|
19
|
+
args: [--max-line-length=88, --extend-ignore=E203, W503]
|
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
# Contributing to blizzardapi2
|
|
2
|
+
|
|
3
|
+
Thank you for your interest in contributing to blizzardapi2! This document provides guidelines and setup instructions for contributors.
|
|
4
|
+
|
|
5
|
+
## Development Setup
|
|
6
|
+
|
|
7
|
+
### 1. Clone the Repository
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
git clone https://github.com/lostcol0ny/blizzardapi2.git
|
|
11
|
+
cd blizzardapi2
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
### 2. Install Dependencies
|
|
15
|
+
|
|
16
|
+
```bash
|
|
17
|
+
# Using uv (recommended)
|
|
18
|
+
uv venv
|
|
19
|
+
uv pip install -e ".[dev]"
|
|
20
|
+
|
|
21
|
+
# Or using pip
|
|
22
|
+
pip install -e ".[dev]"
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
### 3. Setup Pre-commit Hooks (Recommended)
|
|
26
|
+
|
|
27
|
+
```bash
|
|
28
|
+
# Install pre-commit
|
|
29
|
+
pip install pre-commit
|
|
30
|
+
|
|
31
|
+
# Install the git hooks
|
|
32
|
+
pre-commit install
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
This will automatically format your code before each commit.
|
|
36
|
+
|
|
37
|
+
## Code Quality
|
|
38
|
+
|
|
39
|
+
### Automatic Formatting
|
|
40
|
+
|
|
41
|
+
The project uses several tools to maintain code quality:
|
|
42
|
+
|
|
43
|
+
- **Black**: Code formatting
|
|
44
|
+
- **isort**: Import sorting
|
|
45
|
+
- **flake8**: Linting
|
|
46
|
+
|
|
47
|
+
### Manual Formatting
|
|
48
|
+
|
|
49
|
+
If you need to format code manually:
|
|
50
|
+
|
|
51
|
+
```bash
|
|
52
|
+
# Format with Black
|
|
53
|
+
black .
|
|
54
|
+
|
|
55
|
+
# Sort imports
|
|
56
|
+
isort .
|
|
57
|
+
|
|
58
|
+
# Check linting
|
|
59
|
+
flake8 .
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
## GitHub Workflows
|
|
63
|
+
|
|
64
|
+
The project has several automated workflows:
|
|
65
|
+
|
|
66
|
+
1. **Format with Black**: Automatically formats code on push/PR
|
|
67
|
+
2. **Check Black Formatting**: Validates formatting on PRs
|
|
68
|
+
3. **Python Package**: Runs tests and publishes releases
|
|
69
|
+
|
|
70
|
+
### Workflow Behavior
|
|
71
|
+
|
|
72
|
+
- **On Push**: Code is automatically formatted and committed
|
|
73
|
+
- **On Pull Request**: Formatting is checked (but not changed)
|
|
74
|
+
- **On Main**: Full CI/CD pipeline runs
|
|
75
|
+
|
|
76
|
+
## Making Changes
|
|
77
|
+
|
|
78
|
+
### 1. Create a Feature Branch
|
|
79
|
+
|
|
80
|
+
```bash
|
|
81
|
+
git checkout -b feature/your-feature-name
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
### 2. Make Your Changes
|
|
85
|
+
|
|
86
|
+
Write your code and tests.
|
|
87
|
+
|
|
88
|
+
### 3. Test Your Changes
|
|
89
|
+
|
|
90
|
+
```bash
|
|
91
|
+
# Run tests
|
|
92
|
+
pytest
|
|
93
|
+
|
|
94
|
+
# Run with coverage
|
|
95
|
+
pytest --cov=blizzardapi2
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
### 4. Commit Your Changes
|
|
99
|
+
|
|
100
|
+
```bash
|
|
101
|
+
git add .
|
|
102
|
+
git commit -m "feat: add your feature description"
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
The pre-commit hooks will automatically format your code.
|
|
106
|
+
|
|
107
|
+
### 5. Push and Create a Pull Request
|
|
108
|
+
|
|
109
|
+
```bash
|
|
110
|
+
git push origin feature/your-feature-name
|
|
111
|
+
```
|
|
112
|
+
|
|
113
|
+
## Commit Message Format
|
|
114
|
+
|
|
115
|
+
Use conventional commit messages:
|
|
116
|
+
|
|
117
|
+
- `feat:` New features
|
|
118
|
+
- `fix:` Bug fixes
|
|
119
|
+
- `docs:` Documentation changes
|
|
120
|
+
- `style:` Code formatting changes
|
|
121
|
+
- `refactor:` Code refactoring
|
|
122
|
+
- `test:` Test changes
|
|
123
|
+
- `chore:` Maintenance tasks
|
|
124
|
+
|
|
125
|
+
## Testing
|
|
126
|
+
|
|
127
|
+
### Running Tests
|
|
128
|
+
|
|
129
|
+
```bash
|
|
130
|
+
# Run all tests
|
|
131
|
+
pytest
|
|
132
|
+
|
|
133
|
+
# Run specific test file
|
|
134
|
+
pytest test_project/test_wow.py
|
|
135
|
+
|
|
136
|
+
# Run with verbose output
|
|
137
|
+
pytest -v
|
|
138
|
+
```
|
|
139
|
+
|
|
140
|
+
### Writing Tests
|
|
141
|
+
|
|
142
|
+
- Place tests in the `test_project/` directory
|
|
143
|
+
- Use descriptive test names
|
|
144
|
+
- Include both positive and negative test cases
|
|
145
|
+
- Mock external API calls
|
|
146
|
+
|
|
147
|
+
## API Development
|
|
148
|
+
|
|
149
|
+
### Adding New Endpoints
|
|
150
|
+
|
|
151
|
+
1. Add the endpoint method to the appropriate API class
|
|
152
|
+
2. Add tests for the new endpoint
|
|
153
|
+
3. Update documentation if needed
|
|
154
|
+
4. Ensure proper error handling
|
|
155
|
+
|
|
156
|
+
### Import Fixes
|
|
157
|
+
|
|
158
|
+
If you encounter import issues:
|
|
159
|
+
|
|
160
|
+
- Check that classes inherit from `Api` (not `BaseApi`)
|
|
161
|
+
- Ensure `Locale` and `Region` are imported from `types.py`
|
|
162
|
+
- Verify class names are consistent (e.g., `BattlenetOAuthApi`)
|
|
163
|
+
|
|
164
|
+
## Release Process
|
|
165
|
+
|
|
166
|
+
Releases are automated through GitHub Actions:
|
|
167
|
+
|
|
168
|
+
1. Push to main branch
|
|
169
|
+
2. Tests run automatically
|
|
170
|
+
3. Version is bumped
|
|
171
|
+
4. Package is published to PyPI
|
|
172
|
+
5. GitHub release is created
|
|
173
|
+
|
|
174
|
+
## Getting Help
|
|
175
|
+
|
|
176
|
+
- Check existing issues and pull requests
|
|
177
|
+
- Create a new issue for bugs or feature requests
|
|
178
|
+
- Ask questions in discussions
|
|
179
|
+
|
|
180
|
+
## Code of Conduct
|
|
181
|
+
|
|
182
|
+
Please be respectful and inclusive in all interactions. We welcome contributors from all backgrounds and experience levels.
|
|
@@ -28,7 +28,7 @@ version_tuple: VERSION_TUPLE
|
|
|
28
28
|
commit_id: COMMIT_ID
|
|
29
29
|
__commit_id__: COMMIT_ID
|
|
30
30
|
|
|
31
|
-
__version__ = version = '2.
|
|
32
|
-
__version_tuple__ = version_tuple = (2,
|
|
31
|
+
__version__ = version = '2.1.11.dev4+g61e24890b'
|
|
32
|
+
__version_tuple__ = version_tuple = (2, 1, 11, 'dev4', 'g61e24890b')
|
|
33
33
|
|
|
34
|
-
__commit_id__ = commit_id = '
|
|
34
|
+
__commit_id__ = commit_id = 'g61e24890b'
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
.gitignore
|
|
2
|
+
.pre-commit-config.yaml
|
|
2
3
|
CODE_OF_CONDUCT.md
|
|
3
4
|
CONTRIBUTING.md
|
|
4
5
|
LICENSE
|
|
@@ -12,6 +13,7 @@ uv.lock
|
|
|
12
13
|
.github/ISSUE_TEMPLATE/bug_report.md
|
|
13
14
|
.github/ISSUE_TEMPLATE/feature_request.md
|
|
14
15
|
.github/workflows/README.md
|
|
16
|
+
.github/workflows/black-check.yml
|
|
15
17
|
.github/workflows/black.yml
|
|
16
18
|
.github/workflows/python-package.yml
|
|
17
19
|
blizzardapi2/__init__.py
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "blizzardapi2"
|
|
3
|
-
version = "2.1.
|
|
3
|
+
version = "2.1.11"
|
|
4
4
|
description = "A Python wrapper for Blizzard API"
|
|
5
5
|
authors = [{ name = "lostcol0ny", email = "c098os0k@4wrd.cc" }]
|
|
6
6
|
license = "MIT"
|
|
@@ -27,8 +27,9 @@ classifiers = [
|
|
|
27
27
|
requires = ["setuptools>=42", "wheel", "setuptools_scm[toml]>=6.2"]
|
|
28
28
|
build-backend = "setuptools.build_meta"
|
|
29
29
|
|
|
30
|
-
[tool.setuptools]
|
|
31
|
-
|
|
30
|
+
[tool.setuptools.packages.find]
|
|
31
|
+
where = ["."]
|
|
32
|
+
include = ["blizzardapi2*"]
|
|
32
33
|
|
|
33
34
|
[tool.setuptools_scm]
|
|
34
35
|
write_to = "blizzardapi2/_version.py"
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
# How To Contribute
|
|
2
|
-
## Features
|
|
3
|
-
If Blizzard adds a new API endpoint and you get to it before I do, feel free to open a PR. There are a few things I ask if you contribute:
|
|
4
|
-
<ul>Follow the conventions already in the code -- keep everything uniform.</ul>
|
|
5
|
-
<ul>If you write an API endpoint function, write its accompanying test in the proper file.</ul>
|
|
6
|
-
<ul>black is the preferred formatting system for this project</ul>
|
|
7
|
-
|
|
8
|
-
## Bugs
|
|
9
|
-
I'm a hobbyist with Python so there's a decent chance I'll make a mistake. I run PyTest against every function I write, but that won't catch everything.
|
|
10
|
-
When you submit a PR that fixes a bug, be clear about what the bug is and how your changes fix it.
|
|
11
|
-
Follow the same guidelines as you would if you were submitting a feature.
|
|
12
|
-
|
|
13
|
-
## Contact
|
|
14
|
-
Feel free to contact me with any questions/comments. You can email me at c098os0k@4wrd.cc or find me on Discord.
|
|
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.1.9 → blizzardapi2-2.1.11}/blizzardapi2/hearthstone/hearthstone_game_data_api.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{blizzardapi2-2.1.9 → blizzardapi2-2.1.11}/blizzardapi2/starcraft2/starcraft2_community_api.py
RENAMED
|
File without changes
|
{blizzardapi2-2.1.9 → blizzardapi2-2.1.11}/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
|
|
File without changes
|