Skip to content

Commit

Permalink
Include requirements.txt in source distribution (onnx#3622)
Browse files Browse the repository at this point in the history
* include requirements.txt in source distribution

Signed-off-by: Chun-Wei Chen <[email protected]>

* correct testing source distribution

Signed-off-by: Chun-Wei Chen <[email protected]>
  • Loading branch information
jcwchen authored Aug 2, 2021
1 parent 3c9b361 commit d3efc42
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ recursive-include cmake *
recursive-include tools *
include VERSION_NUMBER
include CMakeLists.txt
include requirements.txt
4 changes: 2 additions & 2 deletions docs/OnnxReleases.md
Original file line number Diff line number Diff line change
Expand Up @@ -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**
Expand All @@ -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

Expand Down

0 comments on commit d3efc42

Please sign in to comment.