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

Port forward 0.9.x changes into 0.10.x #345

Merged
merged 9 commits into from
Nov 30, 2023

Conversation

pvandyken
Copy link
Contributor

This is the rest of the changes from the 0.9.x branch brought forward into 0.10.x in preparation for release. As these changes were already reviewed in previous PRs, this shouldn't need an extensive review cycle.

The resolved path was getting overwritten by the args_dict in
SnakebidsArgs. This didn't happen previously because the resolved path
was saved under a different name than the CLI parameter, but since
resolving the names, the CLI parameter name overwrites the resolved
name.

Fix by changing the order of update_config and the manual setting of the
pybids path
Previously a single parser instance was given as default, and this would
be shared across all instances of SnakeBidsApp. This created a problem
in the test suite: after one test initialized SnakeBidsApp, subsequent
tests performing their own initialization would inheret the same parser,
causing errors

Mitigate the problem by using a factor to generate a unique parser for
every SnakeBdisApp instance
In stable builds, readthedocs is not currently fetching git tags, which
we need for determining project version. So we're getting unhelpful
versions at the top of our project documentation like
`0.0.1.devxxx-blahblah`.

This is an attempt to fix this by adding some post_checkout steps
Didn't work, and I can't justify spending the time to make it work
Poetry 1.6.x has dropped py37 support, so we have to restrain to 1.5.x
until we drop our py37 support

Fix a long-standing bug in the release-drafter workflow
Pybidsdb values encoded in the config file had their key names changed
without warning in snakebids==0.9.0. This caused apps relying on those
configuration names to silently fail to read the database

With this fix, once again set the keys with parsable sentinal values so
that reliant workflows will still work but maintainers will be alerted
to the deprecation

Resolves khanlab#333
Had `bids_dirs` where it should be `bids_dir`
@pvandyken pvandyken added maintenance Updates or improvements that do not change functionality of the code skip_changelog Changes to the repository that should not be documented in the CHANGELOG labels Nov 29, 2023
@github-actions github-actions bot requested review from akhanf and kaitj November 29, 2023 21:57
@pvandyken pvandyken merged commit 332ee47 into khanlab:main Nov 30, 2023
28 checks passed
@pvandyken pvandyken deleted the maint/merge9.x branch November 30, 2023 19:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
maintenance Updates or improvements that do not change functionality of the code skip_changelog Changes to the repository that should not be documented in the CHANGELOG
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants