Commit Graph

798 Commits

Author SHA1 Message Date
Marcin Kulik
fd09df89f6 Option to override cols/rows of the recorded process
This adds `--cols <n>` / `--rows <n>` options to `rec` command. This disables
autodection of terminal size, and reports fake fixed number of columns/rows to
the recorded process.
2022-02-17 21:54:30 +01:00
Marcin Kulik
41d2476c11 Merge pull request #453 from asciinema/feature/fifo-reopen
Improved handling of named pipes (FIFO)
2022-02-15 20:39:55 +01:00
Marcin Kulik
d16c2abf25 Ignore mypy's check for None in hot code path 2022-02-14 23:22:32 +01:00
Marcin Kulik
62d77dc9fb Automatically reopen named pipe (FIFO) and resume writing upon BrokenPipeError 2022-02-14 22:45:11 +01:00
Marcin Kulik
b741021345 Merge pull request #470 from djds/pre-commit-action
pre commit action
2022-02-13 23:32:17 +01:00
Davis Schirmer
d536ea689c [doc] Update CONTRIBUTING 2022-02-13 17:19:13 -05:00
Davis Schirmer
d7c5794b1e [tests] Add trailing newline to demo.json 2022-02-13 17:19:12 -05:00
Davis Schirmer
df71dc8c37 [doc] Remove trailing whitespace 2022-02-13 17:19:07 -05:00
Davis Schirmer
f70702f490 [ci] Update default Python environment 3.9 => 3.10 2022-02-13 16:43:18 -05:00
Davis Schirmer
f984d2c2e1 [ci] Add pre-commit GitHub Action workflow
https://github.com/pre-commit/action
2022-02-13 16:42:04 -05:00
Marcin Kulik
32ccd53ddb Merge pull request #469 from djds/develop
Revert "[tests:distros] Update Fedora 34 => 35"
2022-02-13 22:21:27 +01:00
Davis Schirmer
4ef8d32fc9 Revert "[tests:distros] Update Fedora 34 => 35"
This reverts commit 5546d7b0e6.

The fix for the default Docker seccomp profile containing the clone()
syscall wrapper from glibc 2.34 does not appear to be in the GitHub
Actions `ubuntu-latest` virtual environment yet.

* https://github.com/actions/virtual-environments
* https://github.com/actions/virtual-environments/blob/releases/ubuntu20/20220207/images/linux/Ubuntu2004-Readme.md
2022-02-13 16:17:38 -05:00
Marcin Kulik
a0c98fede3 Merge pull request #445 from djds/develop
Add PEP 518 build; annotate types; drop Python < 3.6 support
2022-02-13 21:22:37 +01:00
Davis Schirmer
733539feaa [record] Replace %s formatting with f-string 2022-02-13 13:43:57 -05:00
Davis Schirmer
f8e4890944 [config] Replace concatenation with f-string 2022-02-13 13:43:56 -05:00
Davis Schirmer
5546d7b0e6 [tests:distros] Update Fedora 34 => 35
https://bugs.launchpad.net/ubuntu/+source/docker.io/+bug/1938908/comments/101
2022-02-13 13:43:55 -05:00
Davis Schirmer
2127a69e45 [tests:distros] Update Alpine 3.14 => 3.15
https://alpinelinux.org/posts/Alpine-3.15.0-released.html
2022-02-13 13:43:54 -05:00
Davis Schirmer
430788baca [adapter] Fix HTTP Basic auth header encoding
https://www.python.org/dev/peps/pep-0498/#no-binary-f-strings
2022-02-13 13:43:53 -05:00
Davis Schirmer
47030f9b0e [v2] Remove redundant assertion 2022-02-13 13:43:52 -05:00
Davis Schirmer
bdeb3b1821 [raw] Rename unused var for pylint 2022-02-13 13:43:51 -05:00
Davis Schirmer
da5ea40497 [v2] Remove Optional from Asciicast.__enter__ return annotation 2022-02-13 13:43:50 -05:00
Davis Schirmer
8cd0a47e5a [v1] Remove import try / except block 2022-02-13 13:43:49 -05:00
Davis Schirmer
d78ae57f2f [style] Add additional pre-commit hooks 2022-02-13 13:43:48 -05:00
Davis Schirmer
811552d910 [command] Re-add escape codes converted by editor 2022-02-13 13:43:47 -05:00
Davis Schirmer
b7eafaa881 [cat] Set /dev/tty open mode as read-only 2022-02-13 10:34:19 -05:00
Davis Schirmer
aa244ab105 [recorder] Remove redundant assertion 2022-02-13 10:31:58 -05:00
Davis Schirmer
8e8a586012 [pty] Remove exception for Python < 3.3 2022-02-13 10:30:45 -05:00
Davis Schirmer
2a7870652c [style] Update pre-commit hooks 2022-02-13 10:30:37 -05:00
Davis Schirmer
c0f02e729e [api] Fix logic error 2022-02-13 10:27:37 -05:00
Davis Schirmer
b7190924e0 Fix merge conflicts in README 2022-02-12 15:53:53 -05:00
Davis Schirmer
0fdf7bb1e1 [build] Remove erroneous quote in setup.cfg 2022-02-12 15:45:13 -05:00
Fredrik Mellström
d6970b239a Recommend pipx installation 2021-12-13 21:59:59 +01:00
Marcin Kulik
1ed3e883cb Remove unnecessary blank line 2021-12-13 21:56:50 +01:00
Abhimanyu Singh
1428ff7243 Append Behavior
Do not append if the file does not exit.
2021-12-13 21:55:07 +01:00
Christian Felder
cb41544e57 README: update version mentioned for base image 2021-12-04 12:44:38 +01:00
Umar Getagazov
9ccf4efd4d Replace mentions of freenode with libera.chat 2021-11-10 22:19:02 +01:00
Davis Schirmer
daee7578ed [build] Remove .mypy_cache with clean.all Makefile target 2021-11-05 01:47:38 -04:00
Davis Schirmer
bc90ca7188 Normalize user-agent header casing in asciinema.api 2021-11-05 01:47:37 -04:00
Davis Schirmer
cb40536662 v2.2.0: Require Python 3.6+ 2021-11-05 01:47:31 -04:00
Davis Schirmer
8eb9291923 Support Python 3.6; remove annotations from __future__
CentOS 7 and Ubuntu 18.04 ship Python 3.6 by default. Python 3.6
supports f-strings and most type hinting syntax.
2021-11-05 01:25:35 -04:00
Davis Schirmer
59376ece05 Revert "[test] Drop support for Python 3.6; upgrade CentOS"
This reverts commit ab1fbb0c96.
2021-11-05 01:20:16 -04:00
Davis Schirmer
66e30bd9df [typing] Add asciinema/py.typed 2021-11-05 01:15:36 -04:00
Davis Schirmer
e676a162db [typing] Annotate asciinema.commands.play 2021-11-05 01:15:35 -04:00
Davis Schirmer
d00a251ff4 [typing] Annotate asciinema.commands.command 2021-11-05 01:15:34 -04:00
Davis Schirmer
ecb2b60568 [typing] Annotate asciinema.commands.cat 2021-11-05 01:15:33 -04:00
Davis Schirmer
26ac438844 [typing] Annotate asciinema.__init__ 2021-11-05 01:15:32 -04:00
Davis Schirmer
4bd919a51f [typing] Annotate asciinema.commands.record 2021-11-05 01:15:31 -04:00
Davis Schirmer
6759e73660 [typing] Annotate asciinema.commands.upload 2021-11-05 01:15:31 -04:00
Davis Schirmer
721bd0faed [build] Run build target in VIRTUAL_ENV 2021-11-05 01:15:30 -04:00
Davis Schirmer
82e659125a [typing] Annotate asciinema.commands.auth 2021-11-05 01:15:29 -04:00