Skip to content

Commit

Permalink
build: updates build scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
jtyoung84 authored and galenlynch committed Oct 26, 2024
1 parent 3d8f769 commit f8cf809
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 4 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/tag_and_publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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']
Expand Down
5 changes: 2 additions & 3 deletions scripts/singularity_build.def
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
Bootstrap: docker
From: python:3.10-bullseye
From: croncorp/python-ffmpeg:3.11.4-slim-bullseye
Stage: build

%setup
# Copy project directory into container
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

0 comments on commit f8cf809

Please sign in to comment.