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
Davis Schirmer
33116aa9de
Refactor asciinema.notifier
2021-11-05 01:15:28 -04:00
Davis Schirmer
209ee86f47
[test] Format test_helper
2021-11-05 01:15:27 -04:00
Davis Schirmer
205d247dc4
[test] Format v2 test
2021-11-05 01:15:26 -04:00
Davis Schirmer
1cf99d4218
[test] Configure pylint
2021-11-05 01:15:21 -04:00
Davis Schirmer
45c065e28d
[typing] Annotate asciinema.recorder
2021-11-05 01:14:21 -04:00
Davis Schirmer
0e49741627
[typing] Annotate asciinema.player
2021-11-05 01:14:20 -04:00
Davis Schirmer
2ec9de701b
[typing] Annotate asciinema.__main__
2021-11-05 01:14:19 -04:00
Davis Schirmer
c1bfc8955b
[typing] Annotate asciinema.pty_
2021-11-05 01:14:18 -04:00
Davis Schirmer
4d3478e7ec
[typing] Annotate asciinema.term
2021-11-05 01:14:17 -04:00
Davis Schirmer
201ec17aa4
[typing] Annotate asciinema.config
2021-11-05 01:14:16 -04:00
Davis Schirmer
179c9edc99
[typing] Annotate asciinema.api
2021-11-05 01:14:16 -04:00
Davis Schirmer
af590e2e7b
[typing] Annotate ascinnema.urllib_http_adapter
2021-11-05 01:14:15 -04:00
Davis Schirmer
851482120c
[build] Add clean, clean.all targets to Makefile
2021-11-05 01:14:08 -04:00
Davis Schirmer
ab1fbb0c96
[test] Drop support for Python 3.6; upgrade CentOS
...
PEP 563: _Postponed Evaluation of Annotations_ was introduced as
__future__.annotations in Python 3.7. Since future imports are required
to be unconditional, this import fails on Python 3.6. This import
supports more complete type hinting, esepecially for class methods.
Since Ubuntu 18.04 and CentOS 7 are the last major distros to still ship
Python 3.6, drop support.
2021-11-05 01:14:06 -04:00
Davis Schirmer
3eae623092
[test] Update test for asciinema.pty_
2021-11-05 01:14:05 -04:00
Davis Schirmer
faa7675c8e
[typing] Annotate asciinema.async_worker
2021-11-05 01:14:04 -04:00
Davis Schirmer
d7a07db4f5
[typing] Annotate asciinema.asciicast
2021-11-05 01:14:04 -04:00
Davis Schirmer
12e3bf514a
Rename asciinema/pty.py => pty_.py
...
Avoid mypy error:
Source file found twice under different module names: "asciinema.pty" and "pty"
2021-11-05 01:14:03 -04:00
Davis Schirmer
a0cd7df404
[style] Disable pylint invalid-name
2021-11-05 01:14:02 -04:00
Davis Schirmer
955e2f185a
[style] Replace calls to format() with f-strings
2021-11-05 01:14:01 -04:00
Davis Schirmer
08f624b4a4
[style] Ignore line break before binary operator
...
* https://www.python.org/dev/peps/pep-0008/#should-a-line-break-before-or-after-a-binary-operator
* https://www.flake8rules.com/rules/W503.html
2021-11-05 01:14:00 -04:00
Davis Schirmer
6a213cdf4e
[style] Format package code
...
* Sort imports with isort
* Format code with black
* Remove unused imports with autoflake
2021-11-05 01:13:59 -04:00
Davis Schirmer
adfdef62f6
[style] Add pre-commit config
...
https://pre-commit.com/
2021-11-05 01:13:58 -04:00
Davis Schirmer
bb90624292
[ci] Add dependabot config
2021-11-05 01:13:57 -04:00
Davis Schirmer
66534d258d
[ci] Run container integration tests to CI
2021-11-05 01:13:57 -04:00
Davis Schirmer
bd3e6f5f67
[test] Convert unittests runner nose => pytest
...
Per the official docs, nose is in maintenance mode. Attempts to import
`Callable` from `collections` fails in Python 3.10. Convert
nose-specific assert statements to bare asserts supported by pytest.
* https://nose.readthedocs.io/en/latest/#note-to-users
* https://github.com/pytest-dev/nose2pytest
2021-11-05 01:13:56 -04:00
Davis Schirmer
dcf4f3f9ca
[test] Update test distro Dockerfiles
...
* Add Dockerfile.{alpine,arch}
* Add test.distros Makefile target
2021-11-05 01:13:55 -04:00
Davis Schirmer
9eab5f5cb7
[container] Update Dockerfile for PEP 518 build
2021-11-05 01:13:54 -04:00