-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #29 from jhj0517/fix/compatibility
Migrate some dependency
- Loading branch information
Showing
5 changed files
with
85 additions
and
49 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,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 | ||
|
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
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 |
---|---|---|
@@ -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 |
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 |
---|---|---|
@@ -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', | ||
] | ||
) |