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 test requirements and script #3487

Closed
wants to merge 7 commits 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
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ By [@aliabid94](https://github.com/aliabid94) in [PR 3466](https://github.com/gr
- Pinned `pyright==1.1.298` for stability by [@abidlabs](https://github.com/abidlabs) in [PR 3475](https://github.com/gradio-app/gradio/pull/3475)
- Removed `IOComponent.add_interactive_to_config()` by [@space-nuko](https://github.com/space-nuko) in [PR 3476](https://github.com/gradio-app/gradio/pull/3476)
- Removed `IOComponent.generate_sample()` by [@space-nuko](https://github.com/space-nuko) in [PR 3475](https://github.com/gradio-app/gradio/pull/3483)
- Updated test `requirements.txt`/script by [@space-nuko](https://github.com/space-nuko) in [PR 3487](https://github.com/gradio-app/gradio/pull/3487)

## Breaking Changes:

Expand Down
1 change: 1 addition & 0 deletions gradio/components.py
Original file line number Diff line number Diff line change
Expand Up @@ -1793,6 +1793,7 @@ def _segment_by_slic(self, x):
compactness=10,
sigma=1,
start_label=1,
channel_axis=None
)
except TypeError: # For skimage 0.16 and older
segments_slic = slic(
Expand Down
3 changes: 3 additions & 0 deletions pytest.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[pytest]
minversion = 7.0
testpaths = test
3 changes: 2 additions & 1 deletion scripts/create_test_requirements.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ source scripts/helpers.sh
pip_required

echo "Creating test requirements...
It's recommended to run this script from a Unix-like system in Python 3.7 (or higher) environment."
It's recommended to run this script in a Python 3.7 (or higher) environment."
cd test
pip install --upgrade pip-tools
rm requirements.txt
pip-compile --output-file requirements.txt
3 changes: 2 additions & 1 deletion test/requirements.in
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,5 @@ respx
fastapi>=0.87.0
altair
vega_datasets
tqdm
tqdm
pywin32==305; sys_platform == 'win32'
Loading