moat-src 0.9.5__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.5/src/moat_src.egg-info → moat_src-0.9.7}/PKG-INFO +1 -1
  2. {moat_src-0.9.5 → moat_src-0.9.7}/debian/changelog +12 -0
  3. {moat_src-0.9.5 → moat_src-0.9.7}/pyproject.toml +1 -1
  4. {moat_src-0.9.5 → moat_src-0.9.7}/src/moat/src/_main.py +16 -8
  5. {moat_src-0.9.5 → moat_src-0.9.7}/src/moat/src/test.py +1 -1
  6. {moat_src-0.9.5 → moat_src-0.9.7/src/moat_src.egg-info}/PKG-INFO +1 -1
  7. {moat_src-0.9.5 → moat_src-0.9.7}/LICENSE.txt +0 -0
  8. {moat_src-0.9.5 → moat_src-0.9.7}/Makefile +0 -0
  9. {moat_src-0.9.5 → moat_src-0.9.7}/debian/.gitignore +0 -0
  10. {moat_src-0.9.5 → moat_src-0.9.7}/debian/control +0 -0
  11. {moat_src-0.9.5 → moat_src-0.9.7}/debian/rules +0 -0
  12. {moat_src-0.9.5 → moat_src-0.9.7}/setup.cfg +0 -0
  13. {moat_src-0.9.5 → moat_src-0.9.7}/src/moat/src/__init__.py +0 -0
  14. {moat_src-0.9.5 → moat_src-0.9.7}/src/moat/src/_cfg.yaml +0 -0
  15. {moat_src-0.9.5 → moat_src-0.9.7}/src/moat/src/_templates/moat/__init__.py +0 -0
  16. {moat_src-0.9.5 → moat_src-0.9.7}/src/moat/src/_templates/moat/_main.py +0 -0
  17. {moat_src-0.9.5 → moat_src-0.9.7}/src/moat/src/_templates/packaging/pyproject.default.yaml +0 -0
  18. {moat_src-0.9.5 → moat_src-0.9.7}/src/moat/src/_templates/packaging/pyproject.forced.yaml +0 -0
  19. {moat_src-0.9.5 → moat_src-0.9.7}/src/moat/src/inspect.py +0 -0
  20. {moat_src-0.9.5 → moat_src-0.9.7}/src/moat_src.egg-info/SOURCES.txt +0 -0
  21. {moat_src-0.9.5 → moat_src-0.9.7}/src/moat_src.egg-info/dependency_links.txt +0 -0
  22. {moat_src-0.9.5 → moat_src-0.9.7}/src/moat_src.egg-info/requires.txt +0 -0
  23. {moat_src-0.9.5 → 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.5
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,15 @@
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
+
7
+ moat-src (0.9.6-1) unstable; urgency=medium
8
+
9
+ * New release for 25.3.3
10
+
11
+ -- Matthias Urlichs <matthias@urlichs.de> Tue, 22 Jul 2025 11:51:35 +0200
12
+
1
13
  moat-src (0.9.5-1) unstable; urgency=medium
2
14
 
3
15
  * New release for 25.3.3
@@ -18,7 +18,7 @@ dependencies = [
18
18
  "gitpython",
19
19
  "packaging",
20
20
  ]
21
- version = "0.9.5"
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
@@ -232,6 +233,7 @@ class Repo(git.Repo, _Common):
232
233
 
233
234
  def write_tags(self):
234
235
  if self.versions == self.orig_versions:
236
+ logger.warning("No changed versions. Not tagging.")
235
237
  return False
236
238
  with open("versions.yaml", "w") as f:
237
239
  yprint(self.versions, f)
@@ -246,15 +248,21 @@ class Repo(git.Repo, _Common):
246
248
  if self._last_tag is not None:
247
249
  return self._last_tag
248
250
 
249
- for c in self._repo.commits(self.head.commit):
250
- t = self.tagged(c)
251
- if t is None:
252
- continue
253
-
254
- self._last_tag = t
255
- 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
256
261
 
257
- 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
258
266
 
259
267
  @property
260
268
  def last_commit(self) -> str:
@@ -59,7 +59,7 @@ async def run(*args, expect_exit=0, do_stdout=True):
59
59
  if do_stdout:
60
60
  if res is not None:
61
61
  res.stdout = out.getvalue()
62
- CFG["_stdout"] = sys.stdout
62
+ CFG.pop("_stdout", None)
63
63
 
64
64
 
65
65
  class DidNotRaise(Exception):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: moat-src
3
- Version: 0.9.5
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