Skip to content

Commit

Permalink
switch to new namespace logic
Browse files Browse the repository at this point in the history
  • Loading branch information
laszewsk committed Nov 26, 2023
1 parent ae51cf7 commit 8eeb522
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 22 deletions.
2 changes: 1 addition & 1 deletion bin/set-version
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import subprocess
def set_version(new_version):
try:
# Call bump2version with --allow-dirty --new-version X.X.X patch
subprocess.run(['bump2version', '--allow-dirty', '--new-version', new_version, 'patch'], check=True)
subprocess.run(['bump2version', '--allow-dirty', f'--new-version="{new_version}"', 'part'], check=True)
print(f"Version set to {new_version} successfully.")
except subprocess.CalledProcessError as e:
print(f"Error: {e}")
Expand Down
19 changes: 0 additions & 19 deletions cloudmesh/__init__.py

This file was deleted.

13 changes: 12 additions & 1 deletion cloudmesh/common/notebook/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,18 @@
import os
import sys

#
# use full width of jupyter notebook windows
# add user COLAB
#

IN_COLAB = 'google.colab' in sys.modules

if IN_COLAB:
os.environ["USER"] = "COLAB"

#
# use full width of jupyter notebook windows
#
try:
__IPYTHON__
from IPython.core.display import display, HTML
Expand Down
1 change: 0 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,5 @@ def readfile(filename):
"coverage",
],
zip_safe=False,
namespace_packages=['cloudmesh'],
include_package_data=True
)

0 comments on commit 8eeb522

Please sign in to comment.