Skip to content

Commit

Permalink
Update mypy config, README.md and add extra logging
Browse files Browse the repository at this point in the history
  • Loading branch information
AttilaGombosER committed Aug 6, 2024
1 parent fba8610 commit 179263c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
3 changes: 2 additions & 1 deletion python/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ $ sudo gem install -N fpm
### dh-virtualenv

```bash
sudo apt-get install debhelper devscripts equivs dh-virtualenv dh-python python3-virtualenv python3-all python3-stdeb
$ sudo apt-get install debhelper devscripts equivs dh-virtualenv dh-python python3-virtualenv python3-all
$ pip install stdeb
```

## Configuration
Expand Down
4 changes: 4 additions & 0 deletions python/pack_python
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,16 @@ def main() -> None:
script_file = f"{scripts_dir}/pack_{script}"

if exists(script_file):
print(f"Running packaging script for {script}: {script_file}", file=sys.stderr)

command = [script_file, workspace_dir]

if arg_string := configuration.get(script):
command.extend(_split_arguments(arg_string))

_run_script(arguments, command)
else:
print(f"Packaging script for {script} not found: {script_file}", file=sys.stderr)


def _run_script(arguments: Namespace, command: list[str]) -> None:
Expand Down
2 changes: 1 addition & 1 deletion python/setup.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[mypy]
files = pack_python, wheel, fpm-deb, dh-virtualenv, pack_common.py
files = pack_python, pack_wheel, pack_fpm-deb, pack_dh-virtualenv, pack_common.py
strict = True
scripts_are_modules = True

Expand Down

0 comments on commit 179263c

Please sign in to comment.