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

One extra to rule them all #1095

Merged
merged 1 commit into from
Feb 8, 2023
Merged

One extra to rule them all #1095

merged 1 commit into from
Feb 8, 2023

Conversation

adamjstewart
Copy link
Collaborator

This adds an "all" extra that allows you to install all optional dependencies. The following:

$ pip install torchgeo[all]

is now equivalent to:

$ pip install torchgeo[datasets,docs,style,tests]

Note that this requires pip 21.2+. Users on older versions of pip can still install torchgeo normally, but won't be able to install torchgeo[all].

See https://hynek.me/articles/python-recursive-optional-dependencies/.

@adamjstewart adamjstewart added this to the 0.4.1 milestone Feb 7, 2023
@github-actions github-actions bot added the dependencies Packaging and dependencies label Feb 7, 2023
@calebrob6
Copy link
Member

neat!

@calebrob6 calebrob6 merged commit 2d9c74a into main Feb 8, 2023
@calebrob6 calebrob6 deleted the extras/all branch February 8, 2023 06:38
calebrob6 pushed a commit that referenced this pull request Apr 10, 2023
yichiac pushed a commit to yichiac/torchgeo that referenced this pull request Apr 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Packaging and dependencies
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants