shakmaty-python-binding 0.1.4__tar.gz → 0.1.6__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.
- shakmaty_python_binding-0.1.6/.github/workflows/ci.yml +61 -0
- shakmaty_python_binding-0.1.6/.gitignore +21 -0
- {shakmaty_python_binding-0.1.4 → shakmaty_python_binding-0.1.6}/Cargo.lock +149 -204
- {shakmaty_python_binding-0.1.4 → shakmaty_python_binding-0.1.6}/Cargo.toml +6 -6
- {shakmaty_python_binding-0.1.4 → shakmaty_python_binding-0.1.6}/PKG-INFO +2 -3
- shakmaty_python_binding-0.1.6/dist/shakmaty_python_binding-0.1.6-cp314-cp314-manylinux_2_34_x86_64.whl +0 -0
- {shakmaty_python_binding-0.1.4 → shakmaty_python_binding-0.1.6}/pyproject.toml +2 -1
- {shakmaty_python_binding-0.1.4 → shakmaty_python_binding-0.1.6}/shakmaty_python_binding.pyi +56 -53
- shakmaty_python_binding-0.1.6/src/lib.rs +620 -0
- shakmaty_python_binding-0.1.6/tests/test_python314.py +57 -0
- shakmaty_python_binding-0.1.4/.github/FUNDING.yml +0 -1
- shakmaty_python_binding-0.1.4/.github/dependabot.yml +0 -10
- shakmaty_python_binding-0.1.4/.github/workflows/publish.yml +0 -23
- shakmaty_python_binding-0.1.4/.github/workflows/test.yml +0 -37
- shakmaty_python_binding-0.1.4/.gitignore +0 -2
- shakmaty_python_binding-0.1.4/.idea/.gitignore +0 -3
- shakmaty_python_binding-0.1.4/.idea/inspectionProfiles/profiles_settings.xml +0 -6
- shakmaty_python_binding-0.1.4/.idea/misc.xml +0 -7
- shakmaty_python_binding-0.1.4/.idea/modules.xml +0 -8
- shakmaty_python_binding-0.1.4/.idea/shakmaty_python_binding.iml +0 -8
- shakmaty_python_binding-0.1.4/.idea/vcs.xml +0 -6
- shakmaty_python_binding-0.1.4/CHANGELOG.md +0 -3
- shakmaty_python_binding-0.1.4/COPYING +0 -674
- shakmaty_python_binding-0.1.4/Cargo_save.toml +0 -41
- shakmaty_python_binding-0.1.4/benches/benches.rs +0 -113
- shakmaty_python_binding-0.1.4/dist/shakmaty_python_binding-0.1.0-cp311-cp311-linux_x86_64.whl +0 -0
- shakmaty_python_binding-0.1.4/dist/shakmaty_python_binding-0.1.0.tar.gz +0 -0
- shakmaty_python_binding-0.1.4/dist/shakmaty_python_binding-0.1.1-cp311-cp311-linux_x86_64.whl +0 -0
- shakmaty_python_binding-0.1.4/dist/shakmaty_python_binding-0.1.1.tar.gz +0 -0
- shakmaty_python_binding-0.1.4/rustfmt.toml +0 -2
- shakmaty_python_binding-0.1.4/src/lib.rs +0 -574
- shakmaty_python_binding-0.1.4/tests/3check.perft +0 -11
- shakmaty_python_binding-0.1.4/tests/antichess.perft +0 -31
- shakmaty_python_binding-0.1.4/tests/atomic.perft +0 -51
- shakmaty_python_binding-0.1.4/tests/chess960.perft +0 -8642
- shakmaty_python_binding-0.1.4/tests/crazyhouse.perft +0 -25
- shakmaty_python_binding-0.1.4/tests/horde.perft +0 -20
- shakmaty_python_binding-0.1.4/tests/horde_insufficient_material.csv +0 -21997
- shakmaty_python_binding-0.1.4/tests/horde_insufficient_material.rs +0 -37
- shakmaty_python_binding-0.1.4/tests/perft.rs +0 -87
- shakmaty_python_binding-0.1.4/tests/racingkings.perft +0 -15
- shakmaty_python_binding-0.1.4/tests/random.perft +0 -61579
- shakmaty_python_binding-0.1.4/tests/tricky.perft +0 -166
- shakmaty_python_binding-0.1.4/tests/zobrist.csv +0 -801
- shakmaty_python_binding-0.1.4/tests/zobrist.rs +0 -45
- {shakmaty_python_binding-0.1.4 → shakmaty_python_binding-0.1.6}/README.md +0 -0
- {shakmaty_python_binding-0.1.4 → shakmaty_python_binding-0.1.6}/main.py +0 -0
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
name: ci
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches: [master]
|
|
6
|
+
tags: ["v*"]
|
|
7
|
+
pull_request:
|
|
8
|
+
workflow_dispatch:
|
|
9
|
+
|
|
10
|
+
permissions:
|
|
11
|
+
contents: read
|
|
12
|
+
|
|
13
|
+
jobs:
|
|
14
|
+
test:
|
|
15
|
+
runs-on: ubuntu-24.04
|
|
16
|
+
timeout-minutes: 20
|
|
17
|
+
steps:
|
|
18
|
+
- uses: actions/checkout@v4
|
|
19
|
+
- uses: actions/setup-python@v5
|
|
20
|
+
with:
|
|
21
|
+
python-version: "3.14"
|
|
22
|
+
- uses: dtolnay/rust-toolchain@stable
|
|
23
|
+
- name: Verify release tag matches the package
|
|
24
|
+
run: |
|
|
25
|
+
python - <<'PY'
|
|
26
|
+
import os
|
|
27
|
+
import tomllib
|
|
28
|
+
from pathlib import Path
|
|
29
|
+
version = tomllib.loads(Path("Cargo.toml").read_text())["package"]["version"]
|
|
30
|
+
ref = os.environ["GITHUB_REF"]
|
|
31
|
+
if ref.startswith("refs/tags/"):
|
|
32
|
+
assert ref == f"refs/tags/v{version}", (ref, version)
|
|
33
|
+
PY
|
|
34
|
+
- name: Build native wheel and source distribution
|
|
35
|
+
run: |
|
|
36
|
+
python -m pip install maturin==1.15.0 chess==1.11.2 twine==7.0.0
|
|
37
|
+
maturin build --release --locked --out dist
|
|
38
|
+
maturin sdist --out dist
|
|
39
|
+
python -m twine check --strict dist/*
|
|
40
|
+
- name: Exercise installed native binding
|
|
41
|
+
run: |
|
|
42
|
+
python -m pip install --no-deps dist/*.whl
|
|
43
|
+
python -m unittest discover -s tests -v
|
|
44
|
+
- uses: actions/upload-artifact@v4
|
|
45
|
+
with:
|
|
46
|
+
name: distributions
|
|
47
|
+
path: dist/
|
|
48
|
+
|
|
49
|
+
publish:
|
|
50
|
+
if: startsWith(github.ref, 'refs/tags/v')
|
|
51
|
+
needs: test
|
|
52
|
+
runs-on: ubuntu-24.04
|
|
53
|
+
environment: pypi
|
|
54
|
+
permissions:
|
|
55
|
+
id-token: write
|
|
56
|
+
steps:
|
|
57
|
+
- uses: actions/download-artifact@v4
|
|
58
|
+
with:
|
|
59
|
+
name: distributions
|
|
60
|
+
path: dist/
|
|
61
|
+
- uses: pypa/gh-action-pypi-publish@release/v1
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# Generated by Cargo
|
|
2
|
+
# will have compiled files and executables
|
|
3
|
+
debug/
|
|
4
|
+
target/
|
|
5
|
+
|
|
6
|
+
# Remove Cargo.lock from gitignore if creating an executable, leave it for libraries
|
|
7
|
+
# More information here https://doc.rust-lang.org/cargo/guide/cargo-toml-vs-cargo-lock.html
|
|
8
|
+
Cargo.lock
|
|
9
|
+
|
|
10
|
+
# These are backup files generated by rustfmt
|
|
11
|
+
**/*.rs.bk
|
|
12
|
+
|
|
13
|
+
# MSVC Windows builds of rustc generate these, which store debugging information
|
|
14
|
+
*.pdb
|
|
15
|
+
|
|
16
|
+
# RustRover
|
|
17
|
+
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
|
|
18
|
+
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
|
|
19
|
+
# and can be added to the global gitignore or merged into this file. For a more nuclear
|
|
20
|
+
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
|
|
21
|
+
#.idea/
|