From 8a6a950120035c413a101cf761035eec85f42507 Mon Sep 17 00:00:00 2001 From: Quanyi Li Date: Fri, 19 Jan 2024 21:41:27 +0000 Subject: [PATCH] release new version (#602) * release new version * update setup.py * remake procedures --- metadrive/version.py | 2 +- setup.py | 20 ++++---------------- 2 files changed, 5 insertions(+), 17 deletions(-) diff --git a/metadrive/version.py b/metadrive/version.py index 0d550a5b5..f3e40d405 100644 --- a/metadrive/version.py +++ b/metadrive/version.py @@ -1,6 +1,6 @@ import os -VERSION = "0.4.1.2" +VERSION = "0.4.2.0" def asset_version(): diff --git a/setup.py b/setup.py index 9fc004c4d..a7b220a39 100644 --- a/setup.py +++ b/setup.py @@ -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