Skip to content
This repository has been archived by the owner on Dec 5, 2024. It is now read-only.

Make this repo installable with all python versions #53

Merged
merged 8 commits into from
Sep 1, 2022

Conversation

winfried-ripken
Copy link
Contributor

Description

Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context.
List any dependencies that are required for this change.

Fixes # issue

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update
  • Refactoring including code style reformatting
  • Other (please describe):

Checklist:

  • I have read the contributing guideline doc (external contributors only)
  • Lint and unit tests pass locally with my changes
  • I have kept the PR small so that it can be easily reviewed
  • I have made corresponding changes to the documentation
  • I have added tests that prove my fix is effective or that my feature works
  • All dependency changes have been reflected in the pip requirement files.

requirements.dev.in Outdated Show resolved Hide resolved
@@ -11,9 +11,9 @@
def squirrel_drivers() -> List[Type[Driver]]:
"""Custom drivers added by this package."""
import squirrel_datasets_core.datasets as ds
from squirrel_datasets_core.driver.hub import HubDriver
from squirrel_datasets_core.driver.huggingface import HuggingfaceDriver
from squirrel_datasets_core.driver.torchvision import TorchvisionDriver
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I expect this line to fail when torchvision is not installed.

examples/02.Catalog.ipynb Outdated Show resolved Hide resolved
Copy link
Contributor

@AlpAribal AlpAribal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@@ -25,7 +25,7 @@
"\n",
" restart_colab = False\n",
"except:\n",
" !pip install -q --ignore-requires-python --upgrade squirrel-datasets-core matplotlib # noqa\n",
" !pip install -q --ignore-requires-python --upgrade \"squirrel-datasets-core[torchvision]\" matplotlib # noqa\n",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Out of curiosity: Are quotes necessary?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It works both ways

@winfried-ripken winfried-ripken merged commit 800dd70 into main Sep 1, 2022
@winfried-ripken winfried-ripken deleted the winnie-remove-python-pin branch September 1, 2022 10:59
@github-actions github-actions bot locked and limited conversation to collaborators Sep 1, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants