Skip to content

Commit

Permalink
Merge pull request #29 from jhj0517/fix/compatibility
Browse files Browse the repository at this point in the history
Migrate some dependency
  • Loading branch information
bmcfee authored Sep 30, 2024
2 parents 10634aa + 04a09d8 commit f24b0f9
Show file tree
Hide file tree
Showing 5 changed files with 85 additions and 49 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/ci-minimal.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: CI-minimal

on:
push:
branches:
- master
pull_request:
branches:
- master

jobs:
build:

runs-on: ubuntu-20.04
strategy:
matrix:
python: ["3.6", "3.7", "3.8", "3.9", "3.10", "3.11", "3.12"]

steps:
- uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}

- name: Install rubberband-cli and ffmpeg
run: sudo apt-get update && sudo apt-get install -y rubberband-cli ffmpeg

- name: Install dependencies
run: pip install -e .[tests]

- name: Run test
run: python -m pytest tests

2 changes: 1 addition & 1 deletion .travis_dependencies.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ if [ ! -d "$src" ]; then

conda install -c conda-forge ffmpeg

pip install pysoundfile
pip install soundfile
pip install python-coveralls
pip install pytest-cov
source deactivate
Expand Down
2 changes: 1 addition & 1 deletion pyrubberband/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
# CREATED:2015-03-02 11:50:46 by Brian McFee <brian.mcfee@nyu.edu>
'''A python wrapper for rubberband'''

from .pyrb import *
from .version import version as __version__
from .pyrb import *
46 changes: 46 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,2 +1,48 @@
[tool:pytest]
addopts = --ignore docs/conf.py --cov-report term-missing --cov pyrubberband


[metadata]
name = pyrubberband
author = Brian McFee
author_email = brian.mcfee@nyu.edu
version = attr: pyrubberband.version.version
url = http://github.com/bmcfee/pyrubberband
download_url = http://github.com/bmcfee/pyrubberband/releases
description = Python module to wrap rubberband
long_description = A python module to wrap rubberband.
keywords = audio, music, sound
license = ISC
license_files = LICENSE
classifiers =
License :: OSI Approved :: ISC License (ISCL)
Programming Language :: Python
Development Status :: 3 - Alpha
Intended Audience :: Developers
Topic :: Multimedia :: Sound/Audio :: Analysis
Programming Language :: Python :: 3
Programming Language :: Python :: 3.6
Programming Language :: Python :: 3.7
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


[options]
packages = find:
install_package_data = True
python_requires = >=3.6
install_requires =
numpy
six
soundfile >= 0.12.1

[options.extras_require]
docs =
numpydoc
tests =
pytest
pytest-cov
contextlib2
50 changes: 3 additions & 47 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,49 +1,5 @@
from setuptools import setup, find_packages
from setuptools import setup

import imp
if __name__ == '__main__':
setup()

version = imp.load_source('pyrubberband.version', 'pyrubberband/version.py')

setup(
name='pyrubberband',
version=version.version,
description='Python module to wrap rubberband',
author='Brian McFee',
author_email='brian.mcfee@nyu.edu',
url='http://github.com/bmcfee/pyrubberband',
download_url='http://github.com/bmcfee/pyrubberband/releases',
packages=find_packages(),
long_description="""A python module to wrap rubberband.""",
classifiers=[
"License :: OSI Approved :: ISC License (ISCL)",
"Programming Language :: Python",
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"Topic :: Multimedia :: Sound/Audio :: Analysis",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
],
keywords='audio music sound',
license='ISC',
install_requires=[
'numpy',
'six',
'soundfile>=0.8.0',
],
extras_require={
'docs': ['numpydoc'],
'tests': [
'pytest',
'pytest-cov',
'contextlib2',
]
},
test_require=[
'pytest',
'pytest-cov',
'contextlib2',
]
)

0 comments on commit f24b0f9

Please sign in to comment.