Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for path-like objects with a decorator #1137

Merged
merged 4 commits into from
Apr 18, 2020

Conversation

tburrows13
Copy link
Collaborator

This is a replacement for #924, and heavily based off of it, so thank you to @PaperBag42 for doing the bulk of the work. The main difference is that I've implemented converting the path objects to a string by using a decorator convert_path_to_string() instead of calling os.fspath() each time.

  • I have added suitable tests demonstrating a fixed bug or new/changed feature to the test suite in tests/
  • I have properly documented new or changed features in the documentation or in the docstrings
  • I have properly explained unusual or unexpected code in the comments around it
  • I have formatted my code using black -t py36

@tburrows13 tburrows13 mentioned this pull request Apr 6, 2020
5 tasks
@tburrows13 tburrows13 requested a review from mgaitan April 6, 2020 23:06
@coveralls
Copy link

coveralls commented Apr 6, 2020

Coverage Status

Coverage increased (+0.3%) to 64.986% when pulling 54751ff on tburrows13:new-pathlike-support into 103b2aa on Zulko:master.

@tburrows13 tburrows13 added the feature New addition to the API i.e. a new class, method or parameter. label Apr 8, 2020
@tburrows13 tburrows13 mentioned this pull request Apr 14, 2020
4 tasks
@tburrows13 tburrows13 added this to the Release v2.0.0 milestone Apr 14, 2020
@tburrows13
Copy link
Collaborator Author

Any objections to merging this?

@mgaitan
Copy link
Collaborator

mgaitan commented Apr 18, 2020 via email

@tburrows13 tburrows13 merged commit 57f1110 into Zulko:master Apr 18, 2020
@tburrows13 tburrows13 deleted the new-pathlike-support branch April 18, 2020 15:58
tburrows13 added a commit to gpantelis/moviepy that referenced this pull request Apr 19, 2020
Implement path support by use of `convert_path_to_string` decorator
tburrows13 added a commit that referenced this pull request May 6, 2020
* New functionality

New method that stabilaze a video

* make the code PEP8 compatible

* Align with PEP-257

* Small corrections

* PEP 8 compatible

* Rename stabilazed to stabilized

* Tidy code

* Rewrite docs

* Fix logger in tools.subprocess_call

Broken since bfad5ea

* Add basic unit test

* Add support for path-like objects with a decorator (#1137)

Implement path support by use of `convert_path_to_string` decorator

* Add support for path-like objects

* Apply black

* Add changelog entry

* Update ffmpeg_tools.py

* Apply black

Co-authored-by: Tom Burrows <tomburrows13@icloud.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New addition to the API i.e. a new class, method or parameter.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants