Skip to content

Commit

Permalink
rename version to _version
Browse files Browse the repository at this point in the history
  • Loading branch information
gadenbuie committed Jan 12, 2024
1 parent a9199b7 commit b6bf76f
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[metadata]
name = shinylive
version = attr: shinylive.version.SHINYLIVE_PACKAGE_VERSION
version = attr: shinylive._version.SHINYLIVE_PACKAGE_VERSION
author = Winston Chang
author_email = [email protected]
url = https://github.com/posit-dev/py-shinylive
Expand Down
2 changes: 1 addition & 1 deletion shinylive/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""A package for packaging Shiny applications that run on Python in the browser."""

from ._url import decode_shinylive_url, encode_shinylive_url
from .version import SHINYLIVE_PACKAGE_VERSION
from ._version import SHINYLIVE_PACKAGE_VERSION

__version__ = SHINYLIVE_PACKAGE_VERSION

Expand Down
2 changes: 1 addition & 1 deletion shinylive/_deps.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

from ._app_json import FileContentJson
from ._assets import ensure_shinylive_assets, repodata_json_file, shinylive_assets_dir
from .version import SHINYLIVE_ASSETS_VERSION
from ._version import SHINYLIVE_ASSETS_VERSION

# Files in Pyodide that should always be included.
BASE_PYODIDE_FILES = {
Expand Down
6 changes: 3 additions & 3 deletions shinylive/_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
write_files_from_shinylive_io,
)
from ._utils import print_as_json
from .version import SHINYLIVE_ASSETS_VERSION, SHINYLIVE_PACKAGE_VERSION
from ._version import SHINYLIVE_ASSETS_VERSION, SHINYLIVE_PACKAGE_VERSION


# Make sure commands are listed in the order they are added in the code.
Expand Down Expand Up @@ -222,7 +222,7 @@ def download(
_assets.download_shinylive(destdir=upgrade_dir(dir), version=version, url=url)


cleanup_help = f"Remove all versions of local assets except the currently-used version, {_assets.SHINYLIVE_ASSETS_VERSION}."
cleanup_help = f"Remove all versions of local assets except the currently-used version, {SHINYLIVE_ASSETS_VERSION}."


@assets.command(
Expand Down Expand Up @@ -357,7 +357,7 @@ def link_from_local(
help="Print the version of the Shinylive assets.",
)
def version() -> None:
print(_assets.SHINYLIVE_ASSETS_VERSION)
print(SHINYLIVE_ASSETS_VERSION)


# #############################################################################
Expand Down
File renamed without changes.

0 comments on commit b6bf76f

Please sign in to comment.