scitex-git 0.1.0__tar.gz → 0.1.2__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (27) hide show
  1. {scitex_git-0.1.0/src/scitex_git.egg-info → scitex_git-0.1.2}/PKG-INFO +13 -3
  2. {scitex_git-0.1.0 → scitex_git-0.1.2}/README.md +11 -0
  3. {scitex_git-0.1.0 → scitex_git-0.1.2}/pyproject.toml +11 -3
  4. {scitex_git-0.1.0 → scitex_git-0.1.2}/src/scitex_git/__init__.py +9 -2
  5. {scitex_git-0.1.0 → scitex_git-0.1.2}/src/scitex_git/_init.py +1 -1
  6. scitex_git-0.1.2/src/scitex_git/_skills/scitex-git/SKILL.md +27 -0
  7. {scitex_git-0.1.0 → scitex_git-0.1.2/src/scitex_git.egg-info}/PKG-INFO +13 -3
  8. {scitex_git-0.1.0 → scitex_git-0.1.2}/src/scitex_git.egg-info/SOURCES.txt +4 -1
  9. scitex_git-0.1.2/src/scitex_git.egg-info/entry_points.txt +2 -0
  10. {scitex_git-0.1.0 → scitex_git-0.1.2}/src/scitex_git.egg-info/requires.txt +1 -2
  11. scitex_git-0.1.2/tests/test_examples.py +20 -0
  12. {scitex_git-0.1.0 → scitex_git-0.1.2}/LICENSE +0 -0
  13. {scitex_git-0.1.0 → scitex_git-0.1.2}/setup.cfg +0 -0
  14. {scitex_git-0.1.0 → scitex_git-0.1.2}/src/scitex_git/_branch.py +0 -0
  15. {scitex_git-0.1.0 → scitex_git-0.1.2}/src/scitex_git/_clone.py +0 -0
  16. {scitex_git-0.1.0 → scitex_git-0.1.2}/src/scitex_git/_commit.py +0 -0
  17. {scitex_git-0.1.0 → scitex_git-0.1.2}/src/scitex_git/_constants.py +0 -0
  18. {scitex_git-0.1.0 → scitex_git-0.1.2}/src/scitex_git/_remote.py +0 -0
  19. {scitex_git-0.1.0 → scitex_git-0.1.2}/src/scitex_git/_result.py +0 -0
  20. {scitex_git-0.1.0 → scitex_git-0.1.2}/src/scitex_git/_retry.py +0 -0
  21. {scitex_git-0.1.0 → scitex_git-0.1.2}/src/scitex_git/_types.py +0 -0
  22. {scitex_git-0.1.0 → scitex_git-0.1.2}/src/scitex_git/_utils.py +0 -0
  23. {scitex_git-0.1.0 → scitex_git-0.1.2}/src/scitex_git/_validation.py +0 -0
  24. {scitex_git-0.1.0 → scitex_git-0.1.2}/src/scitex_git/_vendor_sh.py +0 -0
  25. {scitex_git-0.1.0 → scitex_git-0.1.2}/src/scitex_git/_workflow.py +0 -0
  26. {scitex_git-0.1.0 → scitex_git-0.1.2}/src/scitex_git.egg-info/dependency_links.txt +0 -0
  27. {scitex_git-0.1.0 → scitex_git-0.1.2}/src/scitex_git.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: scitex-git
3
- Version: 0.1.0
3
+ Version: 0.1.2
4
4
  Summary: Git operations and utilities (clone, branch, commit, retry, remote helpers) — standalone module from the SciTeX ecosystem
5
5
  Author-email: Yusuke Watanabe <ywatanabe@scitex.ai>
6
6
  License-Expression: AGPL-3.0-only
@@ -32,12 +32,22 @@ Requires-Dist: myst-parser>=2.0; extra == "docs"
32
32
  Requires-Dist: sphinx-copybutton>=0.5; extra == "docs"
33
33
  Requires-Dist: sphinx-autodoc-typehints>=1.25; extra == "docs"
34
34
  Provides-Extra: all
35
- Requires-Dist: scitex-git[dev]; extra == "all"
36
- Requires-Dist: scitex-git[docs]; extra == "all"
35
+ Requires-Dist: scitex-git[dev,docs]; extra == "all"
37
36
  Dynamic: license-file
38
37
 
39
38
  # scitex-git
40
39
 
40
+ <!-- scitex-badges:start -->
41
+ [![PyPI](https://img.shields.io/pypi/v/scitex-git.svg)](https://pypi.org/project/scitex-git/)
42
+ [![Python](https://img.shields.io/pypi/pyversions/scitex-git.svg)](https://pypi.org/project/scitex-git/)
43
+ [![Tests](https://github.com/ywatanabe1989/scitex-git/actions/workflows/test.yml/badge.svg)](https://github.com/ywatanabe1989/scitex-git/actions/workflows/test.yml)
44
+ [![Install Test](https://github.com/ywatanabe1989/scitex-git/actions/workflows/install-test.yml/badge.svg)](https://github.com/ywatanabe1989/scitex-git/actions/workflows/install-test.yml)
45
+ [![Coverage](https://codecov.io/gh/ywatanabe1989/scitex-git/graph/badge.svg)](https://codecov.io/gh/ywatanabe1989/scitex-git)
46
+ [![Docs](https://readthedocs.org/projects/scitex-git/badge/?version=latest)](https://scitex-git.readthedocs.io/en/latest/)
47
+ [![License: AGPL v3](https://img.shields.io/badge/license-AGPL_v3-blue.svg)](https://www.gnu.org/licenses/agpl-3.0)
48
+ <!-- scitex-badges:end -->
49
+
50
+
41
51
  Git operations and utilities extracted from the [SciTeX](https://github.com/ywatanabe1989/scitex-python) ecosystem as a standalone package.
42
52
 
43
53
  ## Install
@@ -1,5 +1,16 @@
1
1
  # scitex-git
2
2
 
3
+ <!-- scitex-badges:start -->
4
+ [![PyPI](https://img.shields.io/pypi/v/scitex-git.svg)](https://pypi.org/project/scitex-git/)
5
+ [![Python](https://img.shields.io/pypi/pyversions/scitex-git.svg)](https://pypi.org/project/scitex-git/)
6
+ [![Tests](https://github.com/ywatanabe1989/scitex-git/actions/workflows/test.yml/badge.svg)](https://github.com/ywatanabe1989/scitex-git/actions/workflows/test.yml)
7
+ [![Install Test](https://github.com/ywatanabe1989/scitex-git/actions/workflows/install-test.yml/badge.svg)](https://github.com/ywatanabe1989/scitex-git/actions/workflows/install-test.yml)
8
+ [![Coverage](https://codecov.io/gh/ywatanabe1989/scitex-git/graph/badge.svg)](https://codecov.io/gh/ywatanabe1989/scitex-git)
9
+ [![Docs](https://readthedocs.org/projects/scitex-git/badge/?version=latest)](https://scitex-git.readthedocs.io/en/latest/)
10
+ [![License: AGPL v3](https://img.shields.io/badge/license-AGPL_v3-blue.svg)](https://www.gnu.org/licenses/agpl-3.0)
11
+ <!-- scitex-badges:end -->
12
+
13
+
3
14
  Git operations and utilities extracted from the [SciTeX](https://github.com/ywatanabe1989/scitex-python) ecosystem as a standalone package.
4
15
 
5
16
  ## Install
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "scitex-git"
7
- version = "0.1.0"
7
+ version = "0.1.2"
8
8
  description = "Git operations and utilities (clone, branch, commit, retry, remote helpers) — standalone module from the SciTeX ecosystem"
9
9
  readme = "README.md"
10
10
  license = "AGPL-3.0-only"
@@ -40,8 +40,7 @@ docs = [
40
40
  "sphinx-autodoc-typehints>=1.25",
41
41
  ]
42
42
  all = [
43
- "scitex-git[dev]",
44
- "scitex-git[docs]",
43
+ "scitex-git[dev,docs]",
45
44
  ]
46
45
 
47
46
  [project.urls]
@@ -52,6 +51,12 @@ Documentation = "https://scitex-git.readthedocs.io"
52
51
  [tool.setuptools.packages.find]
53
52
  where = ["src"]
54
53
 
54
+ [tool.setuptools.package-data]
55
+ scitex_git = ["_skills/**/*.md"]
56
+
57
+ [project.entry-points."scitex_dev.skills"]
58
+ scitex-git = "scitex_git"
59
+
55
60
  [tool.pytest.ini_options]
56
61
  testpaths = ["tests"]
57
62
  addopts = ["--disable-warnings"]
@@ -63,3 +68,6 @@ line-length = 88
63
68
  [tool.ruff.lint]
64
69
  select = ["E", "W", "F", "I"]
65
70
  ignore = ["E501"]
71
+
72
+ [tool.scitex-linter]
73
+ library_dirs = ["src", "tests", "apps", "config", "docs", "examples"]
@@ -3,8 +3,15 @@
3
3
 
4
4
  """scitex-git — git operations and utilities (extracted from SciTeX)."""
5
5
 
6
- __version__ = "0.1.0"
7
-
6
+ try:
7
+ from importlib.metadata import version as _v, PackageNotFoundError
8
+ try:
9
+ __version__ = _v("scitex-git")
10
+ except PackageNotFoundError:
11
+ __version__ = "0.0.0+local"
12
+ del _v, PackageNotFoundError
13
+ except ImportError: # pragma: no cover — only on ancient Pythons
14
+ __version__ = "0.0.0+local"
8
15
  from ._branch import git_branch_rename, git_checkout_new_branch
9
16
  from ._clone import clone_repo, git_init
10
17
  from ._commit import git_add_all, git_commit
@@ -88,7 +88,7 @@ def create_child_git(project_dir: Path) -> Optional[Path]:
88
88
  logger.info(f"Project is already a git repository at {project_dir}")
89
89
  # Optional structure validation: only runs if scitex-writer is installed.
90
90
  try:
91
- from scitex.writer._verify_tree_structure import verify_tree_structure
91
+ from scitex_writer._utils._verify_tree_structure import verify_tree_structure
92
92
 
93
93
  verify_tree_structure(project_dir)
94
94
  except ImportError:
@@ -0,0 +1,27 @@
1
+ ---
2
+ name: scitex-git
3
+ description: Programmatic git operations — `clone_repo`, `git_init`, `git_commit`, `git_add_all`, `git_branch_rename`, `git_checkout_new_branch`, `find_parent_git`, `init_git_repo`, `get_remote_url`, `is_cloned_from`, `git_retry`, `setup_branches`. Drop-in replacement for shelling out to `git` via `subprocess.run` and parsing stdout.
4
+ primary_interface: python
5
+ interfaces:
6
+ python: 3
7
+ cli: 1
8
+ mcp: 0
9
+ skills: 2
10
+ hook: 0
11
+ http: 0
12
+ canonical-location: scitex-git/src/scitex_git/_skills/scitex-git/SKILL.md
13
+ tags: [scitex-git, scitex-package]
14
+ ---
15
+
16
+ > **Interfaces:** Python ⭐⭐⭐ · CLI ⭐ · MCP — · Skills ⭐⭐ · Hook — · HTTP —
17
+
18
+ # scitex-git
19
+
20
+ Programmatic git operations — `clone_repo`, `git_init`, `git_commit`, `git_add_all`, `git_branch_rename`, `git_checkout_new_branch`, `find_parent_git`, `init_git_repo`, `get_remote_url`, `is_cloned_from`, `git_retry`, `setup_branches`. Drop-in replacement for shelling out to `git` via `subprocess.run` and parsing stdout.
21
+
22
+ See README.md and the package's public `__init__.py` for the full
23
+ function list. This skill leaf exists so agents discover the package
24
+ exists and roughly what shape it has — refer to the source for
25
+ signatures.
26
+
27
+ <!-- EOF -->
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: scitex-git
3
- Version: 0.1.0
3
+ Version: 0.1.2
4
4
  Summary: Git operations and utilities (clone, branch, commit, retry, remote helpers) — standalone module from the SciTeX ecosystem
5
5
  Author-email: Yusuke Watanabe <ywatanabe@scitex.ai>
6
6
  License-Expression: AGPL-3.0-only
@@ -32,12 +32,22 @@ Requires-Dist: myst-parser>=2.0; extra == "docs"
32
32
  Requires-Dist: sphinx-copybutton>=0.5; extra == "docs"
33
33
  Requires-Dist: sphinx-autodoc-typehints>=1.25; extra == "docs"
34
34
  Provides-Extra: all
35
- Requires-Dist: scitex-git[dev]; extra == "all"
36
- Requires-Dist: scitex-git[docs]; extra == "all"
35
+ Requires-Dist: scitex-git[dev,docs]; extra == "all"
37
36
  Dynamic: license-file
38
37
 
39
38
  # scitex-git
40
39
 
40
+ <!-- scitex-badges:start -->
41
+ [![PyPI](https://img.shields.io/pypi/v/scitex-git.svg)](https://pypi.org/project/scitex-git/)
42
+ [![Python](https://img.shields.io/pypi/pyversions/scitex-git.svg)](https://pypi.org/project/scitex-git/)
43
+ [![Tests](https://github.com/ywatanabe1989/scitex-git/actions/workflows/test.yml/badge.svg)](https://github.com/ywatanabe1989/scitex-git/actions/workflows/test.yml)
44
+ [![Install Test](https://github.com/ywatanabe1989/scitex-git/actions/workflows/install-test.yml/badge.svg)](https://github.com/ywatanabe1989/scitex-git/actions/workflows/install-test.yml)
45
+ [![Coverage](https://codecov.io/gh/ywatanabe1989/scitex-git/graph/badge.svg)](https://codecov.io/gh/ywatanabe1989/scitex-git)
46
+ [![Docs](https://readthedocs.org/projects/scitex-git/badge/?version=latest)](https://scitex-git.readthedocs.io/en/latest/)
47
+ [![License: AGPL v3](https://img.shields.io/badge/license-AGPL_v3-blue.svg)](https://www.gnu.org/licenses/agpl-3.0)
48
+ <!-- scitex-badges:end -->
49
+
50
+
41
51
  Git operations and utilities extracted from the [SciTeX](https://github.com/ywatanabe1989/scitex-python) ecosystem as a standalone package.
42
52
 
43
53
  ## Install
@@ -18,5 +18,8 @@ src/scitex_git/_workflow.py
18
18
  src/scitex_git.egg-info/PKG-INFO
19
19
  src/scitex_git.egg-info/SOURCES.txt
20
20
  src/scitex_git.egg-info/dependency_links.txt
21
+ src/scitex_git.egg-info/entry_points.txt
21
22
  src/scitex_git.egg-info/requires.txt
22
- src/scitex_git.egg-info/top_level.txt
23
+ src/scitex_git.egg-info/top_level.txt
24
+ src/scitex_git/_skills/scitex-git/SKILL.md
25
+ tests/test_examples.py
@@ -0,0 +1,2 @@
1
+ [scitex_dev.skills]
2
+ scitex-git = scitex_git
@@ -1,8 +1,7 @@
1
1
  GitPython>=3.1
2
2
 
3
3
  [all]
4
- scitex-git[dev]
5
- scitex-git[docs]
4
+ scitex-git[dev,docs]
6
5
 
7
6
  [dev]
8
7
  pytest
@@ -0,0 +1,20 @@
1
+ """Smoke tests: every example script must run to completion."""
2
+
3
+ import subprocess
4
+ import sys
5
+ from pathlib import Path
6
+
7
+ EXAMPLES = list(Path(__file__).parent.parent.joinpath("examples").glob("*.py"))
8
+
9
+
10
+ def test_examples_smoke(tmp_path):
11
+ assert EXAMPLES, "no example scripts found"
12
+ for ex in EXAMPLES:
13
+ r = subprocess.run(
14
+ [sys.executable, str(ex)],
15
+ cwd=tmp_path,
16
+ capture_output=True,
17
+ text=True,
18
+ timeout=60,
19
+ )
20
+ assert r.returncode == 0, f"{ex.name} failed: {r.stderr}"
File without changes
File without changes