Skip to content

Commit 947f9d1

Browse files
authored
Add versioning page to docs (and minor stpipe submodule cleanup) (#2322)
1 parent 1937ff3 commit 947f9d1

5 files changed

Lines changed: 39 additions & 1 deletion

File tree

changes/2322.docs.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Add versioning page to docs describing public vs private API and romancal versioning scheme.

docs/roman/package_index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
.. toctree::
22
:maxdepth: 2
33

4+
versioning.rst
45
assign_wcs/index.rst
56
associations/index.rst
67
dark_current/index.rst

docs/roman/versioning.rst

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
.. _romancal-version-scheme:
2+
3+
Versioning Scheme
4+
-----------------
5+
6+
.. note::
7+
8+
This section addresses the release version to PyPI.
9+
It is not to be confused with the DMS quarterly build version,
10+
which has a different numbering scheme (see
11+
`software vs. DMS builds <https://github.com/spacetelescope/romancal/blob/main/README.md#software-vs-dms-build-version-map>`_).
12+
13+
The ``romancal`` package follows `semantic versioning <https://semver.org/>`_ with a few minor
14+
exceptions noted below. In brief this means that backwards incompatible changes are allowed
15+
in major version changes, minor versions can contain new features and patch versions
16+
can contain only bug fixes.
17+
18+
.. _romancal-public-vs-private-api:
19+
20+
API: Public vs Private
21+
----------------------
22+
23+
As per Python convention, any API name that starts with underscore
24+
(e.g., ``_my_private_function``) is considered private.
25+
Any API not officially documented (i.e., you only found it after some extensive
26+
code-diving) is also considered private.
27+
28+
Additionally test code is considered private. This includes:
29+
30+
* all ``conftest.py`` files
31+
* modules that start with ``test_*`` or are named ``tests``
32+
* everything under ``romancal.regtest``
33+
34+
If there is code that you would like to be public, please search
35+
the open `issues <https://github.com/spacetelescope/romancal/issues>`_ and
36+
open a new one describing what you would like to be made public.

romancal/lib/suffix.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ def _find_suffixes():
176176
is worth doing dynamically or only as a utility to update
177177
a static list.
178178
"""
179-
from romancal.stpipe.utilities import all_steps
179+
from romancal.stpipe._utilities import all_steps
180180

181181
# First traverse the code base and find all
182182
# `Step` classes. The default suffix is the

0 commit comments

Comments
 (0)