version bump

This commit is contained in:
Christien Rioux 2023-07-16 14:35:51 -04:00
parent 304e9fd117
commit 4a93f0867b
7 changed files with 147 additions and 827 deletions

3
.bumpversion.cfg Normal file
View File

@ -0,0 +1,3 @@
[bumpversion]
current_version = 0.1.0

917
Cargo.lock generated

File diff suppressed because it is too large Load Diff

View File

@ -7,8 +7,7 @@ members = [
"veilid-flutter/rust",
"veilid-wasm",
]
exclude = [ "./external/keyring-manager", "./external/cursive", "./external/hashlink" ]
exclude = [ "./external" ]
[patch.crates-io]
cursive = { path = "./external/cursive/cursive" }

View File

@ -68,3 +68,13 @@ Occasionally a release will happen that needs to be reverted. This is done manua
> * Standalone RedHat/CentOS RPM file as a 'release file' on the `veilid` GitLab repository
> * Pushed to Yum repository at https://packages.veilid.com
### Version Numbering:
All versions of Veilid Rust crates as well as `veilid-python` and `veilid-flutter` packages are versioned using Semver. Versions can differ per crate and package, and it is important for the Semver rules to be followed (https://semver.org/):
* MAJOR version when you make incompatible API changes
* MINOR version when you add functionality in a backward compatible manner
* PATCH version when you make backward compatible bug fixes
The default 'version_bump.sh' script should be run on every release to stable. All of the Rust crates are versioned together and should have the same version, as well as the `veilid-python` Python package and `veilid-flutter` Flutter plugin.

View File

@ -85,11 +85,22 @@ else
exit 1
fi
# ensure pip3 is installed
if command -v pip3 &> /dev/null; then
echo '[X] pip3 is available in the path'
else
echo 'pip3 is not available in the path'
exit 1
fi
# install targets
rustup target add aarch64-linux-android armv7-linux-androideabi i686-linux-android x86_64-linux-android wasm32-unknown-unknown
# install cargo packages
cargo install wasm-bindgen-cli wasm-pack
cargo install wasm-bindgen-cli wasm-pack cargo-edit
# install pip packages
pip3 install --upgrade bumpversion
# Install capnproto using the same mechanism as our earthly build
$SCRIPTDIR/scripts/earthly/install_capnproto.sh

View File

@ -96,10 +96,18 @@ else
exit 1
fi
# ensure pip3 is installed
if command -v pip3 &> /dev/null; then
echo '[X] pip3 is available in the path'
else
echo 'pip3 is not available in the path'
exit 1
fi
# ensure we have command line tools
xcode-select --install 2> /dev/null || true
until [ -d /Library/Developer/CommandLineTools/usr/bin ]; do
sleep 5;
sleep 5;
done
# ensure packages are installed
@ -124,6 +132,9 @@ $ANDROID_SDK_ROOT/cmdline-tools/latest/bin/sdkmanager build-tools\;33.0.1 ndk\;2
rustup target add aarch64-apple-darwin aarch64-apple-ios x86_64-apple-darwin x86_64-apple-ios wasm32-unknown-unknown aarch64-linux-android armv7-linux-androideabi i686-linux-android x86_64-linux-android
# install cargo packages
cargo install wasm-bindgen-cli wasm-pack
cargo install wasm-bindgen-cli wasm-pack cargo-edit
# install pip packages
pip3 install --upgrade bumpversion
sudo gem install cocoapods

13
version_bump.sh Executable file
View File

@ -0,0 +1,13 @@
#!/bin/sh
set -e
if [ "$1" == "patch" ]; then
echo Bumping patch version
elif [ "$1" == "minor" ]; then
echo Bumping minor version
elif [ "$1" == "major" ]; then
echo Bumping major version
fi
cargo set-version --dry-run --bump $1