capthalline 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.
- capthalline-0.1.0/.github/workflows/release.yml +79 -0
- capthalline-0.1.0/.gitignore +6 -0
- capthalline-0.1.0/Cargo.lock +1170 -0
- capthalline-0.1.0/Cargo.toml +20 -0
- capthalline-0.1.0/PKG-INFO +40 -0
- capthalline-0.1.0/README.md +17 -0
- capthalline-0.1.0/capthalline.pyi +11 -0
- capthalline-0.1.0/examples/captcha.png +0 -0
- capthalline-0.1.0/examples/generate_captcha.py +14 -0
- capthalline-0.1.0/pyproject.toml +30 -0
- capthalline-0.1.0/src/captcha.rs +124 -0
- capthalline-0.1.0/src/lib.rs +11 -0
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
name: Build and Publish
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches:
|
|
6
|
+
- main
|
|
7
|
+
tags:
|
|
8
|
+
- "**"
|
|
9
|
+
pull_request: {}
|
|
10
|
+
release:
|
|
11
|
+
types: [published]
|
|
12
|
+
|
|
13
|
+
env:
|
|
14
|
+
COLUMNS: 150
|
|
15
|
+
|
|
16
|
+
jobs:
|
|
17
|
+
build-sdist:
|
|
18
|
+
name: Build Source Distribution (sdist)
|
|
19
|
+
runs-on: ubuntu-latest
|
|
20
|
+
steps:
|
|
21
|
+
- uses: actions/checkout@v4
|
|
22
|
+
- uses: PyO3/maturin-action@v1
|
|
23
|
+
with:
|
|
24
|
+
command: sdist
|
|
25
|
+
args: --out dist
|
|
26
|
+
rust-toolchain: stable
|
|
27
|
+
- uses: actions/upload-artifact@v4
|
|
28
|
+
with:
|
|
29
|
+
name: sdist
|
|
30
|
+
path: dist
|
|
31
|
+
|
|
32
|
+
build:
|
|
33
|
+
name: Build on ${{ matrix.os }} (${{ matrix.python-version }})
|
|
34
|
+
runs-on: ${{ matrix.os }}-latest
|
|
35
|
+
strategy:
|
|
36
|
+
fail-fast: false
|
|
37
|
+
matrix:
|
|
38
|
+
os: [ubuntu, macos, windows]
|
|
39
|
+
python-version: ['3.10', '3.11', '3.12', '3.13']
|
|
40
|
+
steps:
|
|
41
|
+
- uses: actions/checkout@v4
|
|
42
|
+
- name: Set up Python
|
|
43
|
+
uses: actions/setup-python@v5
|
|
44
|
+
with:
|
|
45
|
+
python-version: ${{ matrix.python-version }}
|
|
46
|
+
- name: Install dependencies
|
|
47
|
+
run: pip install maturin twine
|
|
48
|
+
- name: Build wheel with maturin
|
|
49
|
+
uses: PyO3/maturin-action@v1
|
|
50
|
+
with:
|
|
51
|
+
args: --release --out dist --interpreter ${{ matrix.python-version }}
|
|
52
|
+
rust-toolchain: stable
|
|
53
|
+
- uses: actions/upload-artifact@v4
|
|
54
|
+
with:
|
|
55
|
+
name: wheels-${{ matrix.os }}-py${{ matrix.python-version }}
|
|
56
|
+
path: dist
|
|
57
|
+
|
|
58
|
+
publish:
|
|
59
|
+
name: Publish to PyPI
|
|
60
|
+
needs: [build-sdist, build]
|
|
61
|
+
if: github.event_name == 'release'
|
|
62
|
+
runs-on: ubuntu-latest
|
|
63
|
+
permissions:
|
|
64
|
+
id-token: write
|
|
65
|
+
steps:
|
|
66
|
+
- uses: actions/checkout@v4
|
|
67
|
+
- name: Download build artifacts
|
|
68
|
+
uses: actions/download-artifact@v4
|
|
69
|
+
with:
|
|
70
|
+
path: dist
|
|
71
|
+
- name: Publish package distributions to PyPI
|
|
72
|
+
uses: pypa/gh-action-pypi-publish@release/v1
|
|
73
|
+
with:
|
|
74
|
+
user: __token__
|
|
75
|
+
password: ${{ secrets.PYPI_API_TOKEN }}
|
|
76
|
+
repository-url: https://upload.pypi.org/legacy/
|
|
77
|
+
packages-dir: dist/*/
|
|
78
|
+
verify-metadata: true
|
|
79
|
+
skip-existing: false
|