Skip to content

Commit

Permalink
- fixed pyproject.toml
Browse files Browse the repository at this point in the history
- fixed docs generation
- improved  cm pull repo with branch and SHA (#1355)
  • Loading branch information
gfursin committed Nov 24, 2024
1 parent 8af58fc commit 0f4fdf5
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cm/CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## V3.4.2.1
## V3.4.3
- fixed pyproject.toml
- fixed docs generation
- improved cm pull repo with branch and SHA (#1355)
Expand Down
2 changes: 1 addition & 1 deletion cm/cmind/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#
# Written by Grigori Fursin

__version__ = "3.4.2.1"
__version__ = "3.4.3"

from cmind.core import access
from cmind.core import x
Expand Down
11 changes: 11 additions & 0 deletions cm/cmind/repos.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,17 @@ def load(self, init = False):
r = utils.save_json(full_path_to_repo_paths, meta = self.paths)
if r['return']>0: return r

# Skip internal repos
skip_internal_repos = os.environ.get('CM_CORE_SKIP_INTERNAL_REPOS','').strip().lower()
if skip_internal_repos not in ['1', 'true', 'yes']:
import pkgutil
for mi, name, ispkg in pkgutil.iter_modules():
if name.startswith('cm') and name != 'cmind':
path = os.path.join(mi.path, name, 'repo')
path_cmr = os.path.join(path, 'cmr.yaml')
if os.path.isfile(path_cmr) and path not in self.paths:
self.paths.insert(0, path)

# Check internal repo (will be after local)
if self.path_to_internal_repo != '' and os.path.isdir(self.path_to_internal_repo):
self.paths.insert(0, self.path_to_internal_repo)
Expand Down

0 comments on commit 0f4fdf5

Please sign in to comment.