Commit Graph

719 Commits

Author SHA1 Message Date
Davis Schirmer
07b29ee2b5 [test] Fix imports in tests/config_test.py 2021-11-05 01:13:52 -04:00
Davis Schirmer
fe5433e61e Convert setup.py to setup.cfg, pyproject.toml
https://www.python.org/dev/peps/pep-0518/
2021-11-05 01:13:51 -04:00
Davis Schirmer
2bfb38c1f3 [build] Refactor Makefile 2021-11-05 01:13:38 -04:00
Davis Schirmer
a89cc2d6f9 [test] Shellcheck tests/*.sh 2021-10-30 14:02:27 -04:00
Davis Schirmer
7bbc89b65c [ci] Format asciinema workflow; add Python 3.10 2021-10-30 14:02:26 -04:00
Michael Palimaka
eaba2f5d9e setup.cfg: fix deprecated key usage 2021-10-26 21:42:32 +02:00
Davis Schirmer
e07e32d026 Refactor Dockerfile: consolidate instructions 2021-10-26 21:41:45 +02:00
Marcin Kulik
1330940de2 Don't push all tags - just the new release one 2021-10-02 20:16:09 +02:00
Marcin Kulik
fcec36cb51 Remove duplicate make task 2021-10-02 20:14:53 +02:00
Marcin Kulik
6e34c64383 Upgrade Docker image to use Ubuntu 20.04 as a base 2021-10-02 20:09:59 +02:00
Marcin Kulik
9910f6c863 Update build status badge 2021-10-02 16:44:28 +02:00
Marcin Kulik
65559c207e Don't test on EOL-ed Python versions (3.4 and 3.5) 2021-10-02 16:38:01 +02:00
gpotter2
44c782dc6a test_require is deprecated 2021-10-02 16:28:22 +02:00
gpotter2
b906a2a4d3 Use twine instead of setup.py sdist upload
"python setup.py sdist upload"
is deprecated and should not be used. It also doesn't support nice and
fancy markdown (this is why https://pypi.org/project/asciinema/2.0.2/
looks like garbage).

See
https://packaging.python.org/guides/distributing-packages-using-setuptools/
2021-10-02 16:28:22 +02:00
gpotter2
f5e70f9c9a setup.cfg: add LICENSE 2021-10-02 16:28:22 +02:00
gpotter2
a05562f1e9 Move to GithubCI & Twine check 2021-10-02 16:28:22 +02:00
Martin Tournoij
80c9d3dbdc Use os.get_terminal_size()
tput is part of ncurses, which may not be installed.

It still falls back to tput for older Python versions (this was
introduced in 3.3) or for platforms which may not support it.

Fixes #418
2021-10-02 16:15:19 +02:00
Marcin Kulik
d6557c76ef Fix encoding of basic auth header (fixes #364) 2021-10-02 15:48:03 +02:00
freddii
5816099c4b fixed spelling mistake 2021-01-16 17:26:10 +01:00
Marcin Kulik
2439b01ff4 Fix broken link in README 2021-01-03 18:58:24 +01:00
Marcin Kulik
d966bd013c Fix demo cast URL in README 2020-12-28 12:34:35 +01:00
Marcin Kulik
46946e7506 Suggest --overwrite option when dest file exists 2020-05-31 12:42:42 +02:00
Marcin Kulik
c94e898ec1 Don't use new f'' string syntax - it doesn't work on Python <3.6 2020-05-17 23:19:12 +02:00
Marcin Kulik
0eec28ddb2 Configurable hotkeys for playback 2020-05-17 23:19:12 +02:00
Marcin Kulik
c85a4a7acd Configurable hotkeys for recording 2020-05-17 23:19:12 +02:00
Marcin Kulik
4093b42f35 Lower terminal answerback time to 10ms 2020-05-17 23:10:34 +02:00
Devin J. Pohly
e966e09f63 Consume terminal answerbacks in asciinema cat
If the asciicast contains escape sequence queries like "CSI 6 n", the
terminal will both echo and input its responses.  Use the raw() context
manager that we already have to attempt to consume this "input."

There is, unfortunately, no way of finding out exactly when the terminal
has finished its answerbacks.  This patch adds a 50ms wait, which should
be overkill for a local terminal (in my tests, 3ms was usually enough).
For a remote terminal, this number becomes harder to estimate.

Technically this only needs to be done if whatever we're writing to
isatty(), but keep it simple for now.
2020-04-19 13:56:49 +02:00
Michael Osipov
63f27866bd Fix codeset detection on HP-UX
On HP-UX UTF-8 aware locales end with '.utf8'.
2020-04-19 13:49:09 +02:00
Marcin Kulik
76b8248893 Whitespace 2020-04-19 13:46:42 +02:00
Marcin Kulik
e2df16b6b7 Upgrade base Docker image 2020-04-19 13:45:25 +02:00
landonb
6a4ca6f1d2 Bugfix: Ensure ASCIINEMA_REC set on record (#372). 2020-04-19 13:45:07 +02:00
Marcin Kulik
350d5e9d8b Explain env var in custom notification command 2019-09-08 11:30:46 +02:00
Marcin Kulik
e8a493239e Ignore empty ("") custom notification command 2019-09-08 11:30:46 +02:00
Marcin Kulik
bc793d541c Custom notification command + disabling notifications 2019-09-08 11:30:46 +02:00
Marcin Kulik
cf2f8400a2 Use icon with send-notify and terminal-notifier 2019-09-08 11:30:46 +02:00
Marcin Kulik
9875622a0c Add terminal-notifier support 2019-09-08 11:30:46 +02:00
Marcin Kulik
99e2fa99c0 Add libnotify notifier 2019-09-08 11:30:46 +02:00
Marcin Kulik
631831dead Fix double quote escaping in AppleScript notifier 2019-09-08 11:30:46 +02:00
David Bradway
30ed6cb98c fix typo 2019-04-10 11:31:21 +02:00
ibrakap
f993ced914 pretty syntax 2019-04-04 09:01:18 +02:00
Marcin Kulik
bd940e9366 Simplify command building 2019-03-31 19:08:21 +02:00
Marcin Kulik
88ff927102 Put pycodestyle ignores to setup.cfg 2019-03-31 17:48:30 +02:00
Marcin Kulik
99281ca221 Ignore E722 2019-03-30 19:54:13 +01:00
Marcin Kulik
386a8e0f06 First attempt at desktop notifications 2019-03-30 19:54:13 +01:00
Marcin Kulik
50722ebd7c Extract asynchronous processing into separate module 2019-03-30 19:54:13 +01:00
Marcin Kulik
e06cabeb2b Stop time when recording session is paused 2019-03-30 19:54:13 +01:00
Marcin Kulik
53d0dbbfbb "Pausing" is better than "muting" 2019-03-30 19:54:13 +01:00
Marcin Kulik
3ff14875ff pycodestyle 2019-03-30 19:54:13 +01:00
Marcin Kulik
bfa266c470 Document muting 2019-03-30 19:54:13 +01:00
Marcin Kulik
1ad20769eb Mute recording with ctrl+p 2019-03-30 19:54:13 +01:00