Skip to content

Commit

Permalink
Deprecate the codebasin package
Browse files Browse the repository at this point in the history
The codebasin package was not originally designed for downstream users:
the interface is undocumented, and in many cases is not very user-friendly.

Semantic versioning recommends that there be at least one minor release with a
deprecation warning prior to removing functionality in a major release.
Deprecating the entire package is a simple solution that accurately
communicates our intent to users.

Signed-off-by: John Pennycook <[email protected]>
  • Loading branch information
Pennycook committed Jan 30, 2024
1 parent 71cef77 commit cdf2261
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions codebasin/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
# Copyright (C) 2019-2024 Intel Corporation
# SPDX-License-Identifier: BSD-3-Clause
import warnings

import codebasin.walkers

warnings.warn(
"Calling codebasin package internals is deprecated. "
+ "Please call the codebasin script directly instead. "
+ "A new, stable, package interface will be introduced in "
+ "a future release of Code Base Investigator.",
DeprecationWarning,
)

0 comments on commit cdf2261

Please sign in to comment.