mirror of
https://github.com/YuzuZensai/spleeter.git
synced 2026-01-31 14:58:23 +00:00
👷 ✨ add conda CI
This commit is contained in:
28
.github/workflows/conda.yml
vendored
Normal file
28
.github/workflows/conda.yml
vendored
Normal file
@@ -0,0 +1,28 @@
|
|||||||
|
name: pypi
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
env:
|
||||||
|
ANACONDA_USERNAME: ${{ secrets.ANACONDA_USERNAME }}
|
||||||
|
ANACONDA_PASSWORD: ${{ secrets.ANACONDA_PASSWORD }}
|
||||||
|
jobs:
|
||||||
|
package-and-deploy:
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
platform: [cpu, gpu]
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- name: Setup conda
|
||||||
|
uses: s-weigand/setup-conda@v1
|
||||||
|
with:
|
||||||
|
update-conda: true
|
||||||
|
python-version: ${{ matrix.python-version }}
|
||||||
|
conda-channels: anaconda, conda-forge
|
||||||
|
- name: Setup conda-build
|
||||||
|
run: conda install conda-build
|
||||||
|
- name: Setup anaconda-client
|
||||||
|
run: conda install anaconda-client
|
||||||
|
- name: Build package
|
||||||
|
run: cd conda/cpu && conda-build spleeter
|
||||||
2
conda/cpu/bld.bat
Normal file
2
conda/cpu/bld.bat
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
"%PYTHON%" setup.py install
|
||||||
|
if errorlevel 1 exit 1
|
||||||
3
conda/cpu/build.sh
Normal file
3
conda/cpu/build.sh
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
$PYTHON setup.py install
|
||||||
51
conda/cpu/meta.yaml
Normal file
51
conda/cpu/meta.yaml
Normal file
@@ -0,0 +1,51 @@
|
|||||||
|
{% set name = "spleeter" %}
|
||||||
|
{% set version = "2.0.2" %}
|
||||||
|
|
||||||
|
package:
|
||||||
|
name: {{ name|lower }}
|
||||||
|
version: {{ version }}
|
||||||
|
|
||||||
|
source:
|
||||||
|
- url: https://pypi.io/packages/source/{{ name[0] }}/{{ name }}/{{ name }}-{{ version }}.tar.gz
|
||||||
|
sha256: ecd3518a98f9978b9088d1cb2ef98f766401fd9007c2bf72a34e5b5bc5a6fdc3
|
||||||
|
|
||||||
|
build:
|
||||||
|
number: 0
|
||||||
|
script: {{ PYTHON }} -m pip install . -vv
|
||||||
|
skip: true # [py<37 or py>38 or osx or win]
|
||||||
|
entry_points:
|
||||||
|
- spleeter = spleeter.__main__:entrypoint
|
||||||
|
|
||||||
|
requirements:
|
||||||
|
host:
|
||||||
|
- python {{ python }}
|
||||||
|
- pip
|
||||||
|
run:
|
||||||
|
- python {{ python }}
|
||||||
|
- tensorflow ==2.3.0
|
||||||
|
- pandas
|
||||||
|
- ffmpeg-python
|
||||||
|
- norbert
|
||||||
|
- librosa
|
||||||
|
|
||||||
|
test:
|
||||||
|
imports:
|
||||||
|
- spleeter
|
||||||
|
- spleeter.commands
|
||||||
|
- spleeter.model
|
||||||
|
- spleeter.utils
|
||||||
|
- spleeter.separator
|
||||||
|
|
||||||
|
about:
|
||||||
|
home: https://github.com/deezer/spleeter
|
||||||
|
license: MIT
|
||||||
|
license_family: MIT
|
||||||
|
license_file: LICENSE
|
||||||
|
summary: The Deezer source separation library with pretrained models based on tensorflow.
|
||||||
|
doc_url: https://github.com/deezer/spleeter/wiki
|
||||||
|
dev_url: https://github.com/deezer/spleeter
|
||||||
|
|
||||||
|
extra:
|
||||||
|
recipe-maintainers:
|
||||||
|
- Faylixe
|
||||||
|
- romi1502
|
||||||
Reference in New Issue
Block a user