Skip to content

Commit

Permalink
remove setup.py
Browse files Browse the repository at this point in the history
  • Loading branch information
faroit committed Apr 16, 2024
1 parent ffb8460 commit f1d8e60
Show file tree
Hide file tree
Showing 5 changed files with 58 additions and 59 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test_black.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: Lint

Check warning on line 1 in .github/workflows/test_black.yml

View workflow job for this annotation

GitHub Actions / lint

1:1 [document-start] missing document start "---"
on: [push, pull_request] # yamllint disable-line rule:truthy
on: [pull_request] # yamllint disable-line rule:truthy

Check warning on line 2 in .github/workflows/test_black.yml

View workflow job for this annotation

GitHub Actions / lint

2:20 [comments] too few spaces before comment
jobs:
lint:
runs-on: ubuntu-latest
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test_cli.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.9, 3.10]
python-version: [3.9]

# Timeout: https://stackoverflow.com/a/59076067/4521646
timeout-minutes: 10
timeout-minutes: 20
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
Expand Down
2 changes: 1 addition & 1 deletion hubconf.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# `xxx` take waveform inputs and output separated waveforms

# Optional list of dependencies required by the package
dependencies = ['torch', 'numpy']
dependencies = ["torch", "numpy"]

from openunmix import umxse_spec
from openunmix import umxse
Expand Down
64 changes: 54 additions & 10 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,20 +1,59 @@
[build-system]
requires = ["setuptools>=61.0"]
build-backend = "setuptools.build_meta"

[project]
name = "separate_torch"
name = "openunmix"
authors = [
{name = "Fabian-Robert Stöter", email = "mail@faroit.com"},
{name = "Antoine Liutkus", email = "antoine.liutkus@inria.fr"},
]
description = "Reference implementation for music separation"
version = "1.2.1"
dynamic = ["readme"]
version = "1.3.0"
description = "PyTorch-based music source separation toolkit"
readme = "README.md"
license = { text = "MIT" }
requires-python = ">=3.9"
classifiers = [
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Software Development :: Quality Assurance",
]
dependencies = [
"numpy",
"torchaudio>=0.9.0",
"torch>=1.9.0",
"tqdm",
]

[project.optional-dependencies]
asteroid = ["asteroid-filterbanks>=0.3.2"]
stempeg = ["stempeg"]
evaluation = ["musdb>=0.4.0", "museval>=0.4.0"]
tests = [
"pytest",
"musdb>=0.4.0",
"museval>=0.4.0",
"asteroid-filterbanks>=0.3.2",
"onnx",
"tqdm",
]

[build-system]
requires = ["setuptools >=61"]
build-backend = "setuptools.build_meta"
[project.scripts]
umx = "openunmix.cli:separate"

[tool.setuptools.dynamic]
readme = {file = ["LICENSE"]}
[project.urls]
Homepage = "https://github.com/sigsep/open-unmix-pytorch"

[tool.black]
line-length = 120
Expand All @@ -36,8 +75,13 @@ exclude = '''
| \.vscode
| scripts
| notebooks
| separate.egg-info
| \.eggs
)/
)
'''

[tool.setuptools.packages.find]
where = ["openunmix"]

[tool.setuptools.package-data]
openunmix = ["*.txt", "*.rst", "*.json", "*.wav", "*.pt"]
45 changes: 0 additions & 45 deletions setup.py

This file was deleted.

0 comments on commit f1d8e60

Please sign in to comment.