gitman 3.5.2a1__tar.gz → 3.6__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.2a1 → gitman-3.6}/PKG-INFO +7 -7
  2. {gitman-3.5.2a1 → gitman-3.6}/gitman/common.py +14 -14
  3. {gitman-3.5.2a1 → gitman-3.6}/gitman/git.py +15 -20
  4. {gitman-3.5.2a1 → gitman-3.6}/pyproject.toml +16 -11
  5. {gitman-3.5.2a1 → gitman-3.6}/LICENSE.md +0 -0
  6. {gitman-3.5.2a1 → gitman-3.6}/README.md +0 -0
  7. {gitman-3.5.2a1 → gitman-3.6}/gitman/__init__.py +0 -0
  8. {gitman-3.5.2a1 → gitman-3.6}/gitman/__main__.py +0 -0
  9. {gitman-3.5.2a1 → gitman-3.6}/gitman/cli.py +0 -0
  10. {gitman-3.5.2a1 → gitman-3.6}/gitman/commands.py +0 -0
  11. {gitman-3.5.2a1 → gitman-3.6}/gitman/decorators.py +0 -0
  12. {gitman-3.5.2a1 → gitman-3.6}/gitman/exceptions.py +0 -0
  13. {gitman-3.5.2a1 → gitman-3.6}/gitman/hook-gitman.py +0 -0
  14. {gitman-3.5.2a1 → gitman-3.6}/gitman/models/__init__.py +0 -0
  15. {gitman-3.5.2a1 → gitman-3.6}/gitman/models/config.py +0 -0
  16. {gitman-3.5.2a1 → gitman-3.6}/gitman/models/group.py +0 -0
  17. {gitman-3.5.2a1 → gitman-3.6}/gitman/models/source.py +0 -0
  18. {gitman-3.5.2a1 → gitman-3.6}/gitman/plugin.py +0 -0
  19. {gitman-3.5.2a1 → gitman-3.6}/gitman/settings.py +0 -0
  20. {gitman-3.5.2a1 → gitman-3.6}/gitman/shell.py +0 -0
  21. {gitman-3.5.2a1 → gitman-3.6}/gitman/tests/__init__.py +0 -0
  22. {gitman-3.5.2a1 → gitman-3.6}/gitman/tests/conftest.py +0 -0
  23. {gitman-3.5.2a1 → gitman-3.6}/gitman/tests/files/gdm-custom.yml +0 -0
  24. {gitman-3.5.2a1 → gitman-3.6}/gitman/tests/files/gdm-default.yml +0 -0
  25. {gitman-3.5.2a1 → gitman-3.6}/gitman/tests/files/gitman.yml +0 -0
  26. {gitman-3.5.2a1 → gitman-3.6}/gitman/tests/files/subdir/gitman.yml +0 -0
  27. {gitman-3.5.2a1 → gitman-3.6}/gitman/tests/files/subdir/subsubdir/gitman.yml +0 -0
  28. {gitman-3.5.2a1 → gitman-3.6}/gitman/tests/files/subdir/subsubdir/skip/subsubsubsubdir/gitman.yml +0 -0
  29. {gitman-3.5.2a1 → gitman-3.6}/gitman/tests/test_cli.py +0 -0
  30. {gitman-3.5.2a1 → gitman-3.6}/gitman/tests/test_commands.py +0 -0
  31. {gitman-3.5.2a1 → gitman-3.6}/gitman/tests/test_common.py +0 -0
  32. {gitman-3.5.2a1 → gitman-3.6}/gitman/tests/test_git.py +0 -0
  33. {gitman-3.5.2a1 → gitman-3.6}/gitman/tests/test_models_config.py +0 -0
  34. {gitman-3.5.2a1 → gitman-3.6}/gitman/tests/test_models_group.py +0 -0
  35. {gitman-3.5.2a1 → gitman-3.6}/gitman/tests/test_models_source.py +0 -0
  36. {gitman-3.5.2a1 → gitman-3.6}/gitman/tests/test_plugin.py +0 -0
  37. {gitman-3.5.2a1 → gitman-3.6}/gitman/tests/test_shell.py +0 -0
  38. {gitman-3.5.2a1 → gitman-3.6}/gitman/tests/utils.py +0 -0
@@ -1,13 +1,12 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.3
2
2
  Name: gitman
3
- Version: 3.5.2a1
3
+ Version: 3.6
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
9
8
  Author-email: jacebrowning@gmail.com
10
- Requires-Python: >=3.8,<4.0
9
+ Requires-Python: >=3.9,<4.0
11
10
  Classifier: Development Status :: 5 - Production/Stable
12
11
  Classifier: Environment :: Console
13
12
  Classifier: Intended Audience :: Developers
@@ -16,19 +15,20 @@ Classifier: Natural Language :: English
16
15
  Classifier: Operating System :: OS Independent
17
16
  Classifier: Programming Language :: Python
18
17
  Classifier: Programming Language :: Python :: 3
19
- Classifier: Programming Language :: Python :: 3.8
20
18
  Classifier: Programming Language :: Python :: 3.9
21
19
  Classifier: Programming Language :: Python :: 3.10
22
20
  Classifier: Programming Language :: Python :: 3.11
23
21
  Classifier: Programming Language :: Python :: 3.12
22
+ Classifier: Programming Language :: Python :: 3.13
24
23
  Classifier: Topic :: Software Development
25
24
  Classifier: Topic :: Software Development :: Build Tools
26
25
  Classifier: Topic :: Software Development :: Version Control
27
26
  Classifier: Topic :: System :: Software Distribution
28
- Requires-Dist: datafiles (>=2.2,<3.0)
29
- Requires-Dist: minilog (>=2.3,<3.0)
27
+ Requires-Dist: datafiles (>=2.3.1,<3.0.0)
28
+ Requires-Dist: minilog (>=2.3.1,<3.0.0)
30
29
  Requires-Dist: universal-startfile (>=0.2,<0.3)
31
30
  Project-URL: Documentation, https://gitman.readthedocs.io
31
+ Project-URL: Homepage, https://pypi.org/project/gitman
32
32
  Project-URL: Repository, https://github.com/jacebrowning/gitman
33
33
  Description-Content-Type: text/markdown
34
34
 
@@ -161,20 +161,20 @@ CYAN = "\033[36m"
161
161
  WHITE = "\033[37m"
162
162
  RESET = "\033[0m"
163
163
 
164
- COLORS = dict(
165
- path="",
166
- git_rev=BOLD + BLUE,
167
- git_dirty=BOLD + MAGENTA,
168
- git_changes=YELLOW,
169
- shell=BOLD + GREEN,
170
- shell_info=MAGENTA,
171
- shell_output=CYAN,
172
- shell_error=YELLOW,
173
- message=BOLD + WHITE,
174
- prompt=BOLD + WHITE,
175
- success=BOLD + GREEN,
176
- error=BOLD + RED,
177
- )
164
+ COLORS = {
165
+ "path": "",
166
+ "git_rev": BOLD + BLUE,
167
+ "git_dirty": BOLD + MAGENTA,
168
+ "git_changes": YELLOW,
169
+ "shell": BOLD + GREEN,
170
+ "shell_info": MAGENTA,
171
+ "shell_output": CYAN,
172
+ "shell_error": YELLOW,
173
+ "message": BOLD + WHITE,
174
+ "prompt": BOLD + WHITE,
175
+ "success": BOLD + GREEN,
176
+ "error": BOLD + RED,
177
+ }
178
178
 
179
179
 
180
180
  def style(msg, name=None, *, _color_support=False):
@@ -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.2a1"
4
+ version = "3.6"
5
5
  description = "A language-agnostic dependency manager using Git."
6
6
 
7
7
  license = "MIT"
@@ -30,10 +30,11 @@ classifiers = [
30
30
  "Operating System :: OS Independent",
31
31
  "Programming Language :: Python",
32
32
  "Programming Language :: Python :: 3",
33
- "Programming Language :: Python :: 3.8",
34
33
  "Programming Language :: Python :: 3.9",
35
34
  "Programming Language :: Python :: 3.10",
36
35
  "Programming Language :: Python :: 3.11",
36
+ "Programming Language :: Python :: 3.12",
37
+ "Programming Language :: Python :: 3.13",
37
38
  "Topic :: Software Development",
38
39
  "Topic :: Software Development :: Build Tools",
39
40
  "Topic :: Software Development :: Version Control",
@@ -42,27 +43,27 @@ classifiers = [
42
43
 
43
44
  [tool.poetry.dependencies]
44
45
 
45
- python = "^3.8"
46
+ python = "^3.9"
46
47
 
47
- datafiles = "^2.2"
48
- minilog = "^2.3"
48
+ datafiles = "^2.3.1"
49
+ minilog = "^2.3.1"
49
50
  universal-startfile = "~0.2"
50
51
 
51
- [tool.poetry.dev-dependencies]
52
+ [tool.poetry.group.dev.dependencies]
52
53
 
53
54
  # Formatters
54
- black = "^22.1"
55
- isort = "^5.10"
55
+ black = "^24.8"
56
+ isort = "^5.13"
56
57
 
57
58
  # Linters
58
59
  mypy = "^1.3"
59
60
  pydocstyle = "*"
60
- pylint = "~2.15"
61
+ pylint = "~3.3"
61
62
  types-freezegun = "*"
62
63
  types-setuptools = "*"
63
64
 
64
65
  # Testing
65
- pytest = "^8.1"
66
+ pytest = "^8.3"
66
67
  pytest-cov = "^5.0"
67
68
  pytest-describe = "^2.2"
68
69
  pytest-expecter = "^3.0"
@@ -76,7 +77,7 @@ coveragespace = "^6.1"
76
77
  mkdocs = "^1.2.3"
77
78
  mkdocstrings = "^0.18.1"
78
79
  pygments = "^2.15.0"
79
- jinja2 = "~3.1.4"
80
+ jinja2 = "~3.1.6"
80
81
 
81
82
  # Tooling
82
83
  pyinstaller = "^4.0"
@@ -85,6 +86,10 @@ macfsevents = { version = "*", platform = "darwin" }
85
86
  pync = { version = "*", platform = "darwin" }
86
87
  rope = "^0.14"
87
88
 
89
+ [tool.poetry.requires-plugins]
90
+
91
+ poetry-plugin-export = ">=1.8"
92
+
88
93
  [tool.poetry.scripts]
89
94
 
90
95
  gitman = "gitman.cli:main"
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