Skip to content

Commit 70d584a

Browse files
committed
add suport of arm64 M1
1 parent d568902 commit 70d584a

File tree

4 files changed

+47
-16
lines changed

4 files changed

+47
-16
lines changed

.github/workflows/deploy.yml

+22
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,32 @@ jobs:
3232
profile: minimal
3333
toolchain: stable
3434
override: true
35+
- name: Install Cross-compilers (macOS)
36+
if: matrix.os == 'macos-latest'
37+
run: |
38+
rustup target add x86_64-apple-darwin
39+
rustup target add aarch64-apple-darwin
3540
- name: Publish Package
3641
uses: messense/maturin-action@v1
42+
if: matrix.os != 'macos-latest'
3743
with:
3844
command: publish
3945
args: --username=__token__ --no-sdist --interpreter=python${{ !startsWith(matrix.os, 'windows') && matrix.python-version || '' }}
4046
env:
4147
MATURIN_PASSWORD: ${{ secrets.pypi_password }}
48+
- name: Publish macOS (x86_64) Package
49+
if: matrix.os == 'macos-latest'
50+
uses: PyO3/maturin-action@v1
51+
with:
52+
command: publish
53+
args: --username=__token__ --interpreter=python${{ matrix.python-version }} --target=x86_64-apple-darwin --no-sdist
54+
env:
55+
MATURIN_PASSWORD: ${{ secrets.pypi_password }}
56+
- name: Publish macOS (arm64) Package
57+
if: matrix.os == 'macos-latest'
58+
uses: PyO3/maturin-action@v1
59+
with:
60+
command: publish
61+
args: --username=__token__ --interpreter=python${{ matrix.python-version }} --target=aarch64-apple-darwin --no-sdist
62+
env:
63+
MATURIN_PASSWORD: ${{ secrets.pypi_password }}

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
__pycache__/
88
*.py[cod]
99
*$py.class
10+
.vscode/
1011

1112
# C extensions
1213
*.so

Cargo.toml

+1-16
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "pyrepscan"
3-
version = "0.11.0"
3+
version = "0.12.0"
44
authors = ["Gal Ben David <gal@intsights.com>"]
55
edition = "2021"
66
description = "A Git Repository Secrets Scanner written in Rust"
@@ -16,21 +16,6 @@ keywords = [
1616
"pyo3",
1717
]
1818

19-
[package.metadata.maturin]
20-
requires-python = ">=3.7"
21-
classifier = [
22-
"License :: OSI Approved :: MIT License",
23-
"Operating System :: MacOS",
24-
"Operating System :: Microsoft",
25-
"Operating System :: POSIX :: Linux",
26-
"Programming Language :: Python :: 3.7",
27-
"Programming Language :: Python :: 3.8",
28-
"Programming Language :: Python :: 3.9",
29-
"Programming Language :: Python :: 3.10",
30-
"Programming Language :: Python :: 3.11",
31-
"Programming Language :: Rust",
32-
]
33-
3419
[lib]
3520
name = "pyrepscan"
3621
crate-type = ["cdylib"]

pyproject.toml

+23
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,26 @@
1+
[project]
2+
name = "pyrepscan"
3+
version = "0.12.0"
4+
description = "A Git Repository Secrets Scanner written in Rust"
5+
authors = [
6+
{email = "gal@intsights.com"},
7+
{name = "Gal Ben David"}
8+
]
9+
requires-python = ">=3.7"
10+
license = {file = "LICENSE"}
11+
classifiers = [
12+
"License :: OSI Approved :: MIT License",
13+
"Operating System :: MacOS",
14+
"Operating System :: Microsoft",
15+
"Operating System :: POSIX :: Linux",
16+
"Programming Language :: Python :: 3.7",
17+
"Programming Language :: Python :: 3.8",
18+
"Programming Language :: Python :: 3.9",
19+
"Programming Language :: Python :: 3.10",
20+
"Programming Language :: Python :: 3.11",
21+
"Programming Language :: Rust",
22+
]
23+
124
[build-system]
225
requires = ["maturin>=0.12,<0.13"]
326
build-backend = "maturin"

0 commit comments

Comments
 (0)