From d3efc423d7ae2126d50b44bbca6d083fdb97ebc6 Mon Sep 17 00:00:00 2001 From: Chun-Wei Chen Date: Mon, 2 Aug 2021 09:39:19 -0400 Subject: [PATCH] Include requirements.txt in source distribution (#3622) * include requirements.txt in source distribution Signed-off-by: Chun-Wei Chen * correct testing source distribution Signed-off-by: Chun-Wei Chen --- MANIFEST.in | 1 + docs/OnnxReleases.md | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/MANIFEST.in b/MANIFEST.in index e3c0e1e1674..ee04daa2cc9 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -7,3 +7,4 @@ recursive-include cmake * recursive-include tools * include VERSION_NUMBER include CMakeLists.txt +include requirements.txt diff --git a/docs/OnnxReleases.md b/docs/OnnxReleases.md index 28817268b64..cf11d258a46 100644 --- a/docs/OnnxReleases.md +++ b/docs/OnnxReleases.md @@ -84,7 +84,7 @@ The ONNX project, going forward, will plan to release roughly on a two month cad **Source distribution verification** -* Test the source distribution by doing ``pip install -i https://test.pypi.org/simple/ onnx`` in a new environment. +* Test the source distribution by doing ``pip install -i https://test.pypi.org/simple/ --no-binary :all: onnx`` in a new environment. ## Upload to official PyPI **NOTE: Once the packages are uploaded to PyPI, you cannot overwrite it on the same PyPI instance. Please make sure everything is good on TestPyPI before uploading to PyPI** @@ -96,7 +96,7 @@ The ONNX project, going forward, will plan to release roughly on a two month cad **Source Distribution** * Follow the same process in TestPyPI to produce the source distribution. * Use ``twine upload --verbose dist/* --repository-url https://upload.pypi.org/legacy/`` instead to upload to the official PyPI. -* Test with ``pip install --index-url https://upload.pypi.org/legacy/ onnx`` +* Test with ``pip install --no-binary :all: onnx`` ## After PyPI Release