Skip to content

Commit

Permalink
release-0.2.3 (#68)
Browse files Browse the repository at this point in the history
  • Loading branch information
QuanyiLi committed Sep 6, 2021
1 parent 76e3c8b commit cf6f028
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion metadrive/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from panda3d.core import Vec3
from panda3d.core import Vec4, BitMask32

EDITION = "MetaDrive v0.2.2"
EDITION = "MetaDrive v0.2.3"
DEFAULT_AGENT = "default_agent"
RENDER_MODE_NONE = "none" # Do not render
RENDER_MODE_ONSCREEN = "onscreen" # Pop up a window and draw image in it
Expand Down
8 changes: 5 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def is_win():
print("We will install the following packages: ", packages)

""" ===== Remember to modify the PG_EDITION at first ====="""
version = "0.2.2"
version = "0.2.3"

ext_modules = cythonize([Extension(
"metadrive.cutils", ["metadrive/cutils.pyx"], include_dirs=[numpy.get_include()]
Expand Down Expand Up @@ -85,7 +85,7 @@ def is_win():
"""
How to publish to pypi? Noted by Zhenghao in Dec 27, 2020.
1. Remove old files ext_modules from setup() to get a clean wheel for all platforms in py3-none-any.wheel
1. 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.egg-info/ docs/build/
2. Rename current version to X.Y.Z.rcA, where A is arbitrary value represent "release candidate A".
Expand All @@ -94,7 +94,9 @@ def is_win():
3. Get wheel
python setup.py sdist bdist_wheel
WARNING: wheel should not be created on windows, since assets will not be included in the .whl file !!!
WARNING: when create wheels on windows, modifying MANIFEST.in to include assets by using
recursive-include metadrive\\assets\\ *
recursive-include metadrive\\examples\\ *
4. Upload to test channel
twine upload --repository testpypi dist/*
Expand Down

0 comments on commit cf6f028

Please sign in to comment.