-
Notifications
You must be signed in to change notification settings - Fork 24.8k
Add standard Python source distribution generation to (pre-)release workflow #152098
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
Closed
Closed
Changes from all commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
d8b3fe0
Update
zklaus 5fa1b5f
Update
zklaus 9bda76b
Update
zklaus 030992c
Update
zklaus f7d7c09
Update
zklaus e8e09e4
Update
zklaus 359f02d
Update
zklaus b1fd77b
Update
zklaus 7707b1a
Update
zklaus 0ad6cde
Update
zklaus 74329f6
Update
zklaus bfd4c92
Update
zklaus 3473f00
Update
zklaus 4725bf2
Update
zklaus 05c22b9
Update
zklaus e91a991
Update
zklaus e51f387
Update
zklaus File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../docs/requirements.txt |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,50 +1,100 @@ | ||
# Reference: https://setuptools.pypa.io/en/latest/userguide/miscellaneous.html | ||
|
||
# Include source files in SDist | ||
include CMakeLists.txt | ||
include *.bzl *.bazel .bazel* BUILD *.BUILD BUILD.* WORKSPACE | ||
include BUCK BUCK.* | ||
include requirements*.txt | ||
include version.txt | ||
include [Mm]akefile *.[Mm]akefile [Mm]akefile.* | ||
include [Dd]ockerfile *.[Dd]ockerfile [Dd]ockerfile.* .dockerignore | ||
# Include individual top-level files | ||
include MANIFEST.in | ||
include CITATION.cff | ||
include CODEOWNERS | ||
include Dockerfile | ||
include LICENSE | ||
include Makefile | ||
include NOTICE | ||
include .clang-format .clang-tidy | ||
include .cmakelintrc | ||
include .coveragerc | ||
include .dockerignore | ||
include .flake8 | ||
include .gdbinit | ||
include .lintrunner.toml | ||
include .lldbinit | ||
include docker.Makefile | ||
include ubsan.supp | ||
|
||
# Include bazel and BUCK related files | ||
include BUILD.bazel BUCK.oss | ||
include WORKSPACE | ||
include *.bzl | ||
include .bazelignore .bazelrc .bazelversion | ||
|
||
# Include general configuration files | ||
include *.ini | ||
# Include important top-level information | ||
include *.md | ||
# Include technical text files at the moment, comprises | ||
# version.txt, CMakeLists.txt, requirements.txt | ||
include *.txt | ||
|
||
# Include ctags configuration | ||
include .ctags.d/*.ctags | ||
|
||
# Include subfolders completely | ||
graft .devcontainer | ||
graft .vscode | ||
graft android | ||
# The following folder (assets) is empty except for a .gitignore file, which | ||
# will not be included in the sdist, hence we include the directory explicitly. | ||
include android/test_app/app/src/main/assets | ||
graft aten | ||
graft binaries | ||
graft c10 | ||
graft caffe2 | ||
graft cmake | ||
graft functorch | ||
graft third_party | ||
graft tools | ||
graft torch | ||
graft tools | ||
graft test | ||
graft docs | ||
graft ios | ||
graft third_party | ||
graft test | ||
graft benchmarks | ||
graft scripts | ||
graft mypy_plugins | ||
graft modules | ||
graft functorch | ||
graft torchgen | ||
# FIXME: torch-xla codegen build failure if include this file in wheel | ||
exclude torchgen/BUILD.bazel | ||
# exclude torchgen/BUILD.bazel | ||
|
||
# Misc files and directories in SDist | ||
include *.md | ||
include CITATION.cff | ||
include LICENSE NOTICE | ||
include mypy*.ini | ||
graft benchmarks | ||
graft docs | ||
graft mypy_plugins | ||
graft scripts | ||
# The following exclusions omit parts from third-party dependencies that | ||
# contain invalid symlinks[1] and that are not needed for pytorch, such as | ||
# bindings for unused languages | ||
prune third_party/ittapi/rust | ||
prune third_party/flatbuffers/java | ||
prune third_party/flatbuffers/kotlin | ||
prune third_party/nccl/pkg/debian | ||
prune third_party/opentelemetry-cpp/third_party/prometheus-cpp/cmake/project-import-* | ||
|
||
# The following document is also an invalid symlink[1] and superfluous | ||
exclude third_party/flatbuffers/docs/source/CONTRIBUTING.md | ||
|
||
# Omit autogenerated code | ||
prune torchgen/packaged | ||
|
||
# Omit caches, compiled, and scm related content | ||
prune */__pycache__ | ||
prune **/.github | ||
prune **/.gitlab | ||
global-exclude *.o *.obj *.so *.dylib *.a *.pxd *.dll *.lib | ||
global-exclude *.py[cod] *.swp *~ | ||
global-exclude .git .git-blame-ignore-revs .gitattributes .gitignore .gitmodules | ||
global-exclude .gitlab-ci.yml | ||
|
||
# Misc files needed for custom setuptools command | ||
include .gitignore | ||
include .gitmodules | ||
|
||
# Include test suites in SDist | ||
graft test | ||
include pytest.ini | ||
include .coveragerc | ||
|
||
# Prune generated/compiled files | ||
prune torchgen/packaged | ||
prune */__pycache__ | ||
global-exclude *.o *.obj *.so *.a *.dylib *.pxd *.dll *.lib *.py[cod] | ||
# [1] Invalid symlinks for the purposes of Python source distributions are, | ||
# according to the source distribution format[2] links pointing outside the | ||
# destination directory or links with a `..` component, which is those of | ||
# concern here. | ||
|
||
prune */.git | ||
global-exclude .git *~ *.swp | ||
# [2] https://packaging.python.org/en/latest/specifications/source-distribution-format/#source-distribution-archive-features |
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
sphinx==5.3.0 | ||
#Description: This is used to generate PyTorch docs | ||
#Pinned versions: 5.3.0 | ||
-e git+https://github.com/pytorch/pytorch_sphinx_theme.git@pytorch_sphinx_theme2#egg=pytorch_sphinx_theme2 | ||
|
||
# TODO: sphinxcontrib.katex 0.9.0 adds a local KaTeX server to speed up pre-rendering | ||
# but it doesn't seem to work and hangs around idly. The initial thought is probably | ||
# something related to Docker setup. We can investigate this later | ||
|
||
sphinxcontrib.katex==0.8.6 | ||
#Description: This is used to generate PyTorch docs | ||
#Pinned versions: 0.8.6 | ||
|
||
sphinxext-opengraph==0.9.1 | ||
#Description: This is used to generate PyTorch docs | ||
#Pinned versions: 0.9.1 | ||
|
||
sphinx_sitemap==2.6.0 | ||
#Description: This is used to generate sitemap for PyTorch docs | ||
#Pinned versions: 2.6.0 | ||
|
||
matplotlib==3.5.3 ; python_version < "3.13" | ||
matplotlib==3.6.3 ; python_version >= "3.13" | ||
#Description: This is used to generate PyTorch docs | ||
#Pinned versions: 3.6.3 if python > 3.12. Otherwise 3.5.3. | ||
|
||
tensorboard==2.13.0 ; python_version < "3.13" | ||
tensorboard==2.18.0 ; python_version >= "3.13" | ||
#Description: This is used to generate PyTorch docs | ||
#Pinned versions: 2.13.0 | ||
|
||
breathe==4.34.0 | ||
#Description: This is used to generate PyTorch C++ docs | ||
#Pinned versions: 4.34.0 | ||
|
||
exhale==0.2.3 | ||
#Description: This is used to generate PyTorch C++ docs | ||
#Pinned versions: 0.2.3 | ||
|
||
docutils==0.16 | ||
#Description: This is used to generate PyTorch C++ docs | ||
#Pinned versions: 0.16 | ||
|
||
bs4==0.0.1 | ||
#Description: This is used to generate PyTorch C++ docs | ||
#Pinned versions: 0.0.1 | ||
|
||
IPython==8.12.0 | ||
#Description: This is used to generate PyTorch functorch docs | ||
#Pinned versions: 8.12.0 | ||
|
||
myst-nb==0.17.2 | ||
#Description: This is used to generate PyTorch functorch docs | ||
#Pinned versions: 0.13.2 | ||
|
||
# The following are required to build torch.distributed.elastic.rendezvous.etcd* docs | ||
python-etcd==0.4.5 | ||
sphinx-copybutton==0.5.0 | ||
sphinx-design==0.4.0 | ||
sphinxcontrib-mermaid==1.0.0 | ||
myst-parser==0.18.1 |
This file was deleted.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
docs/source/notebooks |
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.