soccernetpy 0.1.2__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.
@@ -0,0 +1,145 @@
1
+ name: CI
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - main
7
+ - master
8
+ tags:
9
+ - '*'
10
+ pull_request:
11
+ workflow_dispatch:
12
+
13
+ permissions:
14
+ contents: read
15
+
16
+ jobs:
17
+ linux:
18
+ runs-on: ubuntu-22.04
19
+ env:
20
+ CFLAGS_aarch64_unknown_linux_gnu: "-D__ARM_ARCH=8"
21
+ strategy:
22
+ fail-fast: false
23
+ matrix:
24
+ target: [x86_64, aarch64]
25
+ steps:
26
+ - uses: actions/checkout@v4
27
+ - uses: actions/setup-python@v5
28
+ with:
29
+ python-version: '3.x'
30
+ - name: Build wheels
31
+ uses: PyO3/maturin-action@v1
32
+ with:
33
+ target: ${{ matrix.target }}
34
+ args: --release --out dist --find-interpreter
35
+ sccache: ${{ !startsWith(github.ref, 'refs/tags/') }}
36
+ manylinux: auto
37
+ - name: Upload wheels
38
+ uses: actions/upload-artifact@v4
39
+ with:
40
+ name: wheels-linux-${{ matrix.target }}
41
+ path: dist
42
+
43
+ windows:
44
+ runs-on: ${{ matrix.runner }}
45
+ strategy:
46
+ fail-fast: false
47
+ matrix:
48
+ include:
49
+ - runner: windows-latest
50
+ target: x64
51
+ python_arch: x64
52
+ - runner: windows-11-arm
53
+ target: aarch64
54
+ python_arch: arm64
55
+ steps:
56
+ - uses: actions/checkout@v4
57
+ - uses: actions/setup-python@v5
58
+ with:
59
+ python-version: '3.13'
60
+ architecture: ${{ matrix.python_arch }}
61
+ - name: Build wheels
62
+ uses: PyO3/maturin-action@v1
63
+ with:
64
+ target: ${{ matrix.target }}
65
+ args: --release --out dist --find-interpreter
66
+ sccache: ${{ !startsWith(github.ref, 'refs/tags/') }}
67
+ - name: Upload wheels
68
+ uses: actions/upload-artifact@v4
69
+ with:
70
+ name: wheels-windows-${{ matrix.target }}
71
+ path: dist
72
+
73
+ macos:
74
+ runs-on: ${{ matrix.runner }}
75
+ strategy:
76
+ fail-fast: false
77
+ matrix:
78
+ include:
79
+ - runner: macos-14
80
+ target: aarch64
81
+ steps:
82
+ - uses: actions/checkout@v4
83
+ - uses: actions/setup-python@v5
84
+ with:
85
+ python-version: '3.x'
86
+ - name: Build wheels
87
+ uses: PyO3/maturin-action@v1
88
+ with:
89
+ target: ${{ matrix.target }}
90
+ args: --release --out dist --find-interpreter
91
+ sccache: ${{ !startsWith(github.ref, 'refs/tags/') }}
92
+ - name: Upload wheels
93
+ uses: actions/upload-artifact@v4
94
+ with:
95
+ name: wheels-macos-${{ matrix.target }}
96
+ path: dist
97
+
98
+ sdist:
99
+ runs-on: ubuntu-latest
100
+ steps:
101
+ - uses: actions/checkout@v4
102
+ - name: Build sdist
103
+ uses: PyO3/maturin-action@v1
104
+ with:
105
+ command: sdist
106
+ args: --out dist
107
+ - name: Upload sdist
108
+ uses: actions/upload-artifact@v4
109
+ with:
110
+ name: wheels-sdist
111
+ path: dist
112
+
113
+ release:
114
+ name: Release
115
+ runs-on: ubuntu-latest
116
+ environment: pypi
117
+ if: ${{ startsWith(github.ref, 'refs/tags/') || github.event_name == 'workflow_dispatch' }}
118
+ needs: [linux, windows, macos, sdist]
119
+ permissions:
120
+ id-token: write
121
+ contents: write
122
+ attestations: write
123
+ steps:
124
+ - uses: actions/download-artifact@v4
125
+ with:
126
+ pattern: wheels-*
127
+ path: dist
128
+ merge-multiple: true
129
+
130
+ - name: Generate artifact attestation
131
+ uses: actions/attest-build-provenance@v1
132
+ with:
133
+ subject-path: 'dist/*'
134
+
135
+ - name: Install uv
136
+ if: ${{ startsWith(github.ref, 'refs/tags/') }}
137
+ uses: astral-sh/setup-uv@v3
138
+
139
+ - name: Publish to TestPyPI
140
+ if: ${{ startsWith(github.ref, 'refs/tags/') }}
141
+ run: uv publish --publish-url https://test.pypi.org/legacy/ 'dist/*'
142
+
143
+ - name: Publish to PyPI
144
+ if: ${{ startsWith(github.ref, 'refs/tags/') && !contains(github.ref_name, '-') }}
145
+ run: uv publish 'dist/*'
@@ -0,0 +1,73 @@
1
+ /target
2
+
3
+ # Byte-compiled / optimized / DLL files
4
+ __pycache__/
5
+ .pytest_cache/
6
+ *.py[cod]
7
+
8
+ # C extensions
9
+ *.so
10
+
11
+ working/
12
+ # Distribution / packaging
13
+ .Python
14
+ .venv/
15
+ env/
16
+ bin/
17
+ build/
18
+ develop-eggs/
19
+ dist/
20
+ eggs/
21
+ lib/
22
+ lib64/
23
+ parts/
24
+ sdist/
25
+ var/
26
+ include/
27
+ man/
28
+ venv/
29
+ *.egg-info/
30
+ .installed.cfg
31
+ *.egg
32
+
33
+ # Installer logs
34
+ pip-log.txt
35
+ pip-delete-this-directory.txt
36
+ pip-selfcheck.json
37
+
38
+ # Unit test / coverage reports
39
+ htmlcov/
40
+ .tox/
41
+ .coverage
42
+ .cache
43
+ nosetests.xml
44
+ coverage.xml
45
+
46
+ # Translations
47
+ *.mo
48
+
49
+ # Mr Developer
50
+ .mr.developer.cfg
51
+ .project
52
+ .pydevproject
53
+
54
+ # Rope
55
+ .ropeproject
56
+
57
+ # Django stuff:
58
+ *.log
59
+ *.pot
60
+
61
+ .DS_Store
62
+
63
+ # Sphinx documentation
64
+ docs/_build/
65
+
66
+ # PyCharm
67
+ .idea/
68
+
69
+ # VSCode
70
+ .vscode/
71
+
72
+ # Pyenv
73
+ .python-version