Skip to content

Commit

Permalink
Update release directions
Browse files Browse the repository at this point in the history
  • Loading branch information
muellerzr committed Jan 17, 2025
1 parent 78b8126 commit 733da76
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
5 changes: 5 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -70,3 +70,8 @@ test_prod:

test_rest:
python -m pytest -s -v ./tests/test_examples.py::FeatureExamplesTests -k "not by_step and not by_epoch" $(if $(IS_GITHUB_CI),--report-log "$(PYTORCH_VERSION)_rest.log",)

# For developers to prepare a release
prepare_release:
rm -rf dist build
python setup.py bdist_wheel sdist
7 changes: 2 additions & 5 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,16 +103,13 @@
# git tag v<VERSION> -m 'Adds tag v<VERSION> for pypi'
# Push the tag and release commit to git: git push --tags origin vXX.xx-release
# 5. Run the following commands in the top-level directory:
# rm -rf dist
# rm -rf build
# python setup.py bdist_wheel
# python setup.py sdist
# make prepare_release
# 6. Upload the package to the pypi test server first:
# twine upload dist/* -r testpypi
# 7. Check that you can install it in a virtualenv by running:
# pip install accelerate
# pip uninstall accelerate
# pip install -i https://testpypi.python.org/pypi accelerate
# pip install -i https://test.pypi.org/simple/ accelerate
# accelerate env
# accelerate test
# 8. Upload the final version to actual pypi:
Expand Down

0 comments on commit 733da76

Please sign in to comment.