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

Release 0.9.0 #355

Closed
mkniewallner opened this issue May 5, 2023 · 3 comments
Closed

Release 0.9.0 #355

mkniewallner opened this issue May 5, 2023 · 3 comments
Assignees
Labels
Milestone

Comments

@mkniewallner
Copy link
Collaborator

mkniewallner commented May 5, 2023

Changelog for 0.9.0.

What's Changed

Breaking changes

Python 3.7 support dropped

Support for Python 3.7 has been dropped in #352, given that it will reach end of life soon, and that PyPI stats show a really low usage of it. If you are using deptry on Python 3.7, consider upgrading to 3.8, or staying on <0.9.0.

Behaviour changes in package name guessing

In case packages don't provide the Python modules they expose, deptry tries to guess the package name by converting - to _, as a best effort, and warns about it in the logs. Before #337, deptry always guessed the module name, regardless of if the package provided the necessary information or not. Now, it will only guess the module name if the package does not provide the information and no mapping has been provided using the new --package-module-name-map flag (or package_module_name_map option in pyproject.toml).

Handling modules without __init__.py

With #285, deptry will now consider the following things as local modules:

  • directories without __init__.py (and at least one Python file)
  • single Python files

Previously, deptry only considered directories as local modules if an __init__.py was present, and did not account for cases where a single Python file could also be a local module, alongside directories.

Features

Bug Fixes

Miscellaneous

Full Changelog: 0.8.0...0.9.0

@mkniewallner mkniewallner added enhancement New feature or request release and removed enhancement New feature or request labels May 5, 2023
@mkniewallner mkniewallner added this to the 0.9 milestone May 5, 2023
@mkniewallner
Copy link
Collaborator Author

Updated the changelog with the latest PRs that got merged, and added a Breaking changes section. Tell me what you think @fpgmaas. Once we are good with the changelog, I'll tag the new release.

@mkniewallner mkniewallner self-assigned this May 6, 2023
@fpgmaas
Copy link
Owner

fpgmaas commented May 6, 2023

Maybe we can change

Now, it will only guess the module name if the package does not provide the information.

to

Now, it will only guess the module name if the package does not provide the information and no mapping has been provided using the new --package-module-name-map flag (or package_module_name_map option in pyproject.toml).

Otherwise, looks good to me!

@mkniewallner
Copy link
Collaborator Author

Release published:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants