Skip to content

Commit

Permalink
Cut v0.5 release & minor tweaks to publishing process (#170)
Browse files Browse the repository at this point in the history
  • Loading branch information
wwwillchen authored Apr 29, 2024
1 parent f095743 commit 9469b95
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 16 deletions.
1 change: 1 addition & 0 deletions docs/internal/publishing.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ rm -rf /tmp/mesoprelease-test/venv-twine \
&& source /tmp/mesoprelease-test/venv-twine/bin/activate \
&& pip install --upgrade pip \
&& pip install twine \
&& cd /tmp/mesoprelease-test \
&& twine upload mesop*.whl
```

Expand Down
2 changes: 1 addition & 1 deletion mesop/version.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""Contains the version string."""

VERSION = "0.4.2"
VERSION = "0.5.0"

if __name__ == "__main__":
print(VERSION)
29 changes: 14 additions & 15 deletions scripts/pip.sh
Original file line number Diff line number Diff line change
@@ -1,20 +1,19 @@
#!/bin/bash
#
# Run this script from the workspace root:
#
# To run in clean mode (default):
# $ source ./scripts/pip.sh
#
# To run in dirty mode:
# $ MESOP_DIRTY=true source ./scripts/pip.sh
#
# Note: using source ensures the current directory & env are set
# to the current shell which makes completing the smoke test
# described in publishing.md more convenient.

# Initialize the dirty flag as false
dirty=false

# Parse command-line options
while getopts "d" opt; do
case $opt in
d) dirty=true ;;
\?) echo "Invalid option: -$OPTARG" >&2
exit 1
;;
esac
done

# Now you can use the $dirty variable to conditionally run commands
if [ "$dirty" = true ]; then
# Check if MESOP_DIRTY environment variable is set to true
if [ "$MESOP_DIRTY" = "true" ]; then
echo "Running in dirty mode. (not running bazel clean)"
rm -rf /tmp/mesoprelease-test
else
Expand Down
1 change: 1 addition & 0 deletions scripts/smoketest_app/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ def button_click(event: me.ClickEvent):

@me.page(path="/buttons")
def main():
me.text("Running mesop version: " + me.__version__)
state = me.state(State)

me.button(
Expand Down

0 comments on commit 9469b95

Please sign in to comment.