Skip to content

Commit

Permalink
Rename version.py to _version.py
Browse files Browse the repository at this point in the history
  • Loading branch information
silverv committed Aug 17, 2022
1 parent 63077ce commit 4c7c5d4
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@
# List of patterns, relative to source directory, that match files and
# directories to ignore when looking for source files.
# This pattern also affects html_static_path and html_extra_path.
exclude_patterns = ["_build", "Thumbs.db", ".DS_Store", "version.py"]
exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"]

# The suffix(es) of source filenames.
source_suffix = [".rst"]
Expand Down
1 change: 0 additions & 1 deletion docs/pages/api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,3 @@ Submodules
/api/pycyphal.presentation
/api/pycyphal.transport
/api/pycyphal.util
/api/pycyphal.version
2 changes: 1 addition & 1 deletion noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ def check_style(session):
session.run("black", "--check", ".")


@nox.session(reuse_venv=True)
@nox.session()
def docs(session):
try:
session.run("dot", "-V", silent=True, external=True)
Expand Down
2 changes: 1 addition & 1 deletion pycyphal/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
import os as _os


from .version import __version__ as __version__
from ._version import __version__ as __version__

__version_info__ = tuple(map(int, __version__.split(".")[:3]))
__author__ = "OpenCyphal"
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[metadata]
name = pycyphal
version = attr: pycyphal.version.__version__
version = attr: pycyphal._version.__version__
author = OpenCyphal
author_email = consortium@opencyphal.org
url = https://opencyphal.org
Expand Down

0 comments on commit 4c7c5d4

Please sign in to comment.