Skip to content

Commit

Permalink
Merge pull request #2 from groundlight/motdet_and_framegrabber
Browse files Browse the repository at this point in the history
Expose FrameGrabber and MotionDetector
  • Loading branch information
blaise-muhirwa authored Jun 25, 2023
2 parents f660017 + 84b549c commit 1184431
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ jobs:
fail-fast: false
matrix:
python-version: [
"3.7",
#"3.8",
# "3.7",
"3.8",
#"3.9",
"3.10",
#"3.11",
Expand Down
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "framegrab"
version = "0.1.1"
version = "0.1.2"
description = "Easily grab frames from cameras or streams"
authors = ["Groundlight <[email protected]>"]
license = "MIT"
Expand All @@ -11,6 +11,7 @@ python = "^3.7"
opencv-python = "^4.7.0.72"
youtube-dl = "^2021.12.17"
pillow = "^9.5.0"
pafy = "^0.5.5"

[tool.poetry.group.dev.dependencies]
black = "^23.3.0"
Expand Down
12 changes: 12 additions & 0 deletions src/framegrab/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
from .grabber import FrameGrabber
from .motion import MotionDetector

try:
import importlib.metadata

# Copy the version number from pyproject.toml
__version__ = importlib.metadata.version("framegrab")
except ModuleNotFoundError:
# importlib.metadata was only added in py3.8
# We're still supporting py3.7
__version__ = "(version number available in python 3.8+)"

0 comments on commit 1184431

Please sign in to comment.