Skip to content

Commit e74d009

Browse files
committed
ci: try to add automatic pypi release
Signed-off-by: matthias.gatto <[email protected]>
1 parent c6aadd8 commit e74d009

File tree

2 files changed

+19
-1
lines changed

2 files changed

+19
-1
lines changed

.github/workflows/make_release_bins.yml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,28 @@ jobs:
1616
- name: install fuse
1717
run: |
1818
sudo apt-get update --fix-missing
19-
sudo apt-get install -y -f -o Acquire::Retries=3 fuse
19+
sudo apt-get install -y -f -o Acquire::Retries=3 fuse python
2020
2121
- name: configure
2222
run: ./configure.sh --release
2323

2424
- name: make
2525
run: make appimage-bld/osc-tui-x86_64.AppImage
2626

27+
- name: twine
28+
run: |
29+
python -m venv env
30+
. .venv/bin/activate
31+
python -m pip install -e .
32+
python -m pip install --upgrade build
33+
python -m pip install --upgrade twine
34+
python -m build
35+
twine upload --verbose dist/*
36+
env:
37+
TWINE_USERNAME: "__token__"
38+
TWINE_PASSWORD: ${{ secrets.PIP_TOKEN }}
39+
40+
2741
- uses: "marvinpinto/action-automatic-releases@latest"
2842
with:
2943
repo_token: "${{ secrets.TOKEN }}"

osc_tui/mainForm.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77

88
import osc_sdk_python
99

10+
import time
11+
1012
from osc_tui import createImage
1113
from osc_tui import createKeyPair
1214
from osc_tui import createSnapshot
@@ -231,6 +233,7 @@ def set_up_handlers(self):
231233
super().set_up_handlers()
232234
self.add_handlers({curses.KEY_RIGHT: self.h_exit_down})
233235
self.add_handlers({curses.KEY_LEFT: self.h_exit_up})
236+
#self.add_handlers({curses.ascii.TAB: self.h_exit_up})
234237

235238
def h_cursor_line_up(self, input):
236239
super().h_cursor_line_up(input)
@@ -436,6 +439,7 @@ def switch_to_keypairs(self, _):
436439

437440
def set_up_handlers(self):
438441
super().set_up_handlers()
442+
439443
self.add_handlers({"q": self.quit_key})
440444
self.add_handlers({"^Q": quit})
441445
self.add_handlers({"h": popup.showHelp})

0 commit comments

Comments
 (0)