blizzardapi2 2.1.8__tar.gz → 2.1.10__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 (56) hide show
  1. blizzardapi2-2.1.10/.github/workflows/README.md +160 -0
  2. blizzardapi2-2.1.10/.github/workflows/black-check.yml +18 -0
  3. blizzardapi2-2.1.10/.github/workflows/black.yml +43 -0
  4. {blizzardapi2-2.1.8 → blizzardapi2-2.1.10}/.github/workflows/python-package.yml +15 -14
  5. blizzardapi2-2.1.10/.pre-commit-config.yaml +19 -0
  6. blizzardapi2-2.1.10/CONTRIBUTING.md +182 -0
  7. {blizzardapi2-2.1.8/blizzardapi2.egg-info → blizzardapi2-2.1.10}/PKG-INFO +1 -1
  8. {blizzardapi2-2.1.8 → blizzardapi2-2.1.10}/blizzardapi2/_version.py +3 -3
  9. {blizzardapi2-2.1.8 → blizzardapi2-2.1.10}/blizzardapi2/battlenet/battlenet_oauth_api.py +1 -0
  10. {blizzardapi2-2.1.8 → blizzardapi2-2.1.10}/blizzardapi2/hearthstone/hearthstone_api.py +1 -0
  11. {blizzardapi2-2.1.8 → blizzardapi2-2.1.10/blizzardapi2.egg-info}/PKG-INFO +1 -1
  12. {blizzardapi2-2.1.8 → blizzardapi2-2.1.10}/blizzardapi2.egg-info/SOURCES.txt +3 -0
  13. {blizzardapi2-2.1.8 → blizzardapi2-2.1.10}/package.json +1 -1
  14. {blizzardapi2-2.1.8 → blizzardapi2-2.1.10}/pyproject.toml +4 -3
  15. blizzardapi2-2.1.8/.github/workflows/black.yml +0 -13
  16. blizzardapi2-2.1.8/CONTRIBUTING.md +0 -14
  17. {blizzardapi2-2.1.8 → blizzardapi2-2.1.10}/.github/ISSUE_TEMPLATE/bug_report.md +0 -0
  18. {blizzardapi2-2.1.8 → blizzardapi2-2.1.10}/.github/ISSUE_TEMPLATE/feature_request.md +0 -0
  19. {blizzardapi2-2.1.8 → blizzardapi2-2.1.10}/.github/dependabot.yml +0 -0
  20. {blizzardapi2-2.1.8 → blizzardapi2-2.1.10}/.gitignore +0 -0
  21. {blizzardapi2-2.1.8 → blizzardapi2-2.1.10}/CODE_OF_CONDUCT.md +0 -0
  22. {blizzardapi2-2.1.8 → blizzardapi2-2.1.10}/LICENSE +0 -0
  23. {blizzardapi2-2.1.8 → blizzardapi2-2.1.10}/README.md +0 -0
  24. {blizzardapi2-2.1.8 → blizzardapi2-2.1.10}/SECURITY.md +0 -0
  25. {blizzardapi2-2.1.8 → blizzardapi2-2.1.10}/blizzardapi2/__init__.py +0 -0
  26. {blizzardapi2-2.1.8 → blizzardapi2-2.1.10}/blizzardapi2/api.py +0 -0
  27. {blizzardapi2-2.1.8 → blizzardapi2-2.1.10}/blizzardapi2/battlenet/__init__.py +0 -0
  28. {blizzardapi2-2.1.8 → blizzardapi2-2.1.10}/blizzardapi2/battlenet/battlenet_api.py +0 -0
  29. {blizzardapi2-2.1.8 → blizzardapi2-2.1.10}/blizzardapi2/blizzard_api.py +0 -0
  30. {blizzardapi2-2.1.8 → blizzardapi2-2.1.10}/blizzardapi2/diablo3/__init__.py +0 -0
  31. {blizzardapi2-2.1.8 → blizzardapi2-2.1.10}/blizzardapi2/diablo3/diablo3_api.py +0 -0
  32. {blizzardapi2-2.1.8 → blizzardapi2-2.1.10}/blizzardapi2/diablo3/diablo3_community_api.py +0 -0
  33. {blizzardapi2-2.1.8 → blizzardapi2-2.1.10}/blizzardapi2/diablo3/diablo3_game_data_api.py +0 -0
  34. {blizzardapi2-2.1.8 → blizzardapi2-2.1.10}/blizzardapi2/hearthstone/__init__.py +0 -0
  35. {blizzardapi2-2.1.8 → blizzardapi2-2.1.10}/blizzardapi2/hearthstone/hearthstone_game_data_api.py +0 -0
  36. {blizzardapi2-2.1.8 → blizzardapi2-2.1.10}/blizzardapi2/starcraft2/__init__.py +0 -0
  37. {blizzardapi2-2.1.8 → blizzardapi2-2.1.10}/blizzardapi2/starcraft2/starcraft2_api.py +0 -0
  38. {blizzardapi2-2.1.8 → blizzardapi2-2.1.10}/blizzardapi2/starcraft2/starcraft2_community_api.py +0 -0
  39. {blizzardapi2-2.1.8 → blizzardapi2-2.1.10}/blizzardapi2/starcraft2/starcraft2_game_data_api.py +0 -0
  40. {blizzardapi2-2.1.8 → blizzardapi2-2.1.10}/blizzardapi2/types.py +0 -0
  41. {blizzardapi2-2.1.8 → blizzardapi2-2.1.10}/blizzardapi2/wow/__init__.py +0 -0
  42. {blizzardapi2-2.1.8 → blizzardapi2-2.1.10}/blizzardapi2/wow/wow_api.py +0 -0
  43. {blizzardapi2-2.1.8 → blizzardapi2-2.1.10}/blizzardapi2/wow/wow_game_data_api.py +0 -0
  44. {blizzardapi2-2.1.8 → blizzardapi2-2.1.10}/blizzardapi2/wow/wow_profile_api.py +0 -0
  45. {blizzardapi2-2.1.8 → blizzardapi2-2.1.10}/blizzardapi2.egg-info/dependency_links.txt +0 -0
  46. {blizzardapi2-2.1.8 → blizzardapi2-2.1.10}/blizzardapi2.egg-info/requires.txt +0 -0
  47. {blizzardapi2-2.1.8 → blizzardapi2-2.1.10}/blizzardapi2.egg-info/top_level.txt +0 -0
  48. {blizzardapi2-2.1.8 → blizzardapi2-2.1.10}/docs/battlenet/README.md +0 -0
  49. {blizzardapi2-2.1.8 → blizzardapi2-2.1.10}/docs/diablo3/README.md +0 -0
  50. {blizzardapi2-2.1.8 → blizzardapi2-2.1.10}/docs/hearthstone/README.md +0 -0
  51. {blizzardapi2-2.1.8 → blizzardapi2-2.1.10}/docs/pull_request_template.md +0 -0
  52. {blizzardapi2-2.1.8 → blizzardapi2-2.1.10}/docs/starcraft2/README.md +0 -0
  53. {blizzardapi2-2.1.8 → blizzardapi2-2.1.10}/docs/wow/README.md +0 -0
  54. {blizzardapi2-2.1.8 → blizzardapi2-2.1.10}/poetry.lock +0 -0
  55. {blizzardapi2-2.1.8 → blizzardapi2-2.1.10}/setup.cfg +0 -0
  56. {blizzardapi2-2.1.8 → blizzardapi2-2.1.10}/uv.lock +0 -0
@@ -0,0 +1,160 @@
1
+ # GitHub Workflows
2
+
3
+ This directory contains GitHub Actions workflows for the blizzardapi2 project.
4
+
5
+ ## Workflows
6
+
7
+ ### 1. `python-package.yml` - Main CI/CD Pipeline
8
+
9
+ **Triggers:** Push to main branch
10
+
11
+ **Jobs:**
12
+
13
+ - **checkout**: Runs tests on multiple Python versions (3.11, 3.12, 3.13)
14
+ - **publish**: Builds and publishes to PyPI (only on main branch)
15
+ - **release**: Bumps version, creates Git tag, and creates GitHub release (only after successful publish)
16
+
17
+ **Recent Fixes Applied:**
18
+
19
+ - ✅ **Fixed Git identity issue** in release job
20
+ - ✅ **Added proper Git configuration** for automated commits
21
+ - ✅ **Enhanced permissions** for package publishing
22
+ - ✅ **Improved error handling** and environment variables
23
+
24
+ ### 2. `black.yml` - Auto-format with Black
25
+
26
+ **Triggers:** Push and pull requests
27
+
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)
41
+
42
+ ## Issues Fixed
43
+
44
+ ### Git Identity Error
45
+
46
+ **Problem:** Release workflow failed with "Author identity unknown" error
47
+
48
+ ```
49
+ ERROR Error: Author identity unknown
50
+ *** Please tell me who you are.
51
+ ```
52
+
53
+ **Solution:** Added Git configuration in the release job:
54
+
55
+ ```yaml
56
+ - name: Configure Git
57
+ run: |
58
+ git config --global user.name "github-actions[bot]"
59
+ git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
60
+ ```
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
+
77
+ ### Additional Improvements
78
+
79
+ 1. **Enhanced Checkout Configuration:**
80
+
81
+ - Added `fetch-depth: 0` for full history access
82
+ - Added explicit token configuration
83
+
84
+ 2. **Better Permissions:**
85
+
86
+ - Added `packages: write` permission for PyPI publishing
87
+
88
+ 3. **Environment Variables:**
89
+ - Explicitly defined `PYPI_API_TOKEN` environment variable
90
+
91
+ ## Workflow Dependencies
92
+
93
+ The workflows require these secrets to be configured in the repository:
94
+
95
+ - `GITHUB_TOKEN` (automatically provided)
96
+ - `PYPI_API_TOKEN` (for PyPI publishing)
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
+
123
+ ## Troubleshooting
124
+
125
+ ### Common Issues
126
+
127
+ 1. **Git Identity Errors:**
128
+
129
+ - Ensure Git is configured in jobs that make commits
130
+ - Use the github-actions[bot] identity for automated commits
131
+
132
+ 2. **Permission Errors:**
133
+
134
+ - Check that the workflow has the necessary permissions
135
+ - Verify secrets are properly configured
136
+
137
+ 3. **Version Bumping Issues:**
138
+ - Ensure both `pyproject.toml` and `package.json` are updated
139
+ - Check that the sed commands work correctly on the runner OS
140
+
141
+ ### Debugging
142
+
143
+ To debug workflow issues:
144
+
145
+ 1. Check the Actions tab in GitHub
146
+ 2. Review the logs for specific error messages
147
+ 3. Test locally with act (GitHub Actions local runner)
148
+ 4. Verify all required secrets are set
149
+
150
+ ## Future Improvements
151
+
152
+ Consider adding:
153
+
154
+ - [ ] Automated testing on pull requests
155
+ - [ ] Security scanning with CodeQL
156
+ - [ ] Dependency vulnerability scanning
157
+ - [ ] Automated changelog generation
158
+ - [ ] Release notes automation
159
+ - [ ] Performance testing
160
+ - [ ] Coverage reporting
@@ -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
@@ -10,6 +10,7 @@ on:
10
10
  # Add permissions block
11
11
  permissions:
12
12
  contents: write
13
+ packages: write
13
14
 
14
15
  jobs:
15
16
  checkout:
@@ -77,34 +78,34 @@ jobs:
77
78
  run: |
78
79
  python -m pip install --upgrade pip
79
80
  pip install build twine setuptools_scm
80
- # Get the current version from pyproject.toml
81
- CURRENT_VERSION=$(grep 'version = ' pyproject.toml | head -n 1 | cut -d'"' -f2)
82
- # Split version into major.minor.patch
83
- IFS='.' read -r MAJOR MINOR PATCH <<< "$CURRENT_VERSION"
84
- # Increment patch version
85
- NEW_VERSION="$MAJOR.$MINOR.$((PATCH + 1))"
86
- # Update version in pyproject.toml (only the first occurrence, which is the package version)
87
- sed -i "0,/version = \".*\"/s/version = \".*\"/version = \"$NEW_VERSION\"/" pyproject.toml
88
- # Update version in package.json
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
94
81
  python -m build
95
82
  twine upload dist/* --username __token__ --password ${{ secrets.PYPI_API_TOKEN }}
83
+ env:
84
+ PYPI_API_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
85
+
96
86
  release:
97
87
  needs: publish
98
88
  runs-on: ubuntu-latest
99
89
  steps:
100
90
  - name: Checkout repository
101
91
  uses: actions/checkout@v4
92
+ with:
93
+ fetch-depth: 0
94
+ token: ${{ secrets.GITHUB_TOKEN }}
95
+
96
+ - name: Configure Git
97
+ run: |
98
+ git config --global user.name "github-actions[bot]"
99
+ git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
100
+
102
101
  - name: Setup Node.js
103
102
  uses: actions/setup-node@v4
104
103
  with:
105
104
  node-version: "18.x"
105
+
106
106
  - name: Install npm dependencies
107
107
  run: npm install
108
+
108
109
  - name: Run release script
109
110
  env:
110
111
  GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: blizzardapi2
3
- Version: 2.1.8
3
+ Version: 2.1.10
4
4
  Summary: A Python wrapper for Blizzard API
5
5
  Author-email: lostcol0ny <c098os0k@4wrd.cc>
6
6
  License-Expression: MIT
@@ -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.0.8.dev22+g391ab832e'
32
- __version_tuple__ = version_tuple = (2, 0, 8, 'dev22', 'g391ab832e')
31
+ __version__ = version = '2.0.8.dev31+gd43fc3c18'
32
+ __version_tuple__ = version_tuple = (2, 0, 8, 'dev31', 'gd43fc3c18')
33
33
 
34
- __commit_id__ = commit_id = 'g391ab832e'
34
+ __commit_id__ = commit_id = 'gd43fc3c18'
@@ -9,6 +9,7 @@ from typing import Any, Dict
9
9
  from ..api import BaseApi
10
10
  from ..types import Locale, Region
11
11
 
12
+
12
13
  class ApiResponse:
13
14
  """Wrapper for API responses with metadata."""
14
15
 
@@ -9,6 +9,7 @@ from typing import Any, Dict
9
9
  from ..api import BaseApi
10
10
  from ..types import Locale, Region
11
11
 
12
+
12
13
  class ApiResponse:
13
14
  """Wrapper for API responses with metadata."""
14
15
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: blizzardapi2
3
- Version: 2.1.8
3
+ Version: 2.1.10
4
4
  Summary: A Python wrapper for Blizzard API
5
5
  Author-email: lostcol0ny <c098os0k@4wrd.cc>
6
6
  License-Expression: MIT
@@ -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
@@ -11,6 +12,8 @@ uv.lock
11
12
  .github/dependabot.yml
12
13
  .github/ISSUE_TEMPLATE/bug_report.md
13
14
  .github/ISSUE_TEMPLATE/feature_request.md
15
+ .github/workflows/README.md
16
+ .github/workflows/black-check.yml
14
17
  .github/workflows/black.yml
15
18
  .github/workflows/python-package.yml
16
19
  blizzardapi2/__init__.py
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "blizzardapi2",
3
- "version": "2.1.8",
3
+ "version": "2.1.9",
4
4
  "private": true,
5
5
  "scripts": {
6
6
  "release": "release-it"
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "blizzardapi2"
3
- version = "2.1.8"
3
+ version = "2.1.10"
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
- packages = ["blizzardapi2"]
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,13 +0,0 @@
1
- name: Lint
2
-
3
- on: [push, pull_request]
4
-
5
- jobs:
6
- lint:
7
- runs-on: ubuntu-latest
8
- steps:
9
- - uses: actions/checkout@v4
10
- - uses: psf/black@stable
11
- with:
12
- options: "--check --verbose"
13
- src: "."
@@ -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