Repository navigation
fix: pypi - #1056
Merged
Merged
fix: pypi #1056
Conversation
Signed-off-by: cmunley1 <[email protected]>
bxyu-nvidia
reviewed
Apr 14, 2026
| with open(config.input_jsonl_fpath) as input_file: | ||
| _input_path = Path(config.input_jsonl_fpath) | ||
| if not _input_path.is_absolute(): | ||
| _cwd_path = Path.cwd() / _input_path |
Contributor
There was a problem hiding this comment.
can we swap this to WORKING_DIR pls?
bxyu-nvidia
approved these changes
Apr 14, 2026
kajalj22
pushed a commit
that referenced
this pull request
Apr 14, 2026
Fixes known PyPI install compatibility issues. - Fixed `ModuleNotFoundError: No module named 'scripts'` on PyPI install - Moved `ResourcesServerMetadata` from `scripts/` to `nemo_gym.server_metadata` - `ng_init_resources_server` templates are now bundled inside the package so they work from any current working directory - `ng_init_resources_server` now accepts relative paths (for example `../../resources_servers/my_server`) and computes correct `requirements.txt` paths - `ng_run` resolves server directories from the current working directory first, then falls back to the install location for built-in servers. Local servers take priority - `ng_collect_rollouts` resolves `input_jsonl_fpath` from the current working directory, then the install location, so built-in example data works without copying files - Env vars for local testing - Github workflow for testing wheel gated by label - CVE package bumps - Added PyPI install documentation page - Unit tests - `ng_run` and `ng_collect_rollouts` with local editable install (`reasoning_gym`) - `ng_run` and `ng_collect_rollouts` with built-in PyPI server (`arc_agi`) - `ng_init`, `ng_run`, and `ng_collect_rollouts` with a new local server alongside built-in agent and model - `ng_init` with a relative path outside the repo (reproduces #936) Closes #935 #936 Co-authored-by: Bogdan Salyp <[email protected]> Signed-off-by: cmunley1 <[email protected]>
kajalj22
pushed a commit
that referenced
this pull request
Apr 14, 2026
Fixes known PyPI install compatibility issues. - Fixed `ModuleNotFoundError: No module named 'scripts'` on PyPI install - Moved `ResourcesServerMetadata` from `scripts/` to `nemo_gym.server_metadata` - `ng_init_resources_server` templates are now bundled inside the package so they work from any current working directory - `ng_init_resources_server` now accepts relative paths (for example `../../resources_servers/my_server`) and computes correct `requirements.txt` paths - `ng_run` resolves server directories from the current working directory first, then falls back to the install location for built-in servers. Local servers take priority - `ng_collect_rollouts` resolves `input_jsonl_fpath` from the current working directory, then the install location, so built-in example data works without copying files - Env vars for local testing - Github workflow for testing wheel gated by label - CVE package bumps - Added PyPI install documentation page - Unit tests - `ng_run` and `ng_collect_rollouts` with local editable install (`reasoning_gym`) - `ng_run` and `ng_collect_rollouts` with built-in PyPI server (`arc_agi`) - `ng_init`, `ng_run`, and `ng_collect_rollouts` with a new local server alongside built-in agent and model - `ng_init` with a relative path outside the repo (reproduces #936) Closes #935 #936 Co-authored-by: Bogdan Salyp <[email protected]> Signed-off-by: cmunley1 <[email protected]>
kajalj22
added a commit
that referenced
this pull request
Apr 15, 2026
Fixes known PyPI install compatibility issues. - Fixed `ModuleNotFoundError: No module named 'scripts'` on PyPI install - Moved `ResourcesServerMetadata` from `scripts/` to `nemo_gym.server_metadata` - `ng_init_resources_server` templates are now bundled inside the package so they work from any current working directory - `ng_init_resources_server` now accepts relative paths (for example `../../resources_servers/my_server`) and computes correct `requirements.txt` paths - `ng_run` resolves server directories from the current working directory first, then falls back to the install location for built-in servers. Local servers take priority - `ng_collect_rollouts` resolves `input_jsonl_fpath` from the current working directory, then the install location, so built-in example data works without copying files - Env vars for local testing - Github workflow for testing wheel gated by label - CVE package bumps - Added PyPI install documentation page - Unit tests - `ng_run` and `ng_collect_rollouts` with local editable install (`reasoning_gym`) - `ng_run` and `ng_collect_rollouts` with built-in PyPI server (`arc_agi`) - `ng_init`, `ng_run`, and `ng_collect_rollouts` with a new local server alongside built-in agent and model - `ng_init` with a relative path outside the repo (reproduces #936) Bump version to 0.2.1 and make wheel test mandatory (#1065) - Makes the `test-wheel-install` CI job run on **every PR** by removing the conditional gate that required the `test-wheel` label or `workflow_call` trigger. This prevents broken wheels from being published again. Signed-off-by: Kajal Jain <[email protected]> Co-authored-by: Claude Opus 4.6 <[email protected]> fix: always send session cookie for starlette >= 1.0.0 (#942) Signed-off-by: cmunley1 <[email protected]> Signed-off-by: Kajal Jain <[email protected]>
kajalj22
added a commit
that referenced
this pull request
Apr 15, 2026
Fixes known PyPI install compatibility issues. - Fixed `ModuleNotFoundError: No module named 'scripts'` on PyPI install - Moved `ResourcesServerMetadata` from `scripts/` to `nemo_gym.server_metadata` - `ng_init_resources_server` templates are now bundled inside the package so they work from any current working directory - `ng_init_resources_server` now accepts relative paths (for example `../../resources_servers/my_server`) and computes correct `requirements.txt` paths - `ng_run` resolves server directories from the current working directory first, then falls back to the install location for built-in servers. Local servers take priority - `ng_collect_rollouts` resolves `input_jsonl_fpath` from the current working directory, then the install location, so built-in example data works without copying files - Env vars for local testing - Github workflow for testing wheel gated by label - CVE package bumps - Added PyPI install documentation page - Unit tests - `ng_run` and `ng_collect_rollouts` with local editable install (`reasoning_gym`) - `ng_run` and `ng_collect_rollouts` with built-in PyPI server (`arc_agi`) - `ng_init`, `ng_run`, and `ng_collect_rollouts` with a new local server alongside built-in agent and model - `ng_init` with a relative path outside the repo (reproduces #936) Bump version to 0.2.1 and make wheel test mandatory (#1065) - Makes the `test-wheel-install` CI job run on **every PR** by removing the conditional gate that required the `test-wheel` label or `workflow_call` trigger. This prevents broken wheels from being published again. Signed-off-by: Kajal Jain <[email protected]> Co-authored-by: Claude Opus 4.6 <[email protected]> fix: always send session cookie for starlette >= 1.0.0 (#942) Signed-off-by: cmunley1 <[email protected]> Signed-off-by: Kajal Jain <[email protected]>
kajalj22
added a commit
that referenced
this pull request
Apr 15, 2026
Fixes known PyPI install compatibility issues. - Fixed `ModuleNotFoundError: No module named 'scripts'` on PyPI install - Moved `ResourcesServerMetadata` from `scripts/` to `nemo_gym.server_metadata` - `ng_init_resources_server` templates are now bundled inside the package so they work from any current working directory - `ng_init_resources_server` now accepts relative paths (for example `../../resources_servers/my_server`) and computes correct `requirements.txt` paths - `ng_run` resolves server directories from the current working directory first, then falls back to the install location for built-in servers. Local servers take priority - `ng_collect_rollouts` resolves `input_jsonl_fpath` from the current working directory, then the install location, so built-in example data works without copying files - Env vars for local testing - Github workflow for testing wheel gated by label - CVE package bumps - Added PyPI install documentation page - Unit tests - `ng_run` and `ng_collect_rollouts` with local editable install (`reasoning_gym`) - `ng_run` and `ng_collect_rollouts` with built-in PyPI server (`arc_agi`) - `ng_init`, `ng_run`, and `ng_collect_rollouts` with a new local server alongside built-in agent and model - `ng_init` with a relative path outside the repo (reproduces #936) Bump version to 0.2.1 and make wheel test mandatory (#1065) - Makes the `test-wheel-install` CI job run on **every PR** by removing the conditional gate that required the `test-wheel` label or `workflow_call` trigger. This prevents broken wheels from being published again. Signed-off-by: Kajal Jain <[email protected]> Co-authored-by: Claude Opus 4.6 <[email protected]> fix: always send session cookie for starlette >= 1.0.0 (#942) Signed-off-by: cmunley1 <[email protected]> Signed-off-by: Kajal Jain <[email protected]>
This was referenced Jun 25, 2026
1 task
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes known PyPI install compatibility issues.
Changes
ModuleNotFoundError: No module named 'scripts'on PyPI installResourcesServerMetadatafromscripts/tonemo_gym.server_metadatang_init_resources_servertemplates are now bundled inside the package so they work from any current working directoryng_init_resources_servernow accepts relative paths (for example../../resources_servers/my_server) and computes correctrequirements.txtpathsng_runresolves server directories from the current working directory first, then falls back to the install location for built-in servers. Local servers take priorityng_collect_rolloutsresolvesinput_jsonl_fpathfrom the current working directory, then the install location, so built-in example data works without copying filesTesting
ng_runandng_collect_rolloutswith local editable install (reasoning_gym)ng_runandng_collect_rolloutswith built-in PyPI server (arc_agi)ng_init,ng_run, andng_collect_rolloutswith a new local server alongside built-in agent and modelng_initwith a relative path outside the repo (reproduces bug: ng_init_resources_server crashes when using relative paths or used outside Gym root #936)Closes #935 #936
Co-authored-by: Bogdan Salyp [email protected]