Another try

This commit is contained in:
Tom 2025-02-19 16:47:55 +00:00
parent 52a82447f9
commit 2d0c301062
3 changed files with 23 additions and 5 deletions

View File

@ -35,6 +35,11 @@ jobs:
- uses: actions/setup-python@v5 - uses: actions/setup-python@v5
with: with:
python-version: 3.x python-version: 3.x
- name: Set cargo version from tag
run: |
cargo install cargo-edit
cargo set-version $(git describe --tags --always)
- name: Build wheels - name: Build wheels
uses: PyO3/maturin-action@v1 uses: PyO3/maturin-action@v1
with: with:
@ -66,6 +71,10 @@ jobs:
- uses: actions/setup-python@v5 - uses: actions/setup-python@v5
with: with:
python-version: 3.x python-version: 3.x
- name: Set cargo version from tag
run: |
cargo install cargo-edit
cargo set-version $(git describe --tags --always)
- name: Build wheels - name: Build wheels
uses: PyO3/maturin-action@v1 uses: PyO3/maturin-action@v1
with: with:
@ -94,6 +103,10 @@ jobs:
with: with:
python-version: 3.x python-version: 3.x
architecture: ${{ matrix.platform.target }} architecture: ${{ matrix.platform.target }}
- name: Set cargo version from tag
run: |
cargo install cargo-edit
cargo set-version $(git describe --tags --always)
- name: Build wheels - name: Build wheels
uses: PyO3/maturin-action@v1 uses: PyO3/maturin-action@v1
with: with:
@ -120,6 +133,10 @@ jobs:
- uses: actions/setup-python@v5 - uses: actions/setup-python@v5
with: with:
python-version: 3.x python-version: 3.x
- name: Set cargo version from tag
run: |
cargo install cargo-edit
cargo set-version $(git describe --tags --always)
- name: Build wheels - name: Build wheels
uses: PyO3/maturin-action@v1 uses: PyO3/maturin-action@v1
with: with:
@ -136,6 +153,10 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- name: Set cargo version from tag
run: |
cargo install cargo-edit
cargo set-version $(git describe --tags --always)
- name: Build sdist - name: Build sdist
uses: PyO3/maturin-action@v1 uses: PyO3/maturin-action@v1
with: with:

View File

@ -1,6 +1,6 @@
[package] [package]
name = "qubed" name = "qubed"
# version = "0.1.5" version = "0.0.0"
edition = "2021" edition = "2021"
repository = "https://github.com/ecmwf/qubed" repository = "https://github.com/ecmwf/qubed"

View File

@ -1,10 +1,7 @@
[build-system] [build-system]
requires = ["maturin>=0.14", "setuptools", "setuptools-rust", "setuptools_scm"] requires = ["maturin>=1.0,<2.0"]
build-backend = "maturin" build-backend = "maturin"
[tool.setuptools_scm]
write_to = "src/python/qubed/_version.py"
[project] [project]
name = "qubed" name = "qubed"
description = "A library that provides a tree of datacubes called Qube." description = "A library that provides a tree of datacubes called Qube."