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

Update dependencies to support Python 3.10 and 3.11 #197

Merged
merged 5 commits into from
Oct 9, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
16 changes: 10 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,19 @@ jobs:
python-version: 3.8
- os: ubuntu-20.04
python-version: 3.9
- os: ubuntu-20.04
python-version: "3.10"
- os: ubuntu-20.04
python-version: "3.11"
- os: macos-latest
python-version: 3.9
- os: windows-latest
python-version: 3.9

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install OS dependencies
Expand All @@ -47,16 +51,16 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -U numpy
pip install -U numpy wheel
pip install -r requirements.txt
pip install -e ".[dev,lint,test]"

# Install NSF implementations for PWG
pip install git+https://github.com/nnsvs/ParallelWaveGAN@nnsvs
pip install git+https://github.com/nnsvs/ParallelWaveGAN@nnsvs --no-build-isolation
# Install hn-uSFGAN
pip install git+https://github.com/nnsvs/HN-UnifiedSourceFilterGAN@nnsvs
pip install git+https://github.com/nnsvs/HN-UnifiedSourceFilterGAN@nnsvs --no-build-isolation
# Install SiFi-GAN
pip install git+https://github.com/nnsvs/SiFiGAN@nnsvs
pip install git+https://github.com/nnsvs/SiFiGAN@nnsvs --no-build-isolation

- name: Lint with pysen
run: |
Expand Down
7 changes: 4 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
[build-system]
requires = [
"wheel",
"setuptools",
"cython>=0.28.0",
"numpy<v1.20.0",
"scipy",
"cmake",
"numpy>=1.25.0; python_version>='3.9'",
"oldest-supported-numpy; python_version<'3.9'",
]

build-backend = "setuptools.build_meta"

[tool.pysen]
version = "0.10"
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"cython",
"torch >= 1.6.0",
"torchaudio",
"hydra-core >= 1.1.0, < 1.2.0",
"hydra-core >= 1.1.0",
"hydra_colorlog >= 1.1.0",
"librosa >= 0.7.0",
"pysptk",
Expand Down