Compare commits

..

5 commits

Author SHA1 Message Date
222d248fab
0.4.0 bump
All checks were successful
cargo devel CI / cargo CI (push) Successful in 4m50s
2024-03-03 13:42:39 +01:00
1bd84757fc
remove maturin CI
All checks were successful
cargo devel CI / cargo CI (push) Successful in 2m37s
2024-03-01 21:31:58 +01:00
ea9a15771b
Release 0.4.0-alpha.2
All checks were successful
cargo devel CI / cargo CI (push) Successful in 1m40s
libpt@0.4.0-alpha.2
libpt-bintols@0.4.0-alpha.2
libpt-core@0.4.0-alpha.2
libpt-log@0.4.0-alpha.2
libpt-py@0.4.0-alpha.2

Generated by cargo-workspaces
2024-03-01 21:29:00 +01:00
7150f0aefd
Release v0.4.0-alpha.1
Some checks failed
cargo devel CI / cargo CI (push) Has been cancelled
2024-03-01 21:28:24 +01:00
4e486fde80 Merge pull request 'devel' (#73) from devel into master
Some checks failed
cargo devel CI / cargo CI (push) Has been cancelled
Reviewed-on: #73
2024-03-01 21:20:29 +01:00
8 changed files with 9 additions and 146 deletions

View file

@ -1,120 +0,0 @@
# This file is autogenerated by maturin v1.4.0
# To update, run
#
# maturin generate-ci github
#
name: CI
on:
push:
branches:
- main
- master
tags:
- '*'
pull_request:
workflow_dispatch:
permissions:
contents: read
jobs:
linux:
runs-on: ubuntu-latest
strategy:
matrix:
target: [x86_64, x86, aarch64, armv7, s390x, ppc64le]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Build wheels
uses: PyO3/maturin-action@v1
with:
target: ${{ matrix.target }}
args: --release --out dist --find-interpreter
sccache: 'true'
manylinux: auto
- name: Upload wheels
uses: actions/upload-artifact@v3
with:
name: wheels
path: dist
windows:
runs-on: windows-latest
strategy:
matrix:
target: [x64, x86]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.10'
architecture: ${{ matrix.target }}
- name: Build wheels
uses: PyO3/maturin-action@v1
with:
target: ${{ matrix.target }}
args: --release --out dist --find-interpreter
sccache: 'true'
- name: Upload wheels
uses: actions/upload-artifact@v3
with:
name: wheels
path: dist
macos:
runs-on: macos-latest
strategy:
matrix:
target: [x86_64, aarch64]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Build wheels
uses: PyO3/maturin-action@v1
with:
target: ${{ matrix.target }}
args: --release --out dist --find-interpreter
sccache: 'true'
- name: Upload wheels
uses: actions/upload-artifact@v3
with:
name: wheels
path: dist
sdist:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Build sdist
uses: PyO3/maturin-action@v1
with:
command: sdist
args: --out dist
- name: Upload sdist
uses: actions/upload-artifact@v3
with:
name: wheels
path: dist
release:
name: Release
runs-on: ubuntu-latest
if: "startsWith(github.ref, 'refs/tags/')"
needs: [linux, windows, macos, sdist]
steps:
- uses: actions/download-artifact@v3
with:
name: wheels
- name: Publish to PyPI
uses: PyO3/maturin-action@v1
env:
MATURIN_PYPI_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
with:
command: upload
args: --non-interactive --skip-existing *

View file

@ -10,7 +10,7 @@ default-members = [".", "members/libpt-core"]
[workspace.package]
publish = true
version = "0.4.0-alpha.1"
version = "0.4.0"
edition = "2021"
authors = ["Christoph J. Scherr <software@cscherr.de>"]
license = "MIT"
@ -28,10 +28,10 @@ categories = [
[workspace.dependencies]
anyhow = "1.0.79"
thiserror = "1.0.56"
libpt-core = { version = "0.3.12", path = "members/libpt-core" }
libpt-bintols = { version = "0.3.12", path = "members/libpt-bintols" }
libpt-log = { version = "0.3.12", path = "members/libpt-log" }
libpt-py = { version = "0.3.12", path = "members/libpt-py" }
libpt-core = { version = "0.4.0-alpha.2", path = "members/libpt-core" }
libpt-bintols = { version = "0.4.0-alpha.2", path = "members/libpt-bintols" }
libpt-log = { version = "0.4.0-alpha.2", path = "members/libpt-log" }
libpt-py = { version = "0.4.0-alpha.2", path = "members/libpt-py" }
[package]
name = "libpt"

View file

@ -1,7 +1,7 @@
[package]
name = "libpt-bintols"
publish.workspace = true
version = "0.3.12"
version = "0.4.0"
edition.workspace = true
authors.workspace = true
license.workspace = true

View file

@ -1,7 +1,7 @@
[package]
name = "libpt-core"
publish.workspace = true
version = "0.3.12"
version = "0.4.0"
edition.workspace = true
authors.workspace = true
license.workspace = true

View file

@ -1,7 +1,7 @@
[package]
name = "libpt-log"
publish.workspace = true
version = "0.3.12"
version = "0.4.0"
edition.workspace = true
authors.workspace = true
license.workspace = true

View file

@ -2,13 +2,8 @@
set -e
cargo check --all-features
echo ">>>>>>>> SELECT A NEW VERSION"
cargo ws version --no-git-commit
cargo ws version
NEW_VERSION=$(cat Cargo.toml | rg '^\s*version\s*=\s*"([^"]*)"\s*$' -or '$1')
bash scripts/set_all_versions.sh $NEW_VERSION
git add -A
git commit -m "Release v$NEW_VERSION" || (echo ">>>>>>>> COMMIT FAILED OR THERE WAS NOTHING TO COMMIT"; sleep 5)
echo ">>>>>>>> SKIP!!!!!"
cargo ws version --amend
echo ">>>>>>>> PUBLISHING RELEASE FOR REPO"
bash scripts/release.sh
echo ">>>>>>>> PUBLISHING TO CRATES.IO NEXT"
@ -16,14 +11,10 @@ sleep 10
cargo publish -p libpt-log
cargo publish -p libpt-core
cargo publish -p libpt-bintols
cargo publish -p libpt-math
cargo publish -p libpt-net
cargo publish -p libpt
echo ">>>>>>>> PUBLISHING TO CSCHERR.DE NEXT"
sleep 3
cargo publish --registry cscherr -p libpt-log
cargo publish --registry cscherr -p libpt-core
cargo publish --registry cscherr -p libpt-bintols
cargo publish --registry cscherr -p libpt-math
cargo publish --registry cscherr -p libpt-net
cargo publish --registry cscherr -p libpt

View file

@ -1,6 +0,0 @@
#!/bin/bash
export NEW_VER=$1
pwd
sed -i 's/\(^\s*version\)\s*=\s*"\([^"]*\)"$/\1 = "'$NEW_VER'"/g' Cargo.toml
find * -name 'Cargo.toml' -type f \
-exec sed -i 's/\(libpt.*version\s*=\s*\)"[^"]*"/\1"'$NEW_VER'"/g' Cargo.toml {} +

View file

@ -12,5 +12,3 @@ pub use libpt_bintols as bintols;
pub use libpt_core as core;
#[cfg(feature = "log")]
pub use libpt_log as log;
#[cfg(feature = "py")]
pub use libpt_py as py;