Skip to content

Commit 20f0a72

Browse files
committed
Don't ship .mpy files
1 parent dce01ee commit 20f0a72

File tree

5 files changed

+14
-11
lines changed

5 files changed

+14
-11
lines changed

README.md

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ ruff check
7373
Before running tests, install the test dependencies:
7474

7575
```bash
76-
cat test-requirements.txt | grep -v "^$" | xargs -n 1 micropython -m mip install
76+
./bin/setup
7777
```
7878

7979
Then, you can run the tests using the micropython version of `unittest`:
@@ -84,13 +84,7 @@ micropython -m unittest
8484

8585
## Releasing
8686

87-
To release a new version, first cross-compile to micropython bytecode. You need `mpy-cross` in your `PATH`:
88-
89-
```bash
90-
mpy-cross thermostat/__init__.py
91-
```
92-
93-
Then, update the versions in `manifest.py` and `package.json`. Commit your changes and make a pull request. After merging, create a new tag and push to GitHub:
87+
To release a new version, update the versions in `manifest.py` and `package.json`. Commit your changes and make a pull request. After merging, create a new tag and push to GitHub:
9488

9589
```bash
9690
git tag vX.Y.Z

bin/setup

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/usr/bin/env bash
2+
set -e
3+
4+
# Install all dependencies listed in test-requirements.txt with mip
5+
cat test-requirements.txt | while read -r line; do
6+
if [[ ! -z "$line" && "$line" != \#* ]]; then
7+
micropython -m mip install "$line"
8+
fi
9+
done

manifest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
metadata(
22
description="Advanced async thermostat logic for micropython",
3-
version="0.1.1"
3+
version="0.2.1"
44
)
55

66
require("time")

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{
22
"urls": [
3-
["thermostat/__init__.mpy", "github:solanus-systems/micropython-thermostat/thermostat/__init__.mpy"]
3+
["thermostat/__init__.py", "github:solanus-systems/micropython-thermostat/thermostat/__init__.py"]
44
],
55
"deps": [
66
["time", "latest"],
77
["logging", "latest"]
88
],
9-
"version": "0.1.1"
9+
"version": "0.2.1"
1010
}

thermostat/__init__.mpy

-3.83 KB
Binary file not shown.

0 commit comments

Comments
 (0)