moat-src 0.9.6__tar.gz → 0.9.7__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 (23) hide show
  1. {moat_src-0.9.6/src/moat_src.egg-info → moat_src-0.9.7}/PKG-INFO +1 -1
  2. {moat_src-0.9.6 → moat_src-0.9.7}/debian/changelog +6 -0
  3. {moat_src-0.9.6 → moat_src-0.9.7}/pyproject.toml +1 -1
  4. {moat_src-0.9.6 → moat_src-0.9.7}/src/moat/src/_main.py +15 -8
  5. {moat_src-0.9.6 → moat_src-0.9.7/src/moat_src.egg-info}/PKG-INFO +1 -1
  6. {moat_src-0.9.6 → moat_src-0.9.7}/LICENSE.txt +0 -0
  7. {moat_src-0.9.6 → moat_src-0.9.7}/Makefile +0 -0
  8. {moat_src-0.9.6 → moat_src-0.9.7}/debian/.gitignore +0 -0
  9. {moat_src-0.9.6 → moat_src-0.9.7}/debian/control +0 -0
  10. {moat_src-0.9.6 → moat_src-0.9.7}/debian/rules +0 -0
  11. {moat_src-0.9.6 → moat_src-0.9.7}/setup.cfg +0 -0
  12. {moat_src-0.9.6 → moat_src-0.9.7}/src/moat/src/__init__.py +0 -0
  13. {moat_src-0.9.6 → moat_src-0.9.7}/src/moat/src/_cfg.yaml +0 -0
  14. {moat_src-0.9.6 → moat_src-0.9.7}/src/moat/src/_templates/moat/__init__.py +0 -0
  15. {moat_src-0.9.6 → moat_src-0.9.7}/src/moat/src/_templates/moat/_main.py +0 -0
  16. {moat_src-0.9.6 → moat_src-0.9.7}/src/moat/src/_templates/packaging/pyproject.default.yaml +0 -0
  17. {moat_src-0.9.6 → moat_src-0.9.7}/src/moat/src/_templates/packaging/pyproject.forced.yaml +0 -0
  18. {moat_src-0.9.6 → moat_src-0.9.7}/src/moat/src/inspect.py +0 -0
  19. {moat_src-0.9.6 → moat_src-0.9.7}/src/moat/src/test.py +0 -0
  20. {moat_src-0.9.6 → moat_src-0.9.7}/src/moat_src.egg-info/SOURCES.txt +0 -0
  21. {moat_src-0.9.6 → moat_src-0.9.7}/src/moat_src.egg-info/dependency_links.txt +0 -0
  22. {moat_src-0.9.6 → moat_src-0.9.7}/src/moat_src.egg-info/requires.txt +0 -0
  23. {moat_src-0.9.6 → moat_src-0.9.7}/src/moat_src.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: moat-src
3
- Version: 0.9.6
3
+ Version: 0.9.7
4
4
  Summary: Tools for managing the MoaT sources
5
5
  Author-email: Matthias Urlichs <matthias@urlichs.de>
6
6
  Project-URL: homepage, https://m-o-a-t.org
@@ -1,3 +1,9 @@
1
+ moat-src (0.9.7-1) unstable; urgency=medium
2
+
3
+ * New release for 25.3.4
4
+
5
+ -- Matthias Urlichs <matthias@urlichs.de> Tue, 22 Jul 2025 12:11:47 +0200
6
+
1
7
  moat-src (0.9.6-1) unstable; urgency=medium
2
8
 
3
9
  * New release for 25.3.3
@@ -18,7 +18,7 @@ dependencies = [
18
18
  "gitpython",
19
19
  "packaging",
20
20
  ]
21
- version = "0.9.6"
21
+ version = "0.9.7"
22
22
  keywords = [ "MoaT",]
23
23
  requires-python = ">=3.8"
24
24
  name = "moat-src"
@@ -10,6 +10,7 @@ from collections import defaultdict, deque
10
10
  from configparser import RawConfigParser
11
11
  from pathlib import Path
12
12
  from copy import deepcopy
13
+ from packaging.version import Version
13
14
 
14
15
  import asyncclick as click
15
16
  import git
@@ -247,15 +248,21 @@ class Repo(git.Repo, _Common):
247
248
  if self._last_tag is not None:
248
249
  return self._last_tag
249
250
 
250
- for c in self._repo.commits(self.head.commit):
251
- t = self.tagged(c)
252
- if t is None:
253
- continue
254
-
255
- self._last_tag = t
256
- return t
251
+ tag = None
252
+ vers = None
253
+ for tt in self._commit_tags.values():
254
+ for t in tt:
255
+ if "/" in t.name:
256
+ continue
257
+ tv = Version(t.name)
258
+ if tag is None or vers < tv:
259
+ tag = t
260
+ vers = tv
257
261
 
258
- raise ValueError("No tags found")
262
+ if tag is None:
263
+ raise ValueError("No tags found")
264
+ self._last_tag = tag.name
265
+ return tag.name
259
266
 
260
267
  @property
261
268
  def last_commit(self) -> str:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: moat-src
3
- Version: 0.9.6
3
+ Version: 0.9.7
4
4
  Summary: Tools for managing the MoaT sources
5
5
  Author-email: Matthias Urlichs <matthias@urlichs.de>
6
6
  Project-URL: homepage, https://m-o-a-t.org
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes