Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

merge dev into main #154

Merged
merged 5 commits into from
Jul 9, 2024
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
38 changes: 38 additions & 0 deletions .github/workflows/sanitize-cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Sanitize Cargo
on:
push:
branches:
- main

permissions:
contents: write

jobs:
sanitize_cargo_file:
if: "contains(github.event.head_commit.message, '[do_tag]')"
runs-on: ubuntu-latest
# This is optional; it exposes the plan to your job as an environment variable
#env:
# PLAN: ${{ inputs.plan }}
steps:
- uses: actions/checkout@v4
with:
token: ${{ secrets.PAT_TOK }}
- uses: dtolnay/rust-toolchain@stable
- name: Install cargo-sanitize
run: |
cargo install cargo-sanitize
- name: Sanitize Cargo.toml file
run: |
cp Cargo.toml Cargo.toml.cs_orig
cargo-sanitize -i Cargo.toml.cs_orig -o Cargo.toml
- name: Tag and push new commit
run: |
export VERSION_TAG=`cargo read-manifest | jq ".version" | tr -d '"'`
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git add Cargo.toml.cs_orig
git add Cargo.toml
git commit -m "create sanitized release"
git tag --force -a v${VERSION_TAG} -m "version ${VERSION_TAG}"
git push --force origin v${VERSION_TAG}
2 changes: 1 addition & 1 deletion 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 Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "simpleaf"
version = "0.17.0"
version = "0.17.1"
edition = "2021"
authors = [
"Rob Patro <[email protected]>",
Expand Down
2 changes: 1 addition & 1 deletion docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
author = 'Dongze He, Rob Patro'

# The full version, including alpha/beta/rc tags
release = '0.15.0'
release = '0.17.0'

master_doc = 'index'

Expand Down
1 change: 1 addition & 0 deletions docs/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ That's it for initial notes. Use the menu below to learn more about the `simple
inspect-command.rst
index-command.rst
quant-command.rst
refresh-prog-info.rst
workflow.rst
LICENSE.rst

Expand Down
11 changes: 11 additions & 0 deletions docs/source/refresh-prog-info.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
``refresh-prog-info`` command
=============================

The ``refresh-prog-info`` command reads the paths stored for the executables used by ``simpleaf`` (specifically those for
``alevin-fry``, ``piscem`` and ``salmon``), and for each of the installed programs, fetches and updates the associated versions
of the programs.

This command is useful because ``simpleaf`` records the version associated with each of the registered tools when their paths are
first set with the ``--set-paths`` command. However, if he executable is subsequently updated, the associate version won't be
revised (since this operation may have been done outside of ``simpleaf``). This command provides a simple way to ensure that the
proper version information is associated with each of the programs registered with ``simpleaf``.
2 changes: 1 addition & 1 deletion simpleaf_conda_env.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ dependencies:
- libboost>=1.85.0
- salmon>=1.10.3
- alevin-fry>=0.8.2
- piscem>=0.9.0
- piscem>=0.10.0
4 changes: 2 additions & 2 deletions src/utils/prog_utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -172,9 +172,9 @@ pub struct ReqProgs {

impl ReqProgs {
pub fn issue_recommended_version_messages(&self) {
// Currently (07/01/2024) want to recommend piscem >= 0.9.0
// Currently (07/08/2024) want to recommend piscem >= 0.10.0
if let Some(ref piscem_info) = self.piscem {
let desired_ver = VersionReq::parse(">=0.9.0").unwrap();
let desired_ver = VersionReq::parse(">=0.10.0").unwrap();
let current_ver = Version::parse(&piscem_info.version).unwrap();
if desired_ver.matches(&current_ver) {
// nothing to do here
Expand Down
Loading