Skip to content

fix: pypi - #1056

Merged
bxyu-nvidia merged 1 commit into
mainfrom
cmunley1/pypi-fix-dco
Apr 14, 2026
Merged

bxyu-nvidia merged 1 commit into
mainfrom
cmunley1/pypi-fix-dco

Conversation

@cmunley1

@cmunley1 cmunley1 commented Apr 13, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Fixes known PyPI install compatibility issues.

Changes

  • 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

Testing

Closes #935 #936

Co-authored-by: Bogdan Salyp [email protected]

Signed-off-by: cmunley1 <[email protected]>
@cmunley1
cmunley1 requested a review from a team as a code owner April 13, 2026 04:46
@copy-pr-bot

copy-pr-bot Bot commented Apr 13, 2026

Copy link
Copy Markdown

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

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

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

can we swap this to WORKING_DIR pls?

@bxyu-nvidia
bxyu-nvidia merged commit e2931bf into main Apr 14, 2026
6 checks passed
@bxyu-nvidia
bxyu-nvidia deleted the cmunley1/pypi-fix-dco branch April 14, 2026 01:57
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]>
@ritaneves ritaneves linked an issue Jun 25, 2026 that may be closed by this pull request
1 task
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.

5 - Configuration Friction bug: pypi no module named scripts

3 participants