Skip to content

Commit c6f05fa

Browse files
committed
Replace root readme with a link
1 parent 9fdbebd commit c6f05fa

File tree

2 files changed

+23
-316
lines changed

2 files changed

+23
-316
lines changed

README.md

Lines changed: 0 additions & 312 deletions
This file was deleted.

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
src/serious_python/README.md

src/serious_python/README.md

Lines changed: 22 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,15 @@ To simplify the packaging of your Python app Serious Python provides a CLI which
8181
dart run serious_python:main
8282
```
8383

84-
There is `package` command which takes a directory with Python app as the first argument. The command must be run in Flutter app root directory, where `pubspec.yaml` is located. The path could be either relative or an absolute:
84+
There is `package` command which takes a directory with Python app as the first argument. The command must be run in Flutter app root directory, where `pubspec.yaml` is located. The path could be either relative or an absolute.
85+
86+
To package Python files for a mobile app run:
87+
88+
```
89+
dart run serious_python:main package app/src --mobile
90+
```
91+
92+
To package for a desktop app run:
8593

8694
```
8795
dart run serious_python:main package app/src
@@ -295,10 +303,20 @@ List libraries and their versions in `requirements.txt` in the root of your Pyth
295303

296304
List libraries and their versions in `requirements.txt` in the root of your Python app directory.
297305

306+
## Troubleshooting
307+
308+
### Detailed logging
309+
310+
Use `--verbose` flag to enabled detailed logging:
311+
312+
```
313+
dart run serious_python:main package app/src --mobile --verbose
314+
```
315+
298316
## Examples
299317

300-
[Python REPL with Flask backend](example/flask_example).
318+
[Python REPL with Flask backend](src/serious_python/example/flask_example).
301319

302-
[Flet app](example/flet_example).
320+
[Flet app](src/serious_python/example/flet_example).
303321

304-
[Run Python app](example/run_example).
322+
[Run Python app](src/serious_python/example/run_example).

0 commit comments

Comments
 (0)