Skip to content

Commit 9469b95

Browse files
authored
Cut v0.5 release & minor tweaks to publishing process (#170)
1 parent f095743 commit 9469b95

File tree

4 files changed

+17
-16
lines changed

4 files changed

+17
-16
lines changed

docs/internal/publishing.md

+1
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ rm -rf /tmp/mesoprelease-test/venv-twine \
4444
&& source /tmp/mesoprelease-test/venv-twine/bin/activate \
4545
&& pip install --upgrade pip \
4646
&& pip install twine \
47+
&& cd /tmp/mesoprelease-test \
4748
&& twine upload mesop*.whl
4849
```
4950

mesop/version.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"""Contains the version string."""
22

3-
VERSION = "0.4.2"
3+
VERSION = "0.5.0"
44

55
if __name__ == "__main__":
66
print(VERSION)

scripts/pip.sh

+14-15
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,19 @@
11
#!/bin/bash
2+
#
3+
# Run this script from the workspace root:
4+
#
5+
# To run in clean mode (default):
6+
# $ source ./scripts/pip.sh
7+
#
8+
# To run in dirty mode:
9+
# $ MESOP_DIRTY=true source ./scripts/pip.sh
10+
#
11+
# Note: using source ensures the current directory & env are set
12+
# to the current shell which makes completing the smoke test
13+
# described in publishing.md more convenient.
214

3-
# Initialize the dirty flag as false
4-
dirty=false
5-
6-
# Parse command-line options
7-
while getopts "d" opt; do
8-
case $opt in
9-
d) dirty=true ;;
10-
\?) echo "Invalid option: -$OPTARG" >&2
11-
exit 1
12-
;;
13-
esac
14-
done
15-
16-
# Now you can use the $dirty variable to conditionally run commands
17-
if [ "$dirty" = true ]; then
15+
# Check if MESOP_DIRTY environment variable is set to true
16+
if [ "$MESOP_DIRTY" = "true" ]; then
1817
echo "Running in dirty mode. (not running bazel clean)"
1918
rm -rf /tmp/mesoprelease-test
2019
else

scripts/smoketest_app/main.py

+1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ def button_click(event: me.ClickEvent):
1313

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

1819
me.button(

0 commit comments

Comments
 (0)