-
-
Notifications
You must be signed in to change notification settings - Fork 90
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Initial attempt at configuring conda package
- Loading branch information
Showing
5 changed files
with
101 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
name: publish-to-conda | ||
|
||
on: | ||
release: | ||
types: [published] | ||
|
||
jobs: | ||
setup: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Setting up anaconda for channels | ||
uses: s-weigand/setup-conda@v1 | ||
with: | ||
update-conda: true | ||
conda-channels: anaconda, conda-forge | ||
publish: | ||
runs-on: ubuntu-latest | ||
needs: setup | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Publish to anaconda.org | ||
uses: fcakyon/[email protected] | ||
with: | ||
subdir: 'conda' | ||
anacondatoken: ${{ secrets.ANACONDA_TOKEN }} | ||
platforms: 'win osx linux' |
21 changes: 4 additions & 17 deletions
21
.github/workflows/publish.yml → .github/workflows/publish-to-docker.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
name: publish-to-pypi | ||
|
||
on: [push, workflow_dispatch] | ||
|
||
jobs: | ||
# Auto-publish when version is increased | ||
publish-pypi: | ||
# Only publish on `main` branch | ||
if: github.ref == 'refs/heads/main' | ||
runs-on: ubuntu-latest | ||
permissions: # Don't forget permissions | ||
contents: write | ||
|
||
steps: | ||
- uses: etils-actions/pypi-auto-publish@v1 | ||
with: | ||
pypi-token: ${{ secrets.PYPI_API_TOKEN }} | ||
gh-token: ${{ secrets.GITHUB_TOKEN }} | ||
parse-changelog: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
{% set name = "audio-separator" %} | ||
{% set version = "0.9.6"%} | ||
|
||
package: | ||
name: "{{ name|lower }}" | ||
version: "{{ version }}" | ||
|
||
source: | ||
path: .. | ||
|
||
build: | ||
number: 0 | ||
script: "{{ PYTHON }} -m pip install . -vv" | ||
|
||
requirements: | ||
host: | ||
- python>=3.9 | ||
- pip | ||
run: | ||
- python>=3.9 | ||
|
||
about: | ||
home: "https://github.com/karaokenerds/python-audio-separator" | ||
license: "MIT" | ||
license_family: MIT | ||
summary: "Easy to use vocal separation on CLI or as a python package, using the amazing MDX-Net models from UVR." | ||
description: | | ||
Audio Separator is a Python package that allows you to separate an audio file into two stems, primary and secondary, using a model in the ONNX format trained by @Anjok07 for use with UVR (https://github.com/Anjok07/ultimatevocalremovergui). | ||
doc_url: "https://github.com/karaokenerds/python-audio-separator" | ||
dev_url: "https://github.com/karaokenerds/python-audio-separator" | ||
|
||
extra: | ||
recipe-maintainers: | ||
- 757713 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
name: audio-separator | ||
channels: | ||
- pytorch | ||
- conda-forge | ||
# We want to have a reproducible setup, so we don't want default channels, | ||
# which may be different for different users. All required channels should | ||
# be listed explicitly here. | ||
- nodefaults | ||
dependencies: | ||
- python >=3.9 | ||
- mamba | ||
- pip # pip must be mentioned explicitly, or conda-lock will fail | ||
- poetry | ||
- pytorch | ||
- torchaudio | ||
- onnxruntime | ||
- ffmpeg |