Skip to content

Fix ffmpeg dependency and don't import project in setup.py#5

Open
ashtuchkin wants to merge 1 commit intoalexis-mignon:masterfrom
ashtuchkin:patch-1
Open

Fix ffmpeg dependency and don't import project in setup.py#5
ashtuchkin wants to merge 1 commit intoalexis-mignon:masterfrom
ashtuchkin:patch-1

Conversation

@ashtuchkin
Copy link
Copy Markdown

Fixes #1.

Also it's a bad practice to import the project in setup.py, as at the time of setup the environment likely doesn't have the required dependencies like numpy. There are a couple ways to resolve this while keeping the 2 versions in the same place, see https://packaging.python.org/en/latest/guides/single-sourcing-package-version/.

from setuptools import setup, find_packages
import pathlib
from gpmf import __version__
__version__ = "0.1"
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great! Remove the __version__ definition in gpmf/__init__.py too so we don't have duplicate definitions that risk being out of sync.

@ashtuchkin
Copy link
Copy Markdown
Author

@kalvdans do you have write access to the original repository?

@kalvdans
Copy link
Copy Markdown

@kalvdans do you have write access to the original repository?

No, sorry. I can't merge, just helping out reviewing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Wrong dependency python-ffmpeg. Should be: ffmpeg-python

2 participants