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

switch to pyproject.toml #490

Merged
merged 3 commits into from
Apr 8, 2022
Merged

switch to pyproject.toml #490

merged 3 commits into from
Apr 8, 2022

Conversation

vincentsarago
Copy link
Member

@vincentsarago vincentsarago commented Apr 8, 2022

This PR does:

  • switch to pyproject.toml + flit for packaging
  • remove tox
  • general repo cleanup (move docs in /docs)
  • fix some typing issues

indexes=asset_indexes.get(asset, kwargs.pop("indexes", None)),
expression=asset_expression.get(asset),
indexes=asset_indexes.get(asset, kwargs.pop("indexes", None)), # type: ignore
expression=asset_expression.get(asset), # type: ignore
Copy link
Member Author

Choose a reason for hiding this comment

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

I don't fully understand why mypy doesn't pickup asset_indexes = asset_indexes or {} at L440 🤷‍♂️

@@ -416,7 +416,7 @@ def part(
**kwargs,
)

if expression:
if expression and indexes:
Copy link
Member Author

Choose a reason for hiding this comment

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

indexes will always be defined when using expression because we create indexes from expression at L402. adding and indexes just makes mypy happy

band_names: Optional[List[str]] = None
crs: Optional[CRS]
bounds: Optional[BBox]
band_names: List[str]
Copy link
Member Author

Choose a reason for hiding this comment

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

makes mypy happy

@vincentsarago
Copy link
Member Author

Using my admin power to merge this PR. Comment are still welcome but so far we didn't received any negative feedback for moving rio-cogeo/rio-viz to pyproject.toml/flit.

Typing issue could be resolved on other PR

@vincentsarago vincentsarago merged commit e8dc2df into master Apr 8, 2022
@vincentsarago vincentsarago deleted the switchToPyproject branch April 8, 2022 08:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant