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

Add Deprecation Warning for Namespace Change #805

Merged
merged 5 commits into from Jan 8, 2021

Conversation

SimonBoothroyd
Copy link
Contributor

openforcefield/__init__.py Outdated Show resolved Hide resolved
@codecov
Copy link

codecov bot commented Jan 6, 2021

Codecov Report

Merging #805 (85276a1) into master (988c6d6) will increase coverage by 0.00%.
The diff coverage is 100.00%.

Co-authored-by: Jaime Rodríguez-Guerra <jaimergp@users.noreply.github.com>
Copy link
Member

@mattwthompson mattwthompson left a comment

Choose a reason for hiding this comment

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

Diff looks good to me with one note. I grabbed this branch locally and it worked as expected

docs/releasehistory.rst Outdated Show resolved Hide resolved
docs/releasehistory.rst Outdated Show resolved Hide resolved
Comment on lines +9 to +10
warnings.warn(
"Importing this package as `import openforcefield.XXX` and "
Copy link
Member

Choose a reason for hiding this comment

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

Non-blocking, but it would be nice to have more precise language here

  • The entire package is never really imported
  • Saying "importing this module as ... " is incorrect when only a class is imported
  • Likewise, "importing this class/etc. ..." is also incorrect when entire modules are imported

Maybe something more general like "Importing components from this package as ... " / "From version 0.9.0 onwards, components of this package will need to be imported as ..." ?

j-wags and others added 2 commits January 8, 2021 08:21
Co-authored-by: Matt Thompson <mattwthompson@protonmail.com>
Co-authored-by: Matt Thompson <mattwthompson@protonmail.com>
@j-wags j-wags merged commit a8c12ce into master Jan 8, 2021
@j-wags j-wags deleted the openforcefield-deprecation branch January 8, 2021 16:22
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.

None yet

4 participants