Repository navigation
Conversation
OSF no longer accepts uploads. `tfmgr add` now: - creates a GIN sibling for the template (needs a GIN access token, --gin-token or GIN_TOKEN); - publishes it as the dataset's common data source (gin-src), so that anyone cloning the GitHub repository (reviewers, the intake previews, the Archive's intake action) gets the data from GIN without extra configuration; - makes the GitHub sibling depend on it, so pushing uploads the data first. The OSF-only commands (push, get, geturls), tfmanager/osf.py, the async upload helpers and the datalad-osf/osfclient dependencies are removed. pkg_resources (gone from recent setuptools) is replaced by importlib, and CI runs on pinned ubuntu-26.04 runners with Python 3.10 to 3.12. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
The standalone sphinxcontrib-napoleon (and the unused sphinxcontrib-versioning) cannot be imported on Python 3.10+, which the docs build now uses. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 923f1cf414
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| dl.create_sibling_gin( | ||
| f"tpl-{template_id}", | ||
| dataset=dataset, | ||
| name="gin", | ||
| access_protocol="https-ssh", |
There was a problem hiding this comment.
Pass the configured credential name to GIN creation
When tfmgr add receives --gin-token or GIN_TOKEN in a fresh DataLad environment, this call omits credential, so DataLad defaults to the API host as the credential name rather than gin. The code sets DATALAD_CREDENTIAL_GIN_TOKEN, which does not match that default; DataLad ignores the supplied token and prompts for another credential or fails non-interactively. Pass credential="gin" or set the host-named credential variable instead. DataLad create_sibling_gin documentation
Useful? React with 👍 / 👎.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
DataLad looks tokens up by credential name and, without one, uses the API host (gin.g-node.org, api.github.com). The DATALAD_CREDENTIAL_GIN_TOKEN and DATALAD_CREDENTIAL_GITHUB_TOKEN variables set from --gin-token/--gh-token were therefore ignored: DataLad fell back to a stored credential or prompted. Pass credential="gin" and credential="github" (the GitHub call had the same problem before this PR). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
OSF no longer accepts uploads, so new templates' data now go to GIN.
tfmgr addnow:--gin-tokenorGIN_TOKEN; uploads over SSH, so the contributor needs an SSH key on GIN) and pushes the data there;gin-src, as the Archive's intake does), so anyone cloning the GitHub repository gets the data from GIN without extra configuration (reviewers, the intake previews, the Archive's intake action);Also in this PR:
push,getandgeturls,tfmanager/osf.py, the async upload helpers, and thedatalad-osf/osfclientdependencies.pkg_resources(gone from recent setuptools) is replaced byimportlib, and the minimum versions aredatalad >= 0.16(forcreate_sibling_gin) and Python 3.10.nibabelandnumpyare now declared, sinceutils.pyimports them.ubuntu-26.04with Python 3.10 to 3.12; 3.7 has no builds for that runner.Not tested end to end: a real
tfmgr addcreates GitHub and GIN repositories and a pull request. The CLI loads, andtfmgr add --helpshows the new options. A run with a throwaway template by a maintainer is the remaining check.Note on ordering:
actions-intakeinstalls this package to getdatalad-osf. After this merges, intake merges can only read submissions whose data are on GIN, which is the point of the farewell. The four open submissions on OSF are being asked to move first.