osu-beatmap-preview-py 0.1.0__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,31 @@
1
+ name: CI
2
+
3
+ on:
4
+ push:
5
+ branches: [main]
6
+ pull_request:
7
+
8
+ jobs:
9
+ test:
10
+ runs-on: ${{ matrix.os }}
11
+ strategy:
12
+ fail-fast: false
13
+ matrix:
14
+ os: [ubuntu-latest, windows-latest, macos-latest]
15
+ python-version: ["3.10", "3.13"]
16
+ steps:
17
+ - uses: actions/checkout@v4
18
+ - uses: actions/setup-python@v5
19
+ with:
20
+ python-version: ${{ matrix.python-version }}
21
+ - uses: dtolnay/rust-toolchain@stable
22
+ with:
23
+ components: clippy, rustfmt
24
+ - uses: Swatinem/rust-cache@v2
25
+ - uses: astral-sh/setup-uv@v6
26
+ - run: uv sync --no-install-project
27
+ - run: uv run maturin develop
28
+ - run: uv run pytest
29
+ - run: uv run ruff check .
30
+ - run: cargo fmt --check
31
+ - run: cargo clippy --all-targets -- -D warnings
@@ -0,0 +1,74 @@
1
+ name: Release
2
+
3
+ on:
4
+ push:
5
+ tags: ["v*"]
6
+ workflow_dispatch:
7
+
8
+ permissions:
9
+ contents: read
10
+
11
+ jobs:
12
+ wheels:
13
+ name: Wheel ${{ matrix.platform.target }}
14
+ runs-on: ${{ matrix.platform.os }}
15
+ strategy:
16
+ fail-fast: false
17
+ matrix:
18
+ platform:
19
+ - os: windows-latest
20
+ target: x86_64-pc-windows-msvc
21
+ manylinux: "off"
22
+ - os: macos-15-intel
23
+ target: x86_64-apple-darwin
24
+ manylinux: "off"
25
+ - os: macos-15
26
+ target: aarch64-apple-darwin
27
+ manylinux: "off"
28
+ - os: ubuntu-latest
29
+ target: x86_64-unknown-linux-gnu
30
+ manylinux: "2_28"
31
+ - os: ubuntu-latest
32
+ target: aarch64-unknown-linux-gnu
33
+ manylinux: "2_28"
34
+ steps:
35
+ - uses: actions/checkout@v4
36
+ - uses: actions/setup-python@v5
37
+ with:
38
+ python-version: "3.10"
39
+ - uses: PyO3/maturin-action@v1
40
+ with:
41
+ target: ${{ matrix.platform.target }}
42
+ args: --release --locked --out dist
43
+ manylinux: ${{ matrix.platform.manylinux }}
44
+ - uses: actions/upload-artifact@v4
45
+ with:
46
+ name: wheels-${{ matrix.platform.target }}-${{ matrix.platform.os }}
47
+ path: dist
48
+
49
+ sdist:
50
+ runs-on: ubuntu-latest
51
+ steps:
52
+ - uses: actions/checkout@v4
53
+ - uses: PyO3/maturin-action@v1
54
+ with:
55
+ command: sdist
56
+ args: --out dist
57
+ - uses: actions/upload-artifact@v4
58
+ with:
59
+ name: sdist
60
+ path: dist
61
+
62
+ publish:
63
+ runs-on: ubuntu-latest
64
+ needs: [wheels, sdist]
65
+ environment: pypi
66
+ permissions:
67
+ id-token: write
68
+ steps:
69
+ - uses: actions/download-artifact@v4
70
+ with:
71
+ pattern: "*"
72
+ path: dist
73
+ merge-multiple: true
74
+ - uses: pypa/gh-action-pypi-publish@release/v1
@@ -0,0 +1,10 @@
1
+ /target/
2
+ /dist/
3
+ /.venv/
4
+ /.pytest_cache/
5
+ /.ruff_cache/
6
+ __pycache__/
7
+ *.py[cod]
8
+ *.so
9
+ *.pyd
10
+ *.pdb