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

DM-23343: Add procedure for deprecating packages #395

Merged
merged 2 commits into from May 11, 2020
Merged

Conversation

jdswinbank
Copy link
Contributor

No description provided.


import warnings

warnings.warn('lsst.example.package is deprecated, and will be removed from the Rubin Observatory'
Copy link
Contributor

Choose a reason for hiding this comment

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

No comma here since there's no second subject. Real warnings might give a reason and a replacement, but it's OK not to have them for the example.

Copy link
Contributor

Choose a reason for hiding this comment

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

If a package does not already have a top-level __init__.py, I guess one would have to be created. This shouldn't happen for stack packages that have to import from .version, but it might happen for others.

@jdswinbank jdswinbank merged commit 4629e41 into master May 11, 2020
@jdswinbank jdswinbank deleted the tickets/DM-23343 branch May 11, 2020 19:43
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

2 participants