gitman 3.5.2__tar.gz → 3.5.3__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 (38) hide show
  1. {gitman-3.5.2 → gitman-3.5.3}/PKG-INFO +6 -5
  2. {gitman-3.5.2 → gitman-3.5.3}/gitman/git.py +15 -20
  3. {gitman-3.5.2 → gitman-3.5.3}/pyproject.toml +8 -8
  4. {gitman-3.5.2 → gitman-3.5.3}/LICENSE.md +0 -0
  5. {gitman-3.5.2 → gitman-3.5.3}/README.md +0 -0
  6. {gitman-3.5.2 → gitman-3.5.3}/gitman/__init__.py +0 -0
  7. {gitman-3.5.2 → gitman-3.5.3}/gitman/__main__.py +0 -0
  8. {gitman-3.5.2 → gitman-3.5.3}/gitman/cli.py +0 -0
  9. {gitman-3.5.2 → gitman-3.5.3}/gitman/commands.py +0 -0
  10. {gitman-3.5.2 → gitman-3.5.3}/gitman/common.py +0 -0
  11. {gitman-3.5.2 → gitman-3.5.3}/gitman/decorators.py +0 -0
  12. {gitman-3.5.2 → gitman-3.5.3}/gitman/exceptions.py +0 -0
  13. {gitman-3.5.2 → gitman-3.5.3}/gitman/hook-gitman.py +0 -0
  14. {gitman-3.5.2 → gitman-3.5.3}/gitman/models/__init__.py +0 -0
  15. {gitman-3.5.2 → gitman-3.5.3}/gitman/models/config.py +0 -0
  16. {gitman-3.5.2 → gitman-3.5.3}/gitman/models/group.py +0 -0
  17. {gitman-3.5.2 → gitman-3.5.3}/gitman/models/source.py +0 -0
  18. {gitman-3.5.2 → gitman-3.5.3}/gitman/plugin.py +0 -0
  19. {gitman-3.5.2 → gitman-3.5.3}/gitman/settings.py +0 -0
  20. {gitman-3.5.2 → gitman-3.5.3}/gitman/shell.py +0 -0
  21. {gitman-3.5.2 → gitman-3.5.3}/gitman/tests/__init__.py +0 -0
  22. {gitman-3.5.2 → gitman-3.5.3}/gitman/tests/conftest.py +0 -0
  23. {gitman-3.5.2 → gitman-3.5.3}/gitman/tests/files/gdm-custom.yml +0 -0
  24. {gitman-3.5.2 → gitman-3.5.3}/gitman/tests/files/gdm-default.yml +0 -0
  25. {gitman-3.5.2 → gitman-3.5.3}/gitman/tests/files/gitman.yml +0 -0
  26. {gitman-3.5.2 → gitman-3.5.3}/gitman/tests/files/subdir/gitman.yml +0 -0
  27. {gitman-3.5.2 → gitman-3.5.3}/gitman/tests/files/subdir/subsubdir/gitman.yml +0 -0
  28. {gitman-3.5.2 → gitman-3.5.3}/gitman/tests/files/subdir/subsubdir/skip/subsubsubsubdir/gitman.yml +0 -0
  29. {gitman-3.5.2 → gitman-3.5.3}/gitman/tests/test_cli.py +0 -0
  30. {gitman-3.5.2 → gitman-3.5.3}/gitman/tests/test_commands.py +0 -0
  31. {gitman-3.5.2 → gitman-3.5.3}/gitman/tests/test_common.py +0 -0
  32. {gitman-3.5.2 → gitman-3.5.3}/gitman/tests/test_git.py +0 -0
  33. {gitman-3.5.2 → gitman-3.5.3}/gitman/tests/test_models_config.py +0 -0
  34. {gitman-3.5.2 → gitman-3.5.3}/gitman/tests/test_models_group.py +0 -0
  35. {gitman-3.5.2 → gitman-3.5.3}/gitman/tests/test_models_source.py +0 -0
  36. {gitman-3.5.2 → gitman-3.5.3}/gitman/tests/test_plugin.py +0 -0
  37. {gitman-3.5.2 → gitman-3.5.3}/gitman/tests/test_shell.py +0 -0
  38. {gitman-3.5.2 → gitman-3.5.3}/gitman/tests/utils.py +0 -0
@@ -1,8 +1,7 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.3
2
2
  Name: gitman
3
- Version: 3.5.2
3
+ Version: 3.5.3
4
4
  Summary: A language-agnostic dependency manager using Git.
5
- Home-page: https://pypi.org/project/gitman
6
5
  License: MIT
7
6
  Keywords: git,version control,build systems,dependency management,submodules
8
7
  Author: Jace Browning
@@ -21,14 +20,16 @@ Classifier: Programming Language :: Python :: 3.9
21
20
  Classifier: Programming Language :: Python :: 3.10
22
21
  Classifier: Programming Language :: Python :: 3.11
23
22
  Classifier: Programming Language :: Python :: 3.12
23
+ Classifier: Programming Language :: Python :: 3.13
24
24
  Classifier: Topic :: Software Development
25
25
  Classifier: Topic :: Software Development :: Build Tools
26
26
  Classifier: Topic :: Software Development :: Version Control
27
27
  Classifier: Topic :: System :: Software Distribution
28
- Requires-Dist: datafiles (>=2.2,<3.0)
29
- Requires-Dist: minilog (>=2.3,<3.0)
28
+ Requires-Dist: datafiles (>=2.3.1,<3.0.0)
29
+ Requires-Dist: minilog (>=2.3.1,<3.0.0)
30
30
  Requires-Dist: universal-startfile (>=0.2,<0.3)
31
31
  Project-URL: Documentation, https://gitman.readthedocs.io
32
+ Project-URL: Homepage, https://pypi.org/project/gitman
32
33
  Project-URL: Repository, https://github.com/jacebrowning/gitman
33
34
  Description-Content-Type: text/markdown
34
35
 
@@ -56,27 +56,22 @@ def clone(
56
56
  git("clone", "--mirror", repo, reference, *user_params)
57
57
 
58
58
  if sparse_paths and sparse_paths[0]:
59
- os.mkdir(normpath)
59
+ os.makedirs(normpath)
60
60
  git("-C", normpath, "init")
61
- git("-C", normpath, "config", "core.sparseCheckout", "true")
62
- git("-C", normpath, "remote", "add", "-f", "origin", sparse_paths_repo)
63
-
64
- with open(
65
- "%s/%s/.git/info/sparse-checkout" % (os.getcwd(), normpath),
66
- "w",
67
- encoding="utf-8",
68
- ) as fd:
69
- fd.write("\n".join(sparse_paths))
70
- with open(
71
- "%s/%s/.git/objects/info/alternates" % (os.getcwd(), normpath),
72
- "w",
73
- encoding="utf-8",
74
- ) as fd:
75
- fd.write("%s/objects" % sparse_paths_repo)
76
-
77
- # We use directly the revision requested here in order to respect,
78
- # that not all repos have `master` as their default branch
79
- git("-C", normpath, "pull", "origin", rev)
61
+ git("-C", normpath, "remote", "add", "origin", repo)
62
+
63
+ if not settings.CACHE_DISABLE:
64
+ with open(
65
+ "%s/%s/.git/objects/info/alternates" % (os.getcwd(), normpath),
66
+ "w",
67
+ encoding="utf-8",
68
+ ) as fd:
69
+ fd.write("%s/objects" % sparse_paths_repo)
70
+
71
+ git("-C", normpath, "sparse-checkout", "init", "--cone")
72
+ git("-C", normpath, "sparse-checkout", "set", *sparse_paths)
73
+ git("-C", normpath, "fetch", "origin")
74
+ git("-C", normpath, "checkout", rev)
80
75
  elif settings.CACHE_DISABLE:
81
76
  git("clone", repo, normpath, *user_params)
82
77
  else:
@@ -1,7 +1,7 @@
1
1
  [tool.poetry]
2
2
 
3
3
  name = "gitman"
4
- version = "3.5.2"
4
+ version = "3.5.3"
5
5
  description = "A language-agnostic dependency manager using Git."
6
6
 
7
7
  license = "MIT"
@@ -44,15 +44,15 @@ classifiers = [
44
44
 
45
45
  python = "^3.8"
46
46
 
47
- datafiles = "^2.2"
48
- minilog = "^2.3"
47
+ datafiles = "^2.3.1"
48
+ minilog = "^2.3.1"
49
49
  universal-startfile = "~0.2"
50
50
 
51
- [tool.poetry.dev-dependencies]
51
+ [tool.poetry.group.dev.dependencies]
52
52
 
53
53
  # Formatters
54
- black = "^22.1"
55
- isort = "^5.10"
54
+ black = "^24.8"
55
+ isort = "^5.13"
56
56
 
57
57
  # Linters
58
58
  mypy = "^1.3"
@@ -62,7 +62,7 @@ types-freezegun = "*"
62
62
  types-setuptools = "*"
63
63
 
64
64
  # Testing
65
- pytest = "^8.1"
65
+ pytest = "^8.3"
66
66
  pytest-cov = "^5.0"
67
67
  pytest-describe = "^2.2"
68
68
  pytest-expecter = "^3.0"
@@ -76,7 +76,7 @@ coveragespace = "^6.1"
76
76
  mkdocs = "^1.2.3"
77
77
  mkdocstrings = "^0.18.1"
78
78
  pygments = "^2.15.0"
79
- jinja2 = "~3.1.4"
79
+ jinja2 = "~3.1.6"
80
80
 
81
81
  # Tooling
82
82
  pyinstaller = "^4.0"
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes