diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index ae6af7f..ea2009c 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -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 }} diff --git a/.gitignore b/.gitignore index b78dca9..08b462a 100644 --- a/.gitignore +++ b/.gitignore @@ -7,6 +7,7 @@ __pycache__/ *.py[cod] *$py.class +.vscode/ # C extensions *.so diff --git a/Cargo.toml b/Cargo.toml index 700e333..03cafc0 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "pyrepscan" -version = "0.11.0" +version = "0.12.0" authors = ["Gal Ben David "] edition = "2021" description = "A Git Repository Secrets Scanner written in Rust" @@ -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"] diff --git a/pyproject.toml b/pyproject.toml index fabc616..73fc3ea 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,3 +1,26 @@ +[project] +name = "pyrepscan" +version = "0.12.0" +description = "A Git Repository Secrets Scanner written in Rust" +authors = [ + {email = "gal@intsights.com"}, + {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"