pytorch/.github
Klaus Zimmermann c27d6df1ea For sdists, replace symlink with copy for docs requirements (#157811)
Before this change, there was the requirements file `.ci/docker/requirements-docs.txt` which was symlinked as `../.ci/docker/requirements-docs.txt` from `docs/requirements.txt` since #151796.
In this situation, [because `.ci` is excluded from the source tarball](3173616532/.github/workflows/create_release.yml (L67)), we end up with a broken symlink, that additionally is [invalid in a Python source distribution](https://packaging.python.org/en/latest/specifications/source-distribution-format/#unpacking-without-the-data-filter).

The broken symlink can be confirmed in [the rc sources](https://github.com/pytorch/pytorch/actions/runs/15892205745).

~After this change, there is still a single source of truth, which now is `docs/requirements.txt`, symlinked as `../docs/requirements.txt` from `.ci/docker/requirements-docs.txt`, which would also be invalid in a Python source distribution, but is not included in the tarball (see above). Additionally, the docs requirements that were missing from the previous tarball, are now actually included, allowing users to build the documentation again.~

@malfet clarified offline that there is a problem with the docs workflows because they use a cache with a key that includes the hash of the requirements document in the `.ci` folder, which now does no longer change when the requirements change. Hence, a different solution is needed~, though for now the problem remains~.

The solution in this PR is simply to copy the actual document to replace the symlink just prior to creating the source distribution. This way, a single document needs to be maintained, git checkouts remain as they are, and the source distributions contain the before-missing document.

A better solution may be implemented at a later stage with a better build system.

Pull Request resolved: https://github.com/pytorch/pytorch/pull/157811
Approved by: https://github.com/atalman
2025-08-18 21:10:44 +00:00
..
actions [3/3][ghstack][vllm ci build setup]vllm build workflow (#160116) 2025-08-15 05:35:46 +00:00
ci_commit_pins [xla hash update] update the pinned xla hash (#160871) 2025-08-18 11:50:47 +00:00
ci_configs/vllm [2/3 step][ vllm ci build setup] Add vlllm buld logic and dockerfile (#160089) 2025-08-14 05:51:45 +00:00
ISSUE_TEMPLATE Update bug-report.yml (#154857) 2025-06-03 16:13:07 +00:00
requirements [EZ][BE] Remove unused conda-env-macOS-ARM64 (#160477) 2025-08-12 23:41:25 +00:00
scripts [BE] Update nvshem dependency to 3.3.20 (#160458) 2025-08-16 02:00:57 +00:00
templates Add py3.14 to macos arm64 (#160593) 2025-08-15 18:52:10 +00:00
workflows For sdists, replace symlink with copy for docs requirements (#157811) 2025-08-18 21:10:44 +00:00
actionlint.yaml [CI] Switch ROCm MI300 GitHub Actions workflows from 2-GPU to 1-GPU runners (#158882) 2025-08-12 22:42:40 +00:00
auto_request_review.yml
dependabot.yml Update transformers version automatically with Dependabot (#160635) 2025-08-16 05:53:39 +00:00
label_to_label.yml [distributed] Enable H100 test for all distributed related changes (#156721) 2025-06-26 01:51:41 +00:00
labeler.yml [BE][AOTI] Remove duplicate schema for ExternKernelNode (#155867) 2025-06-14 02:03:27 +00:00
merge_rules.yaml [merge_rules] add some expected failure and skips (#159581) 2025-08-01 01:18:40 +00:00
nitpicks.yml Extend abi-stable nitpick message to all the c stable files (#145862) 2025-01-28 23:22:23 +00:00
PULL_REQUEST_TEMPLATE.md
pytorch-circleci-labels.yml
pytorch-probot.yml [vllm test] add vllm.yml and additional package (#160698) 2025-08-16 04:24:20 +00:00
regenerate.sh
requirements-gha-cache.txt [CI] update flake8 and mypy lint dependencies (#158720) 2025-07-29 08:05:56 +00:00