Skip to content

Commit

Permalink
release new version (#602)
Browse files Browse the repository at this point in the history
* release new version

* update setup.py

* remake procedures
  • Loading branch information
QuanyiLi committed Jan 19, 2024
1 parent eaa3f9d commit 8a6a950
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 17 deletions.
2 changes: 1 addition & 1 deletion metadrive/version.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import os

VERSION = "0.4.1.2"
VERSION = "0.4.2.0"


def asset_version():
Expand Down
20 changes: 4 additions & 16 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,27 +117,15 @@ def is_win():
5. Remove old files and ext_modules from setup() to get a clean wheel for all platforms in py3-none-any.wheel
rm -rf dist/ build/ documentation/build/ metadrive_simulator.egg-info/ docs/build/
6. Rename current version to X.Y.Z.rcA, where A is arbitrary value represent "release candidate A".
This is really important since pypi do not support renaming and re-uploading.
Rename version in metadrive/versions.py
7. Get wheel
6. Get wheel
python setup.py sdist bdist_wheel
8. Upload to test channel
twine upload --repository testpypi dist/*
9. Test as next line. If failed, change the version name and repeat 1, 2, 3, 4, 5.
pip install --index-url https://test.pypi.org/simple/ metadrive
10. Rename current version to X.Y.Z in setup.py, rerun 1, 3 steps.
11. Upload to production channel
7. Upload to production channel
twine upload dist/*
12. Upload the generated .whl file to release files
8. Upload the generated .whl file to release files
13. merge this branch into main
9. merge this branch into main
!!!!!!!!!!!!! NOTE: please make sure that unzip assets.zip will generate a folder called assets instead of files
Expand Down

0 comments on commit 8a6a950

Please sign in to comment.