← 输入框|github.com|刷新
Skip to content

feat: farewell to OSF, new templates' data go to GIN - #12

Merged
oesteban merged 4 commits into
masterfrom
feat/gin
Dec 2, 2026
Merged

oesteban merged 4 commits into
masterfrom
feat/gin

Conversation

@oesteban

@oesteban oesteban commented Dec 2, 2026

Copy link
Copy Markdown
Member

OSF no longer accepts uploads, so new templates' data now go to GIN.

tfmgr add now:

  1. saves the new dataset;
  2. creates a GIN sibling (--gin-token or GIN_TOKEN; uploads over SSH, so the contributor needs an SSH key on GIN) and pushes the data there;
  3. publishes it as the dataset's common data source (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);
  4. creates the GitHub sibling, which depends on GIN, pushes, and opens the pull request as before.

Also in this PR:

  • Removed: the OSF-only commands push, get and geturls, tfmanager/osf.py, the async upload helpers, and the datalad-osf/osfclient dependencies.
  • Modernized: pkg_resources (gone from recent setuptools) is replaced by importlib, and the minimum versions are datalad >= 0.16 (for create_sibling_gin) and Python 3.10. nibabel and numpy are now declared, since utils.py imports them.
  • CI: pinned to ubuntu-26.04 with Python 3.10 to 3.12; 3.7 has no builds for that runner.

Not tested end to end: a real tfmgr add creates GitHub and GIN repositories and a pull request. The CLI loads, and tfmgr add --help shows the new options. A run with a throwaway template by a maintainer is the remaining check.

Note on ordering: actions-intake installs this package to get datalad-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.

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>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Dec 2, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-12-02T08:59:37.265364Z 923f1cf PR opened
ℹ️ 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" or "@codex security review".

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>

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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".

Comment thread tfmanager/cli.py
Comment on lines +262 to +266
dl.create_sibling_gin(
f"tpl-{template_id}",
dataset=dataset,
name="gin",
access_protocol="https-ssh",

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge 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 👍 / 👎.

oesteban and others added 2 commits December 2, 2026 09:59
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>
@oesteban
oesteban merged commit 5cc51d0 into master Dec 2, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant