diff --git a/.github/workflows/build_wheels.yml b/.github/workflows/build_wheels.yml index 0e8d8c2..996e047 100644 --- a/.github/workflows/build_wheels.yml +++ b/.github/workflows/build_wheels.yml @@ -35,6 +35,11 @@ jobs: - uses: actions/setup-python@v5 with: 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 uses: PyO3/maturin-action@v1 with: @@ -66,6 +71,10 @@ jobs: - uses: actions/setup-python@v5 with: 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 uses: PyO3/maturin-action@v1 with: @@ -94,6 +103,10 @@ jobs: with: python-version: 3.x 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 uses: PyO3/maturin-action@v1 with: @@ -120,6 +133,10 @@ jobs: - uses: actions/setup-python@v5 with: 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 uses: PyO3/maturin-action@v1 with: @@ -136,6 +153,10 @@ jobs: runs-on: ubuntu-latest steps: - 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 uses: PyO3/maturin-action@v1 with: diff --git a/Cargo.toml b/Cargo.toml index 3234b0b..773ab9b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "qubed" -# version = "0.1.5" +version = "0.0.0" edition = "2021" repository = "https://github.com/ecmwf/qubed" diff --git a/pyproject.toml b/pyproject.toml index e67228a..0e46d92 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,10 +1,7 @@ [build-system] -requires = ["maturin>=0.14", "setuptools", "setuptools-rust", "setuptools_scm"] +requires = ["maturin>=1.0,<2.0"] build-backend = "maturin" -[tool.setuptools_scm] -write_to = "src/python/qubed/_version.py" - [project] name = "qubed" description = "A library that provides a tree of datacubes called Qube."