Skip to content

Commit

Permalink
Fix version parsing setup.py
Browse files Browse the repository at this point in the history
The last character of the version is cut out by `[:-1]`.
Eg: `2.0.0.dev2` become `2.0.0.dev`, which Python build converts in `2.0.0.dev0`.
  • Loading branch information
vanmatten authored Jul 12, 2023
1 parent bc8d1a8 commit fde9ce4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def run_tests(self):

cmdclass["build_docs"] = BuildDoc

__version__ = Path("moviepy/version.py").read_text().strip().split('"')[1][:-1]
__version__ = Path("moviepy/version.py").read_text().strip().split('"')[1]


# Define the requirements for specific execution needs.
Expand Down

0 comments on commit fde9ce4

Please sign in to comment.