Skip to content

Commit

Permalink
fix version parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
mgaitan committed Apr 1, 2023
1 parent 8c3a54c commit f336233
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test_suite.yml
Expand Up @@ -96,7 +96,7 @@ jobs:
- name: Install Python dependencies
run: |
python -m pip install --upgrade wheel coveralls
python -m pip install --upgrade wheel setuptools coveralls
python -m pip install ".[test]"
- name: Check third party dependencies
Expand Down
10 changes: 3 additions & 7 deletions setup.py
@@ -1,9 +1,8 @@
#!/usr/bin/env python
"""MoviePy setup script."""

import os
import sys
from codecs import open
from pathlib import Path


try:
Expand Down Expand Up @@ -66,9 +65,7 @@ def run_tests(self):

cmdclass["build_docs"] = BuildDoc

__version__ = None
with open(os.path.join("moviepy", "version.py"), "r", "utf-8") as f:
__version__ = f.read().split(" ")[2].strip("\n").strip('"')
__version__ = Path("moviepy/version.py").read_text().strip().split('"')[1][:-1]


# Define the requirements for specific execution needs.
Expand Down Expand Up @@ -122,8 +119,7 @@ def run_tests(self):
}

# Load the README.
with open("README.rst", "r", "utf-8") as file:
readme = file.read()
readme = Path("README.rst").read_text()

setup(
name="moviepy",
Expand Down

0 comments on commit f336233

Please sign in to comment.