Skip to content

Commit

Permalink
Change: Mark calculator module as "private"
Browse files Browse the repository at this point in the history
If the VersionCalculator class is used it should always be imported from
pontos.version.
  • Loading branch information
bjoernricks authored and y0urself committed Mar 14, 2023
1 parent ca61f50 commit 5d38b5f
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 2 additions & 0 deletions pontos/version/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.

from .__version__ import __version__
from ._calculator import VersionCalculator
from .errors import VersionError
from .main import main
from .version import Version, VersionCommand, VersionUpdate, parse_version
Expand All @@ -26,5 +27,6 @@
"parse_version",
"Version",
"VersionCommand",
"VersionCalculator",
"VersionUpdate",
)
File renamed without changes.
3 changes: 1 addition & 2 deletions pontos/version/schemes/_pep440.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@
from packaging.version import InvalidVersion
from packaging.version import Version as PackagingVersion

from pontos.version.calculator import VersionCalculator

from .._calculator import VersionCalculator
from ..errors import VersionError
from ..version import Version
from ._scheme import VersioningScheme
Expand Down
2 changes: 1 addition & 1 deletion pontos/version/schemes/_scheme.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
from abc import ABC
from typing import Type

from ..calculator import VersionCalculator
from .._calculator import VersionCalculator
from ..version import Version


Expand Down
5 changes: 2 additions & 3 deletions pontos/version/schemes/_semantic.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,8 @@

from semver import VersionInfo

from pontos.version.calculator import VersionCalculator
from pontos.version.errors import VersionError

from .._calculator import VersionCalculator
from ..errors import VersionError
from ..version import Version
from ._scheme import VersioningScheme

Expand Down

0 comments on commit 5d38b5f

Please sign in to comment.