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

stop pruning datatree_ directory from distribution #8953

Merged
merged 5 commits into from
Apr 23, 2024

Conversation

flamingbear
Copy link
Member

This PR removes the directive that strips out the datatree_ directory from the xarray distribution.

It also cleans a few typing errors and removes exceptions for the datatree_ directory for mypy.

It does NOT remove the exception for pre-commit config.

@flamingbear flamingbear marked this pull request as ready for review April 17, 2024 16:19
@TomNicholas TomNicholas requested a review from keewis April 17, 2024 16:27
Quick fixup of some typing.
Removes mypy exclusions for datatree_
Copy link
Collaborator

@keewis keewis left a comment

Choose a reason for hiding this comment

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

looks fine to me. Just a comment: we probably don't want to include anything other than xarray.datatree_.datatree. I've suggested a change (which I didn't verify) which would only take the old datatree python code.

(note that these are merely suggestions to keep the wheels / source dists as small as possible, so if you have reason against them I'm fine with dropping them)

MANIFEST.in Show resolved Hide resolved
pyproject.toml Outdated Show resolved Hide resolved
xarray/datatree_/docs/source/conf.py Show resolved Hide resolved
Copy link
Contributor

@owenlittlejohns owenlittlejohns left a comment

Choose a reason for hiding this comment

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

I think these changes look good to me - I like the suggestion to only include datatree_/datatree directory with the code in it.

flamingbear and others added 3 commits April 18, 2024 16:10
exclude docs from mypy tests

Co-authored-by: Justus Magin <keewis@users.noreply.github.com>
MANIFEST.in Outdated Show resolved Hide resolved
try again to include just code from datatree_

Co-authored-by: Justus Magin <keewis@users.noreply.github.com>
Copy link
Collaborator

@keewis keewis left a comment

Choose a reason for hiding this comment

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

looks good to me, as well, now.

@keewis keewis added the plan to merge Final call for comments label Apr 21, 2024
@TomNicholas TomNicholas merged commit b003674 into pydata:main Apr 23, 2024
37 checks passed
@flamingbear flamingbear deleted the stop-stripping-datatree_ branch April 23, 2024 15:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
plan to merge Final call for comments
Projects
None yet
Development

Successfully merging this pull request may close these issues.

xarray/datatree_ missing in 2024.2.0 sdist
4 participants