diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index f7aaa97..aea54ea 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -30,12 +30,20 @@ jobs: target: x86 - runner: ubuntu-latest target: aarch64 - - runner: ubuntu-latest - target: armv7 - - runner: ubuntu-latest - target: s390x - - runner: ubuntu-latest - target: ppc64le + python-version: + - "3.7" + - "3.8" + - "3.9" + - "3.10" + - "3.11" + - "3.12" + - "3.13" + # - runner: ubuntu-latest + # target: armv7 + # - runner: ubuntu-latest + # target: s390x + # - runner: ubuntu-latest + # target: ppc64le steps: - uses: actions/checkout@v4 - name: Install Dependencies @@ -44,7 +52,7 @@ jobs: sudo apt-get install -y musl-tools gcc musl-dev - uses: actions/setup-python@v5 with: - python-version: 3.x + python-version: ${{ matrix.python-version }} - name: Build wheels uses: PyO3/maturin-action@v1 with: @@ -102,11 +110,19 @@ jobs: target: x64 - runner: windows-latest target: x86 + python-version: + - "3.7" + - "3.8" + - "3.9" + - "3.10" + - "3.11" + - "3.12" + - "3.13" steps: - uses: actions/checkout@v4 - uses: actions/setup-python@v5 with: - python-version: 3.x + python-version: ${{ matrix.python-version }} architecture: ${{ matrix.platform.target }} - name: Build wheels uses: PyO3/maturin-action@v1 @@ -129,11 +145,19 @@ jobs: # target: x86_64 - runner: macos-14 target: aarch64 + python-version: + - "3.7" + - "3.8" + - "3.9" + - "3.10" + - "3.11" + - "3.12" + - "3.13" steps: - uses: actions/checkout@v4 - uses: actions/setup-python@v5 with: - python-version: 3.x + python-version: ${{ matrix.python-version }} - name: Build wheels uses: PyO3/maturin-action@v1 with: diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml deleted file mode 100644 index dd92e20..0000000 --- a/.github/workflows/python-publish.yml +++ /dev/null @@ -1,112 +0,0 @@ -# This workflow will upload a Python Package to PyPI when a release is created -# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python#publishing-to-package-registries - -# This workflow uses actions that are not certified by GitHub. -# They are provided by a third-party and are governed by -# separate terms of service, privacy policy, and support -# documentation. - -name: Build and Publish Wheels - -on: - push: - tags: - - 'v*.*.*' # Triggers when a version tag is pushed, e.g., v1.2.3 - workflow_dispatch: - inputs: - version: - description: 'The version to release' - required: true - default: 'v2.0.0' - -jobs: - build-and-publish-manylinux: - runs-on: ubuntu-latest - strategy: - fail-fast: false - matrix: - python-version: ['3.7', '3.8', '3.9', '3.10', '3.11', '3.12', '3.13'] - steps: - - uses: actions/checkout@v3 - - - name: Install Rust Toolchain - uses: actions-rs/toolchain@v1 - with: - toolchain: stable - override: true - - - name: Set Up Python ${{ matrix.python-version }} - uses: actions/setup-python@v4 - with: - python-version: ${{ matrix.python-version }} - - - name: Build and Publish Wheel - uses: pyo3/maturin-action@v1 - with: - command: publish - manylinux: auto - python-version: ${{ matrix.python-version }} - extra-args: --skip-existing - env: - MATURIN_PASSWORD: ${{ secrets.PYPI_API_TOKEN }} - GITHUB_TOKEN: ${{ secrets.GH_ACTION }} - TWINE_USERNAME: __token__ - TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }} - - build-and-publish-macos: - runs-on: macos-latest - strategy: - fail-fast: false - matrix: - python-version: ['3.7', '3.8', '3.9', '3.10', '3.11', '3.12', '3.13'] - steps: - - uses: actions/checkout@v3 - - - name: Set Up Python ${{ matrix.python-version }} - uses: actions/setup-python@v4 - with: - python-version: ${{ matrix.python-version }} - - - name: Build and Publish Wheel - uses: pyo3/maturin-action@v1 - with: - command: publish - python-version: ${{ matrix.python-version }} - extra-args: "--universal2 --skip-existing" - env: - MATURIN_PASSWORD: ${{ secrets.PYPI_API_TOKEN }} - GITHUB_TOKEN: ${{ secrets.GH_ACTION }} - TWINE_USERNAME: __token__ - TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }} - - build-and-publish-windows: - runs-on: windows-latest - strategy: - fail-fast: false - matrix: - python-version: ['3.7', '3.8', '3.9', '3.10', '3.11', '3.12', '3.13'] - steps: - - uses: actions/checkout@v3 - - - name: Install Rust Toolchain - uses: actions-rs/toolchain@v1 - with: - toolchain: stable - override: true - - - name: Set Up Python ${{ matrix.python-version }} - uses: actions/setup-python@v4 - with: - python-version: ${{ matrix.python-version }} - - - name: Build and Publish Wheel - uses: pyo3/maturin-action@v1 - with: - command: publish - python-version: ${{ matrix.python-version }} - extra-args: --skip-existing - env: - MATURIN_PASSWORD: ${{ secrets.PYPI_API_TOKEN }} - GITHUB_TOKEN: ${{ secrets.GH_ACTION }} - TWINE_USERNAME: __token__ - TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }} \ No newline at end of file diff --git a/pyproject.toml b/pyproject.toml index 67dc00d..7646e49 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -3,7 +3,7 @@ requires = ["maturin>=1.2.3"] build-backend = "maturin" [project] -name = "cleora" +name = "cleora-python" requires-python = ">=3.7" classifiers = [ "Programming Language :: Rust",