5 Commits

Author SHA1 Message Date
Christian Clauss
35886c970c
Upgrade GitHub Actions again (#679) 2022-07-11 14:02:31 -07:00
Karl Kroening
ef00863269
Fix Black in GHA for Python 2.7 (#680)
(At least until Python 2.7 support is finally eliminated)
2022-07-11 13:51:06 -07:00
Christian Clauss
ed70f2e619
Upgrade GitHub Actions (#643) 2022-07-11 13:39:36 -07:00
Karthikeyan Singaravelan
6189cd6861
Import ABC from collections.abc for Python 3.9+ compatibility (#330)
* Import ABC from collections.abc instead of collections for Python 3.9 compatibility.

* Fix deprecation warnings due to invalid escape sequences.

* Support Python 3.10

Co-authored-by: Karl Kroening <karlk@kralnet.us>
2022-03-07 01:46:52 -08:00
Karl Kroening
29b6f09298
Use GitHub Actions for CI. (#641)
This sets up GitHub Actions (GHA) to run in place of the
currently broken Travis CI.  Initially, this only covers running
tox/pytest and Black, but may eventually be extended to run pylint,
mypy, flake8, etc. - see #605, for example.

Notes:
* Python 3.10 is not yet supported due to the `collections.Iterable`
  issue discussed in #330, #624, etc.
* The Black CI step acts as a linting step, rather than attempting to
  have the GHA job automatically update/commit/push the reformarted
  code.
* Black is currently pinned to an older version that supports
  `--target-version py27` until Python 2 compatibility can be dropped in
  the final Python 2 compatibility release of ffmpeg-python.
* Only the main source directory (`ffmpeg/`) is checked with Black at
  the moment.  The `examples/` directory should also be checked, but
  will be done as a separate PR.

Co-authored by: Christian Clauss <cclauss@me.com>
2022-03-07 00:05:43 -08:00