Skip to content

Migrated from setup.py and setup.cfg to pyproject.toml with uv #86

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 11 additions & 13 deletions .github/workflows/test_docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,27 +23,25 @@ jobs:
timeout-minutes: 20
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install uv
uses: astral-sh/setup-uv@v6

- name: Install git
run: |
sudo apt update
sudo apt install git-core ffmpeg
sudo apt-get update
sudo apt-get install -y git-core ffmpeg
- name: Install python dependencies
run: |
python -m pip install --upgrade --user pip --quiet
python -m pip install numpy Cython --upgrade-strategy only-if-needed --quiet
python --version
pip --version
python -m pip list
uv venv --python ${{ matrix.python-version }}
uv pip install numpy Cython --quiet
uv run python --version
uv pip list
shell: bash

- name: Build the docs
run: |
pip install -e .[docs]
uv pip install --group docs
source .venv/bin/activate
cd docs
make html
touch html/.nojekyll # prevents use jekyll to build doc
Expand Down Expand Up @@ -72,4 +70,4 @@ jobs:
branch: gh-pages
directory: gh-pages
github_token: ${{ secrets.GITHUB_TOKEN }}
force: true
force: true
11 changes: 6 additions & 5 deletions .github/workflows/test_unittests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,18 +26,19 @@ jobs:
auto-update-conda: true
auto-activate-base: false
python-version: ${{ matrix.python-version }}
- name: Install uv
uses: astral-sh/setup-uv@v6
- name: Create data
run: |
conda install -c conda-forge ffmpeg
bash prepare_tests.sh
- name: Install dependencies
run: |
python -m pip install -e '.[tests]'
python --version
pip --version
python -m pip list
uv sync --python ${{ matrix.python-version }} --group tests
uv run python --version
uv pip list
- name: Conda list
run: conda list
- name: Run tests
run: |
py.test tests -v
uv run pytest tests -v
1 change: 1 addition & 0 deletions musdb/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
import os
import tempfile

__version__ = "0.4.3"

class DB(object):
"""
Expand Down
1 change: 0 additions & 1 deletion musdb/version.py

This file was deleted.

49 changes: 49 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
[project]
name = "musdb"
dynamic = ["version"]
description = "Python parser for the SIGSEP MUSDB18 dataset"
urls = {Repository = "https://github.com/sigsep/sigsep-mus-db"}
authors = [
{name = "Fabian-Robert", email = "mail@faroit.com"},
{name = "Stoeter" }
]
license = "MIT"
readme = {file = "README.md", content-type = "text/markdown"}
dependencies = [
"numpy>=1.7,<3.0",
"stempeg>=0.2.4",
"pyaml",
"tqdm"
]
classifiers = [
"Development Status :: 4 - Beta",
"Environment :: Console",
"Environment :: Plugins",
"Intended Audience :: Telecommunications Industry",
"Intended Audience :: Science/Research",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Topic :: Multimedia :: Sound/Audio :: Analysis",
"Topic :: Multimedia :: Sound/Audio :: Sound Synthesis",
]
scripts = {musdbconvert = "musdb.tools:musdb_convert"}
requires-python = ">=3.8"

[dependency-groups]
dev = ["check-manifest"]
tests = ["pytest"]
docs = ["sphinx", "sphinx_rtd_theme", "recommonmark"]

[tool.uv.sources]


[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"

[tool.hatch.version]
path = "musdb/__init__.py"

[tool.pytest.ini_options]
norecursedirs = ".env\\* .cache .git examples docs"
addopts = "--doctest-modules"
9 changes: 0 additions & 9 deletions setup.cfg

This file was deleted.

61 changes: 0 additions & 61 deletions setup.py

This file was deleted.

Loading
Loading