Skip to content

Commit 474ed39

Browse files
committed
cargo: Add inlined dependencies
See https://peps.python.org/pep-0723/#example Closes #481
1 parent 7b0c7ee commit 474ed39

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

cargo/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Tool to automatically generate `flatpak-builder` manifest json from a `Cargo.loc
66

77
Poetry users can run `poetry install` and skip this.
88

9-
Otherwise install Python 3.8+ with these modules:
9+
Otherwise install Python 3.9+ with these modules:
1010
- tomlkit
1111
- aiohttp
1212
- (Optional) PyYAML>=6.0.2 for YAML output instead of JSON

cargo/flatpak-cargo-generator.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,12 @@
11
#!/usr/bin/env python3
2+
# /// script
3+
# requires-python = ">=3.9"
4+
# dependencies = [
5+
# "aiohttp<4.0.0,>=3.9.5",
6+
# "PyYAML<7.0.0,>=6.0.2",
7+
# "tomlkit>=0.13.3,<1.0"
8+
# ]
9+
# ///
210

311
__license__ = "MIT"
412
import argparse

0 commit comments

Comments
 (0)