mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 12:54:11 +08:00
Improve MANIFEST.in for source distribution (#157814)
Pull Request resolved: https://github.com/pytorch/pytorch/pull/157814 Approved by: https://github.com/XuehaiPan, https://github.com/atalman
This commit is contained in:
committed by
PyTorch MergeBot
parent
353991dd92
commit
c44ec9f4c2
105
MANIFEST.in
105
MANIFEST.in
@ -1,20 +1,61 @@
|
|||||||
# Reference: https://setuptools.pypa.io/en/latest/userguide/miscellaneous.html
|
# Reference: https://setuptools.pypa.io/en/latest/userguide/miscellaneous.html
|
||||||
|
|
||||||
# Include source files in SDist
|
# Include individual top-level files
|
||||||
include CMakeLists.txt
|
include CITATION.cff
|
||||||
include *.bzl *.bazel .bazel* BUILD *.BUILD BUILD.* WORKSPACE
|
include CODEOWNERS
|
||||||
include BUCK BUCK.*
|
include Dockerfile
|
||||||
include requirements*.txt
|
include LICENSE
|
||||||
include version.txt
|
include MANIFEST.in
|
||||||
include [Mm]akefile *.[Mm]akefile [Mm]akefile.*
|
include Makefile
|
||||||
include [Dd]ockerfile *.[Dd]ockerfile [Dd]ockerfile.* .dockerignore
|
include NOTICE
|
||||||
|
include .bc-linter.yml
|
||||||
|
include .clang-format .clang-tidy
|
||||||
|
include .cmakelintrc
|
||||||
|
include .coveragerc
|
||||||
|
include .dockerignore
|
||||||
|
include .editorconfig
|
||||||
|
include .flake8
|
||||||
|
include .gdbinit
|
||||||
|
include .lintrunner.toml
|
||||||
|
include .lldbinit
|
||||||
|
include codex_setup.sh
|
||||||
|
include docker.Makefile
|
||||||
|
include pyrefly.toml
|
||||||
|
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
|
graft android
|
||||||
graft aten
|
graft aten
|
||||||
|
graft benchmarks
|
||||||
graft binaries
|
graft binaries
|
||||||
graft c10
|
graft c10
|
||||||
graft caffe2
|
graft caffe2
|
||||||
graft cmake
|
graft cmake
|
||||||
|
graft docs
|
||||||
graft functorch
|
graft functorch
|
||||||
|
graft ios
|
||||||
|
graft mypy_plugins
|
||||||
|
graft scripts
|
||||||
|
graft test
|
||||||
graft third_party
|
graft third_party
|
||||||
graft tools
|
graft tools
|
||||||
graft torch
|
graft torch
|
||||||
@ -22,29 +63,37 @@ graft torchgen
|
|||||||
# FIXME: torch-xla build during codegen will fail if include this file in wheel
|
# FIXME: torch-xla build during codegen will fail if include this file in wheel
|
||||||
exclude torchgen/BUILD.bazel
|
exclude torchgen/BUILD.bazel
|
||||||
|
|
||||||
# Misc files and directories in SDist
|
# The following exclusions omit parts from third-party dependencies that
|
||||||
include *.md
|
# contain invalid symlinks[1] and that are not needed for pytorch, such as
|
||||||
include CITATION.cff
|
# bindings for unused languages
|
||||||
include LICENSE NOTICE
|
prune third_party/flatbuffers/java
|
||||||
include mypy*.ini
|
prune third_party/flatbuffers/kotlin
|
||||||
graft benchmarks
|
prune third_party/ittapi/rust
|
||||||
graft docs
|
prune third_party/nccl/pkg/debian
|
||||||
graft mypy_plugins
|
prune third_party/opentelemetry-cpp/third_party/prometheus-cpp/cmake/project-import-*
|
||||||
graft scripts
|
|
||||||
|
# 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
|
# Misc files needed for custom setuptools command
|
||||||
include .gitignore
|
include .gitignore
|
||||||
include .gitmodules
|
include .gitmodules
|
||||||
|
|
||||||
# Include test suites in SDist
|
# [1] Invalid symlinks for the purposes of Python source distributions are,
|
||||||
graft test
|
# according to the source distribution format[2] links pointing outside the
|
||||||
include pytest.ini
|
# destination directory or links with a `..` component, which is those of
|
||||||
include .coveragerc
|
# concern here.
|
||||||
|
|
||||||
# Prune generated/compiled files
|
# [2] https://packaging.python.org/en/latest/specifications/source-distribution-format/#source-distribution-archive-features
|
||||||
prune torchgen/packaged
|
|
||||||
prune */__pycache__
|
|
||||||
global-exclude *.o *.obj *.so *.a *.dylib *.pxd *.dll *.lib *.py[cod]
|
|
||||||
|
|
||||||
prune */.git
|
|
||||||
global-exclude .git *~ *.swp
|
|
||||||
|
Reference in New Issue
Block a user