Skip to content

Commit

Permalink
Add optional dev dependencies, fix dynamic scripts invalid entry
Browse files Browse the repository at this point in the history
  • Loading branch information
ianwal committed Dec 14, 2024
1 parent 162b228 commit e9ea232
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 7 deletions.
15 changes: 9 additions & 6 deletions .github/workflows/vpdq-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,24 +20,27 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: Install packaging dependencies
run: |
python -m pip install --upgrade pip
python -m pip install -r packaging-requirements.txt
python-version: "3.11"
- name: Install build dependencies
run: |
sudo apt-get update
sudo apt-get install -y python3-dev pkg-config cmake ffmpeg libavcodec-dev libavformat-dev libavdevice-dev libavutil-dev libswscale-dev libswresample-dev libavfilter-dev
- name: Install packaging dependencies
run: |
python -m pip install --upgrade pip
python -m pip install -r packaging-requirements.txt
python -m pip list
- name: Package
run: |
python -m build --sdist
- name: Ensure packaged build runs
run: |
python -m pip install dist/vpdq*.tar.gz
python -c "import vpdq"
python -m pip list
python -c "import vpdq; print(dir(vpdq))"
- name: Publish distribution to Test PyPI
uses: pypa/gh-action-pypi-publish@release/v1
Expand Down
8 changes: 7 additions & 1 deletion vpdq/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ description = "Python bindings for Facebook VPDQ hash"
requires-python = ">= 3.8"
readme = {file = "python/README.md", content-type = "text/markdown"}
license = {file = "LICENSE.txt"}
dynamic = ["version", "scripts", "entry-points"]
dynamic = ["version"]

[tool.scikit-build.metadata.version]
provider = "scikit_build_core.metadata.regex"
Expand All @@ -25,3 +25,9 @@ regex = "^(?P<value>\\S+)$"
[tool.scikit-build]
minimum-version = "0.10"
cmake.build-type = "RelWithDebInfo"

[project.optional-dependencies]
dev = [
"pytest",
"clang-format",
]

0 comments on commit e9ea232

Please sign in to comment.