-
Notifications
You must be signed in to change notification settings - Fork 145
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* bump version to 0.1.7; update metadata * add tox.ini * remove py2.7 dependency, future * black and other linting * tox is local; pytest on travis * update log * update readme
- Loading branch information
1 parent
8aaf4fc
commit 4e13983
Showing
12 changed files
with
56 additions
and
46 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
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
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
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,24 +1,19 @@ | ||
from setuptools import setup | ||
|
||
setup(name='kapre', | ||
version='0.1.6', | ||
version='0.1.7', | ||
description='Kapre: Keras Audio Preprocessors. Keras layers for audio pre-processing in deep learning', | ||
author='Keunwoo Choi', | ||
url='http://github.com/keunwoochoi/kapre/', | ||
# download_url='http://github.com/keunwoochoi/kapre/releases', # TODO | ||
author_email='[email protected]', | ||
author_email='[email protected]', | ||
license='MIT', | ||
packages=['kapre'], | ||
package_data={'': ['tests/speech_test_file.npz', 'tests/test_audio_mel_g0.npy', 'tests/test_audio_stft_g0.npy']}, | ||
package_data={'kapre': ['tests/speech_test_file.npz', 'tests/test_audio_mel_g0.npy', 'tests/test_audio_stft_g0.npy']}, | ||
include_package_data=True, | ||
install_requires=[ | ||
'numpy >= 1.8.0', | ||
'librosa >= 0.5', | ||
'tensorflow >= 1.15', | ||
'future' | ||
], | ||
extras_require={ | ||
'tests': ['tensorflow'], | ||
}, | ||
keywords='audio music deep learning keras', | ||
zip_safe=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
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,40 @@ | ||
[tox] | ||
envlist = py37,python3.6,black | ||
skipsdist = False | ||
usedevelop = True | ||
indexserver = | ||
spotify = https://artifactory.spotify.net/artifactory/api/pypi/pypi/simple | ||
|
||
[testenv] | ||
whitelist_externals = python | ||
|
||
[testenv:py37] | ||
basepython = python3.7 | ||
deps = | ||
pytest | ||
commands = | ||
py.test {posargs} | ||
|
||
[testenv:py36] | ||
basepython = python3.6 | ||
deps = | ||
pytest | ||
commands = | ||
py.test {posargs} | ||
|
||
[testenv:black] | ||
; "black" is a code formatter, much like gofmt. It requires 3.6 or higher. | ||
; Tingle has 3.6 available to it; but feel free to uncomment the line | ||
; `ignore_outcome` if it fails. Docs: https://github.com/ambv/black | ||
;ignore_outcome = true | ||
basepython = python3.7 | ||
deps = black | ||
skip_install = true | ||
commands = | ||
; remove the '--diff' and '--check' flags to automatically write out corrections | ||
black --line-length 100 --diff --check --skip-string-normalization --target-version=py37 {toxinidir}/kapre | ||
black --line-length 100 --diff --check --skip-string-normalization --target-version=py37 {toxinidir}/tests | ||
|
||
; The sections defined below are for configuring specific tools that are used | ||
; in the above testenvs. Usually, if the tool is ran directly/outside of tox, | ||
; i.e. `(env) $ pytest`, it will still pick up this configuration. |