~boringcactus/vidslice

b5bedf7c8bf9ece079619e30f9b64a93610ff577 — Melody Horn 1 year, 8 months ago 326cbf5
set up for sourcehut builds
6 files changed, 14 insertions(+), 54 deletions(-)

A .build.yml
D .travis.yml
M requirements.txt
D scripts/setup_linux.sh
D scripts/setup_osx.sh
D scripts/setup_windows.sh
A .build.yml => .build.yml +14 -0
@@ 0,0 1,14 @@
image: alpine/latest
packages:
  - py3-pip
sources:
  - https://git.sr.ht/~boringcactus/vidslice
tasks:
  - install: |
      cd vidslice
      python3 -m pip install -r requirements.txt
  - build: |
      cd vidslice
      python3 -m zipapp vidslice -o vidslice-dev.pyw -c
artifacts:
  - vidslice/vidslice-dev.pyw

D .travis.yml => .travis.yml +0 -46
@@ 1,46 0,0 @@
language: shell
if: tag IS present OR branch = build-fuckery
dist: bionic
os:
  - linux
  - osx
  - windows
addons:
  apt:
    packages:
      - python3.7
      - python3.7-dev
      - python3-pip
      - python3-setuptools
      - python3-tk
  homebrew:
    packages:
      - python@3.7
before_install:
  - chmod +x scripts/setup_${TRAVIS_OS_NAME}.sh
  - . scripts/setup_${TRAVIS_OS_NAME}.sh
install:
  - which python && export PYTHON=python || echo whatever
  - which python3 && export PYTHON=python3 || echo whatever
  - which python3.7 && export PYTHON=python3.7 || echo whatever
  - echo ${PYTHON}
  - ${PYTHON} -m pip install -r requirements.txt
script:
  - ${PYTHON} setup.py build
before_deploy:
  - ${PYTHON} setup.py build
  - pushd build
  - mv * vidslice
  - zip vidslice-${TRAVIS_OS_NAME}.zip -r vidslice || powershell Compress-Archive -Path vidslice -DestinationPath vidslice-${TRAVIS_OS_NAME}.zip
  - ls
  - popd
deploy:
  skip_cleanup: true
  provider: releases
  api_key:
    secure: "MEE1jkxa+YX50iYLrDHUUdW4anlDwhgT41quWqCCM2qRg3iY4qaN/BK5Q4XSd+h8RCf2gDRAU3wP6jA6cUrxFH6Nw/hszgvXN90A2Lhs2EG5HQ4bVOqzvsO13Zf8/Ha0PJyTXFSnRCdGUpSggcuJ3zbhSoU5xNO+Ch7WWcGraYuoCGS0Xl24LvQzWCb400C1tifx9ITDEinPYHR7objlRmmitvy6jhWmfiP2zeefTXAzLvYWhR3DpvsuzriVR79AVriRwnFP1yjpjfpvxnjqx+3GJEYmQy1SmaiQa8f9jK+agLyszefRoyquMu6j2pYTw9CPp7LC1WyVFHV1k0d74l2v9Yr2sVDqx6i131+9bhSD9D0OdL8A1RuPUlJUWy0FncfRUj3+rL3aCf+qO2kYS1gGeTD3A9RuaMYFsrrNqDtsLA1reF0nQ3eGqJ3HIaSyTFPt8EJ5bG8H2qErnGRz5E/TEDoZRY5rIyKwnIaPzoMLyRJGn7I/5ufvb0B06BNfhQLS4HrjqVTYFjM2ulbwTPLxmZH60hw/SAWpWFFhdbAWpNn7ezV9IBQEb2N+ovAPUgTbcWio1FYSZyB81NVgfL7V/aGIEmB0KNYvB6JL6VEaGV1BCf63X/5Nl7qxXZRBlGjwE893NKfNuxCjU0QC8voA3DwUXYmLr69PusyemtY="
  file_glob: true
  file: build/*.zip
  on:
    repo: boringcactus/vidslice
    tags: true

M requirements.txt => requirements.txt +0 -1
@@ 1,1 0,0 @@
cx_Freeze

D scripts/setup_linux.sh => scripts/setup_linux.sh +0 -1
@@ 1,1 0,0 @@
#!/usr/bin/env bash

D scripts/setup_osx.sh => scripts/setup_osx.sh +0 -1
@@ 1,1 0,0 @@
#!/usr/bin/env bash

D scripts/setup_windows.sh => scripts/setup_windows.sh +0 -5
@@ 1,5 0,0 @@
#!/usr/bin/env bash
choco install python --version 3.7.9 -y
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
export PATH=/C/Python37:$PATH
python get-pip.py