From 522c86e3ba0757a4add44c8aa3656d7403ff9384 Mon Sep 17 00:00:00 2001 From: Faylixe Date: Fri, 11 Dec 2020 12:57:38 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=B7=20=F0=9F=9A=80=20add=20conda=20CI?= =?UTF-8?q?=20for=20GPU?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/conda.yml | 6 +-- conda/spleeter-gpu/meta.yaml | 52 ++++++++++++++++++++++++++ conda/spleeter/conda_build_config.yaml | 3 -- 3 files changed, 54 insertions(+), 7 deletions(-) create mode 100644 conda/spleeter-gpu/meta.yaml delete mode 100644 conda/spleeter/conda_build_config.yaml diff --git a/.github/workflows/conda.yml b/.github/workflows/conda.yml index e13d9b3..6e97522 100644 --- a/.github/workflows/conda.yml +++ b/.github/workflows/conda.yml @@ -1,8 +1,6 @@ name: conda on: - push: - branches: - - master + - workflow_dispatch env: ANACONDA_USERNAME: ${{ secrets.ANACONDA_USERNAME }} ANACONDA_PASSWORD: ${{ secrets.ANACONDA_PASSWORD }} @@ -11,7 +9,7 @@ jobs: strategy: matrix: python: [3.7, 3.8] - package: [spleeter] + package: [spleeter, spleeter-gpu] runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 diff --git a/conda/spleeter-gpu/meta.yaml b/conda/spleeter-gpu/meta.yaml new file mode 100644 index 0000000..4740dd3 --- /dev/null +++ b/conda/spleeter-gpu/meta.yaml @@ -0,0 +1,52 @@ +{% set name = "spleeter-gpu" %} +{% 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 # [osx] + entry_points: + - spleeter = spleeter.__main__:entrypoint + +requirements: + host: + - python {{ python }} + - pip + run: + - python {{ python }} + - tensorflow-gpu ==2.2.0 # [linux] + - tensorflow-gpu ==23.0 # [win] + - 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 \ No newline at end of file diff --git a/conda/spleeter/conda_build_config.yaml b/conda/spleeter/conda_build_config.yaml deleted file mode 100644 index b441c3a..0000000 --- a/conda/spleeter/conda_build_config.yaml +++ /dev/null @@ -1,3 +0,0 @@ -python: - - 3.7 - - 3.8 \ No newline at end of file