Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 6 additions & 9 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ on:
type: boolean
default: false
pull_request:
types: [opened, labeled, reopened, synchronize]
types: [opened, reopened, synchronize]
paths-ignore:
- "**/*.md"
- "*"
Expand Down Expand Up @@ -69,22 +69,19 @@ jobs:
secrets-scan:
runs-on: ubuntu-latest
steps:
- name: Checkout
- name: Checkout repository
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
with:
fetch-depth: 0
fetch-depth: 0 # full history for comprehensive secret scanning

- name: Setup Nix
uses: ./.github/actions/setup-nix
with:
installer: quick # fast install without space reclamation overhead
system: x86_64-linux
enable-cachix: true
cachix-name: ${{ vars.CACHIX_CACHE_NAME }}
cachix-auth-token: ${{ secrets.CACHIX_AUTH_TOKEN }}
extra-pull-names: nix-community,pyproject-nix,sciexp,srid

- name: Scan for secrets
run: nix develop --accept-flake-config -c just scan-secrets
- name: Scan for secrets with gitleaks
run: nix run nixpkgs#gitleaks -- detect --verbose --redact

# ---------------------------------------------------------------------------
# job 2: set-variables
Expand Down
8 changes: 6 additions & 2 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -730,7 +730,9 @@ update-version package-name version:
fi

# Extract current version from pyproject.toml [project] section
CURRENT=$(sed -n '/^\[project\]/,/^\[/{/^version = /p}' "$PYPROJECT" | head -1 | sed 's/version = "\(.*\)"/\1/')
CURRENT=$(sed -n '/^\[project\]/,/^\[/{
/^version = /p
}' "$PYPROJECT" | head -1 | sed 's/version = "\(.*\)"/\1/')
if [ -z "$CURRENT" ]; then
echo "Error: could not extract current version from $PYPROJECT"
exit 1
Expand All @@ -751,7 +753,9 @@ update-version package-name version:
# For maturin packages: update Cargo.toml workspace version
CARGO_TOML="$PACKAGE_PATH/Cargo.toml"
if [ -f "$CARGO_TOML" ]; then
CARGO_CURRENT=$(sed -n '/^\[workspace\.package\]/,/^\[/{/^version = /p}' "$CARGO_TOML" | head -1 | sed 's/version = "\(.*\)"/\1/')
CARGO_CURRENT=$(sed -n '/^\[workspace\.package\]/,/^\[/{
/^version = /p
}' "$CARGO_TOML" | head -1 | sed 's/version = "\(.*\)"/\1/')
if [ -n "$CARGO_CURRENT" ]; then
sed -i'' -e '/^\[workspace\.package\]/,/^\[/ s/^version = "'"$CARGO_CURRENT"'"$/version = "{{version}}"/' "$CARGO_TOML"
echo " Updated $CARGO_TOML [workspace.package] version"
Expand Down
71 changes: 12 additions & 59 deletions packages/pnt-cli/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/pnt-cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ resolver = "2"
members = ["crates/pnt-cli-core", "crates/pnt-cli-py"]

[workspace.package]
version = "0.1.1"
version = "0.1.2"
edition = "2024"
license = "Apache-2.0"

Expand Down
2 changes: 1 addition & 1 deletion packages/pnt-cli/crates/pnt-cli-py/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ crate-type = ["cdylib"]

[dependencies]
pnt-cli-core = { path = "../pnt-cli-core" }
pyo3 = { version = "0.24", features = ["extension-module"] }
pyo3 = { version = "0.28", features = ["extension-module"] }

[lints]
workspace = true
2 changes: 1 addition & 1 deletion packages/pnt-cli/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ description = "CLI package with Rust extension module via pyo3/maturin"
license = { text = "Apache-2.0" }
name = "pnt-cli"
requires-python = ">=3.12,<3.14"
version = "0.1.1"
version = "0.1.2"

[project.scripts]
pnt-cli = "pnt_cli:main"
Expand Down
2 changes: 1 addition & 1 deletion packages/pnt-cli/uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading