diff --git a/.github/workflows/tag_and_publish.yml b/.github/workflows/tag_and_publish.yml index 21dda8a..7135896 100644 --- a/.github/workflows/tag_and_publish.yml +++ b/.github/workflows/tag_and_publish.yml @@ -117,3 +117,16 @@ jobs: echo ${{ secrets.GITHUB_TOKEN }} | singularity remote login -u ${{ github.actor }} --password-stdin oras://ghcr.io singularity push build/container.sif oras://ghcr.io/${GITHUB_REPOSITORY}:${{ needs.tag.outputs.new_version }} singularity push build/container.sif oras://ghcr.io/${GITHUB_REPOSITORY}:latest + - name: Set up Python 3.10 + uses: actions/setup-python@v5 + with: + python-version: '3.10' + - name: Install dependencies + run: | + pip install --upgrade setuptools wheel twine build + python -m build + twine check dist/* + - name: Publish on PyPI + uses: pypa/gh-action-pypi-publish@release/v1 + with: + password: ${{ secrets.AIND_PYPI_TOKEN }} diff --git a/pyproject.toml b/pyproject.toml index b8f5bab..f7c148f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -16,7 +16,7 @@ classifiers = [ readme = "README.md" dynamic = ["version"] -dependencies = ['aind-data-transformation>=0.0.18'] +dependencies = ['aind-data-transformation>=0.1.0'] [project.optional-dependencies] dev = ['black', 'coverage', 'flake8', 'interrogate', 'isort', 'Sphinx', 'furo'] diff --git a/scripts/singularity_build.def b/scripts/singularity_build.def index aa03a09..c779534 100644 --- a/scripts/singularity_build.def +++ b/scripts/singularity_build.def @@ -1,5 +1,5 @@ Bootstrap: docker -From: python:3.10-bullseye +From: croncorp/python-ffmpeg:3.11.4-slim-bullseye Stage: build %setup @@ -7,7 +7,6 @@ Stage: build cp -R . ${SINGULARITY_ROOTFS}/aind-behavior-video-transformation %post - apt update && apt install -y ffmpeg && rm -rf /var/lib/apt/lists/* cd ${SINGULARITY_ROOTFS}/aind-behavior-video-transformation - pip install .[ephys] --no-cache-dir + pip install . --no-cache-dir rm -rf ${SINGULARITY_ROOTFS}/aind-behavior-video-transformation