Skip to content

Commit

Permalink
Merge pull request #9 from Intsights/viktor-task-CS-2537-rep-scan-bui…
Browse files Browse the repository at this point in the history
…ld-for-arm64-m1
  • Loading branch information
ostern-r7 authored Aug 9, 2023
2 parents d568902 + 70d584a commit e56f553
Show file tree
Hide file tree
Showing 4 changed files with 47 additions and 16 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,32 @@ jobs:
profile: minimal
toolchain: stable
override: true
- name: Install Cross-compilers (macOS)
if: matrix.os == 'macos-latest'
run: |
rustup target add x86_64-apple-darwin
rustup target add aarch64-apple-darwin
- name: Publish Package
uses: messense/maturin-action@v1
if: matrix.os != 'macos-latest'
with:
command: publish
args: --username=__token__ --no-sdist --interpreter=python${{ !startsWith(matrix.os, 'windows') && matrix.python-version || '' }}
env:
MATURIN_PASSWORD: ${{ secrets.pypi_password }}
- name: Publish macOS (x86_64) Package
if: matrix.os == 'macos-latest'
uses: PyO3/maturin-action@v1
with:
command: publish
args: --username=__token__ --interpreter=python${{ matrix.python-version }} --target=x86_64-apple-darwin --no-sdist
env:
MATURIN_PASSWORD: ${{ secrets.pypi_password }}
- name: Publish macOS (arm64) Package
if: matrix.os == 'macos-latest'
uses: PyO3/maturin-action@v1
with:
command: publish
args: --username=__token__ --interpreter=python${{ matrix.python-version }} --target=aarch64-apple-darwin --no-sdist
env:
MATURIN_PASSWORD: ${{ secrets.pypi_password }}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
__pycache__/
*.py[cod]
*$py.class
.vscode/

# C extensions
*.so
Expand Down
17 changes: 1 addition & 16 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "pyrepscan"
version = "0.11.0"
version = "0.12.0"
authors = ["Gal Ben David <[email protected]>"]
edition = "2021"
description = "A Git Repository Secrets Scanner written in Rust"
Expand All @@ -16,21 +16,6 @@ keywords = [
"pyo3",
]

[package.metadata.maturin]
requires-python = ">=3.7"
classifier = [
"License :: OSI Approved :: MIT License",
"Operating System :: MacOS",
"Operating System :: Microsoft",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Rust",
]

[lib]
name = "pyrepscan"
crate-type = ["cdylib"]
Expand Down
23 changes: 23 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,26 @@
[project]
name = "pyrepscan"
version = "0.12.0"
description = "A Git Repository Secrets Scanner written in Rust"
authors = [
{email = "[email protected]"},
{name = "Gal Ben David"}
]
requires-python = ">=3.7"
license = {file = "LICENSE"}
classifiers = [
"License :: OSI Approved :: MIT License",
"Operating System :: MacOS",
"Operating System :: Microsoft",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Rust",
]

[build-system]
requires = ["maturin>=0.12,<0.13"]
build-backend = "maturin"
Expand Down

0 comments on commit e56f553

Please sign in to comment.