Skip to content

Create //torchx/specs:lib_core #1048

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

Merged
merged 1 commit into from
Apr 25, 2025
Merged

Create //torchx/specs:lib_core #1048

merged 1 commit into from
Apr 25, 2025

Conversation

kiukchung
Copy link
Contributor

Summary:
IMPORTANT: If you believe you are broken by this diff due to autodeps/codemod having removed a dep to
//torchx/specs:api in favor of //torchx/specs:lib_core then try adding a manual (# manual) dep to //torchx/specs/fb:api_extended to fix forward.

Example:

python_library|binary(  
  name = "my-lib-or-bin",
  srcs = [...],
  deps = [
    "//torchx/specs:lib_core", # <-- added by autodeps codemod
    "//torchx/specs/fb:api_extended", # manual <-- manually add api_extended
    ...
  ]
)

Milestone 1.1 of torchx-lite (see doc for details)

Creates //torchx/specs:lib_core with only the source files of torchx.specs module and a minimal set of dependencies for a proper closure of this module.

For BC, we keep //torchx/specs:lib and //torchx/specs:api as is by adding the existing bundled deps as manual so that autodeps doesn't remove them on future codemods.

Switches over to //torchx/specs:lib_core for TorchX internal targets (e.g. within //torchx/...).

Differential Revision: D73195094

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Apr 22, 2025
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D73195094

facebook-github-bot pushed a commit that referenced this pull request Apr 22, 2025
Summary:

IMPORTANT:  If you believe you are broken by this diff due to autodeps/codemod having removed a dep to 
`//torchx/specs:api` in favor of `//torchx/specs:lib_core` then try adding a manual (`# manual`) dep to `//torchx/specs/fb:api_extended` to fix forward.  

**Example:** 
```
python_library|binary(  
  name = "my-lib-or-bin",
  srcs = [...],
  deps = [
    "//torchx/specs:lib_core", # <-- added by autodeps codemod
    "//torchx/specs/fb:api_extended", # manual <-- manually add api_extended
    ...
  ]
)
```

Milestone 1.1 of torchx-lite (see [doc](https://fburl.com/gdoc/4wxcoaoa) for details)

Creates `//torchx/specs:lib_core` with only the source files of `torchx.specs` module and a minimal set of dependencies for a proper closure of this module.

For BC, we keep `//torchx/specs:lib` and `//torchx/specs:api` as is by adding the existing bundled deps as `manual` so that autodeps doesn't remove them on future codemods.

Switches over to `//torchx/specs:lib_core` for TorchX internal targets (e.g. within `//torchx/...`).

Differential Revision: D73195094
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D73195094

facebook-github-bot pushed a commit that referenced this pull request Apr 23, 2025
Summary:

IMPORTANT:  If you believe you are broken by this diff due to autodeps/codemod having removed a dep to 
`//torchx/specs:api` in favor of `//torchx/specs:lib_core` then try adding a manual (`# manual`) dep to `//torchx/specs/fb:api_extended` to fix forward.  

**Example:** 
```
python_library|binary(  
  name = "my-lib-or-bin",
  srcs = [...],
  deps = [
    "//torchx/specs:lib_core", # <-- added by autodeps codemod
    "//torchx/specs/fb:api_extended", # manual <-- manually add api_extended
    ...
  ]
)
```

Milestone 1.1 of torchx-lite (see [doc](https://fburl.com/gdoc/4wxcoaoa) for details)

Creates `//torchx/specs:lib_core` with only the source files of `torchx.specs` module and a minimal set of dependencies for a proper closure of this module.

For BC, we keep `//torchx/specs:lib` and `//torchx/specs:api` as is by adding the existing bundled deps as `manual` so that autodeps doesn't remove them on future codemods.

Switches over to `//torchx/specs:lib_core` for TorchX internal targets (e.g. within `//torchx/...`).

Differential Revision: D73195094
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D73195094

facebook-github-bot pushed a commit that referenced this pull request Apr 23, 2025
Summary:

IMPORTANT:  If you believe you are broken by this diff due to autodeps/codemod having removed a dep to 
`//torchx/specs:api` in favor of `//torchx/specs:lib_core` then try adding a manual (`# manual`) dep to `//torchx/specs/fb:api_extended` to fix forward.  

**Example:** 
```
python_library|binary(  
  name = "my-lib-or-bin",
  srcs = [...],
  deps = [
    "//torchx/specs:lib_core", # <-- added by autodeps codemod
    "//torchx/specs/fb:api_extended", # manual <-- manually add api_extended
    ...
  ]
)
```

Milestone 1.1 of torchx-lite (see [doc](https://fburl.com/gdoc/4wxcoaoa) for details)

Creates `//torchx/specs:lib_core` with only the source files of `torchx.specs` module and a minimal set of dependencies for a proper closure of this module.

For BC, we keep `//torchx/specs:lib` and `//torchx/specs:api` as is by adding the existing bundled deps as `manual` so that autodeps doesn't remove them on future codemods.

Switches over to `//torchx/specs:lib_core` for TorchX internal targets (e.g. within `//torchx/...`).

Reviewed By: aay-gup

Differential Revision: D73195094
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D73195094

facebook-github-bot pushed a commit that referenced this pull request Apr 24, 2025
Summary:

IMPORTANT:  If you believe you are broken by this diff due to autodeps/codemod having removed a dep to 
`//torchx/specs:api` in favor of `//torchx/specs:lib_core` then try adding a manual (`# manual`) dep to `//torchx/specs/fb:api_extended` to fix forward.  

**Example:** 
```
python_library|binary(  
  name = "my-lib-or-bin",
  srcs = [...],
  deps = [
    "//torchx/specs:lib_core", # <-- added by autodeps codemod
    "//torchx/specs/fb:api_extended", # manual <-- manually add api_extended
    ...
  ]
)
```

Milestone 1.1 of torchx-lite (see [doc](https://fburl.com/gdoc/4wxcoaoa) for details)

Creates `//torchx/specs:lib_core` with only the source files of `torchx.specs` module and a minimal set of dependencies for a proper closure of this module.

For BC, we keep `//torchx/specs:lib` and `//torchx/specs:api` as is by adding the existing bundled deps as `manual` so that autodeps doesn't remove them on future codemods.

Switches over to `//torchx/specs:lib_core` for TorchX internal targets (e.g. within `//torchx/...`).

Reviewed By: aay-gup

Differential Revision: D73195094
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D73195094

facebook-github-bot pushed a commit that referenced this pull request Apr 24, 2025
Summary:

IMPORTANT:  If you believe you are broken by this diff due to autodeps/codemod having removed a dep to 
`//torchx/specs:api` in favor of `//torchx/specs:lib_core` then try adding a manual (`# manual`) dep to `//torchx/specs/fb:api_extended` to fix forward.  

**Example:** 
```
python_library|binary(  
  name = "my-lib-or-bin",
  srcs = [...],
  deps = [
    "//torchx/specs:lib_core", # <-- added by autodeps codemod
    "//torchx/specs/fb:api_extended", # manual <-- manually add api_extended
    ...
  ]
)
```

Milestone 1.1 of torchx-lite (see [doc](https://fburl.com/gdoc/4wxcoaoa) for details)

Creates `//torchx/specs:lib_core` with only the source files of `torchx.specs` module and a minimal set of dependencies for a proper closure of this module.

For BC, we keep `//torchx/specs:lib` and `//torchx/specs:api` as is by adding the existing bundled deps as `manual` so that autodeps doesn't remove them on future codemods.

Switches over to `//torchx/specs:lib_core` for TorchX internal targets (e.g. within `//torchx/...`).

Reviewed By: aay-gup

Differential Revision: D73195094
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D73195094

kiukchung added a commit that referenced this pull request Apr 24, 2025
Summary:

IMPORTANT:  If you believe you are broken by this diff due to autodeps/codemod having removed a dep to 
`//torchx/specs:api` in favor of `//torchx/specs:lib_core` then try adding a manual (`# manual`) dep to `//torchx/specs/fb:api_extended` to fix forward.  

**Example:** 
```
python_library|binary(  
  name = "my-lib-or-bin",
  srcs = [...],
  deps = [
    "//torchx/specs:lib_core", # <-- added by autodeps codemod
    "//torchx/specs/fb:api_extended", # manual <-- manually add api_extended
    ...
  ]
)
```

Milestone 1.1 of torchx-lite (see [doc](https://fburl.com/gdoc/4wxcoaoa) for details)

Creates `//torchx/specs:lib_core` with only the source files of `torchx.specs` module and a minimal set of dependencies for a proper closure of this module.

For BC, we keep `//torchx/specs:lib` and `//torchx/specs:api` as is by adding the existing bundled deps as `manual` so that autodeps doesn't remove them on future codemods.

Switches over to `//torchx/specs:lib_core` for TorchX internal targets (e.g. within `//torchx/...`).

Reviewed By: aay-gup

Differential Revision: D73195094
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D73195094

kiukchung added a commit that referenced this pull request Apr 24, 2025
Summary:
Pull Request resolved: #1048

IMPORTANT:  If you believe you are broken by this diff due to autodeps/codemod having removed a dep to
`//torchx/specs:api` in favor of `//torchx/specs:lib_core` then try adding a manual (`# manual`) dep to `//torchx/specs/fb:api_extended` to fix forward.

**Example:**
```
python_library|binary(
  name = "my-lib-or-bin",
  srcs = [...],
  deps = [
    "//torchx/specs:lib_core", # <-- added by autodeps codemod
    "//torchx/specs/fb:api_extended", # manual <-- manually add api_extended
    ...
  ]
)
```

Milestone 1.1 of torchx-lite (see [doc](https://fburl.com/gdoc/4wxcoaoa) for details)

Creates `//torchx/specs:lib_core` with only the source files of `torchx.specs` module and a minimal set of dependencies for a proper closure of this module.

For BC, we keep `//torchx/specs:lib` and `//torchx/specs:api` as is by adding the existing bundled deps as `manual` so that autodeps doesn't remove them on future codemods.

Switches over to `//torchx/specs:lib_core` for TorchX internal targets (e.g. within `//torchx/...`).

Reviewed By: aay-gup

Differential Revision: D73195094
kiukchung added a commit that referenced this pull request Apr 24, 2025
Summary:

IMPORTANT:  If you believe you are broken by this diff due to autodeps/codemod having removed a dep to 
`//torchx/specs:api` in favor of `//torchx/specs:lib_core` then try adding a manual (`# manual`) dep to `//torchx/specs/fb:api_extended` to fix forward.  

**Example:** 
```
python_library|binary(  
  name = "my-lib-or-bin",
  srcs = [...],
  deps = [
    "//torchx/specs:lib_core", # <-- added by autodeps codemod
    "//torchx/specs/fb:api_extended", # manual <-- manually add api_extended
    ...
  ]
)
```

Milestone 1.1 of torchx-lite (see [doc](https://fburl.com/gdoc/4wxcoaoa) for details)

Creates `//torchx/specs:lib_core` with only the source files of `torchx.specs` module and a minimal set of dependencies for a proper closure of this module.

For BC, we keep `//torchx/specs:lib` and `//torchx/specs:api` as is by adding the existing bundled deps as `manual` so that autodeps doesn't remove them on future codemods.

Switches over to `//torchx/specs:lib_core` for TorchX internal targets (e.g. within `//torchx/...`).

Reviewed By: aay-gup

Differential Revision: D73195094
Summary:
Pull Request resolved: #1048

IMPORTANT:  If you believe you are broken by this diff due to autodeps/codemod having removed a dep to
`//torchx/specs:api` in favor of `//torchx/specs:lib_core` then try adding a manual (`# manual`) dep to `//torchx/specs/fb:api_extended` to fix forward.

**Example:**
```
python_library|binary(
  name = "my-lib-or-bin",
  srcs = [...],
  deps = [
    "//torchx/specs:lib_core", # <-- added by autodeps codemod
    "//torchx/specs/fb:api_extended", # manual <-- manually add api_extended
    ...
  ]
)
```

Milestone 1.1 of torchx-lite (see [doc](https://fburl.com/gdoc/4wxcoaoa) for details)

Creates `//torchx/specs:lib_core` with only the source files of `torchx.specs` module and a minimal set of dependencies for a proper closure of this module.

For BC, we keep `//torchx/specs:lib` and `//torchx/specs:api` as is by adding the existing bundled deps as `manual` so that autodeps doesn't remove them on future codemods.

Switches over to `//torchx/specs:lib_core` for TorchX internal targets (e.g. within `//torchx/...`).

Reviewed By: aay-gup

Differential Revision: D73195094
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D73195094

@facebook-github-bot facebook-github-bot merged commit 41be1d8 into main Apr 25, 2025
20 of 24 checks passed
@facebook-github-bot facebook-github-bot deleted the export-D73195094 branch April 25, 2025 00:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants