Skip to content
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

Make a shared requirements.txt for tests & build #105

Closed
wants to merge 1 commit into from
Closed
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
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
- name: Install python dependencies
run: |
python -m pip install --upgrade --user pip --quiet
python -m pip install -r .github/workflows/test_requirements.txt
python -m pip install -r .github/workflows/test_requirements.txt -r requirements.txt
python --version
pip --version
python -m pip list
Expand Down
5 changes: 0 additions & 5 deletions .github/workflows/test_requirements.txt
Original file line number Diff line number Diff line change
@@ -1,15 +1,10 @@
numpy>=1.14,<1.18
scipy>=1.5.2
torch==1.7.1
torchaudio>=0.7.0
audiomentations>=0.11.0
audioread>=2.1.8
ffmpeg-python
julius>=0.2.3,<0.3
librosa>=0.6.1,<=0.8
py-cpuinfo>=7.0.0
pytest==5.3.4
pytest-cov==2.8.1
coverage==4.5.2
PyYAML>=5.3.1
torch-pitch-shift>=1.2.0
5 changes: 5 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
julius>=0.2.3,<0.3
librosa>=0.6.0
torch>=1.7.0
torchaudio>=0.7.0
torch-pitch-shift>=1.2.0
11 changes: 4 additions & 7 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ def find_version(*file_paths):
raise RuntimeError("Unable to find version string.")


with open("requirements.txt", "r") as f:
requirements = f.read().split("\n")

setup(
name="torch-audiomentations",
version=find_version("torch_audiomentations", "__init__.py"),
Expand All @@ -36,13 +39,7 @@ def find_version(*file_paths):
packages=find_packages(
exclude=["build", "scripts", "dist", "images", "test_fixtures", "tests"]
),
install_requires=[
"julius>=0.2.3,<0.3",
"librosa>=0.6.0",
"torch>=1.7.0",
"torchaudio>=0.7.0",
"torch-pitch-shift>=1.2.0",
],
install_requires=requirements,
extras_require={"extras": ["PyYAML"]},
python_requires=">=3.6,<3.9.6",
classifiers=[
Expand Down