-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into feature/add-under-pressure
# Conflicts: # kloppy/infra/serializers/event/statsbomb/specification.py # kloppy/tests/test_statsbomb.py
- Loading branch information
Showing
57 changed files
with
158,128 additions
and
4,539 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,104 @@ | ||
name: Release | ||
|
||
|
||
# Most parts are borrowed from https://github.com/pola-rs/polars/blob/main/.github/workflows/release-python.yml | ||
|
||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
# Latest commit to include with the release. If omitted, use the latest commit on the main branch. | ||
sha: | ||
description: Commit SHA | ||
type: string | ||
# Create the sdist and build the wheels, but do not publish to PyPI / GitHub. | ||
dry-run: | ||
description: Dry run | ||
type: boolean | ||
default: false | ||
env: | ||
PYTHON_VERSION: '3.11' | ||
|
||
defaults: | ||
run: | ||
shell: bash | ||
|
||
jobs: | ||
create-sdist: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
ref: ${{ inputs.sha }} | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ env.PYTHON_VERSION }} | ||
|
||
- name: Create source distribution | ||
run: python setup.py sdist | ||
|
||
- name: Test sdist | ||
run: | | ||
pip install --force-reinstall --verbose dist/*.tar.gz | ||
python -c 'import kloppy' | ||
- name: Upload sdist | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: sdist-kloppy | ||
path: dist/*.tar.gz | ||
|
||
build-wheel: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
ref: ${{ inputs.sha }} | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ env.PYTHON_VERSION }} | ||
|
||
- name: Install wheel | ||
run: pip install wheel | ||
|
||
- name: Build wheel | ||
run: python setup.py bdist_wheel | ||
|
||
- name: Test wheel | ||
run: | | ||
pip install --force-reinstall --verbose dist/*.whl | ||
python -c 'import kloppy' | ||
- name: Upload wheel | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: wheel-kloppy | ||
path: dist/*.whl | ||
|
||
publish-to-pypi: | ||
needs: [create-sdist, build-wheel] | ||
environment: | ||
name: release-python | ||
url: https://pypi.org/project/kloppy | ||
runs-on: ubuntu-latest | ||
permissions: | ||
id-token: write | ||
|
||
steps: | ||
- name: Download sdists and wheels | ||
uses: actions/download-artifact@v4 | ||
with: | ||
path: dist | ||
merge-multiple: true | ||
|
||
- name: Publish to PyPI | ||
if: inputs.dry-run == false | ||
uses: pypa/gh-action-pypi-publish@release/v1 | ||
with: | ||
verbose: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -151,4 +151,7 @@ examples/pattern_matching/repository/*.json | |
|
||
.* | ||
|
||
!.github | ||
!.gitignore | ||
|
||
scratchpad |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
repos: | ||
- repo: https://github.com/ambv/black | ||
rev: 23.3.0 | ||
rev: 22.3.0 | ||
hooks: | ||
- id: black | ||
language_version: python3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,4 +13,4 @@ | |
# ) | ||
# from .domain.services.state_builder import add_state | ||
|
||
__version__ = "3.14.0" | ||
__version__ = "3.15.0" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.