moat-src 0.9.6__tar.gz → 0.9.9__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.9}/PKG-INFO +1 -1
  2. {moat_src-0.9.6 → moat_src-0.9.9}/debian/changelog +24 -0
  3. {moat_src-0.9.6 → moat_src-0.9.9}/pyproject.toml +1 -1
  4. {moat_src-0.9.6 → moat_src-0.9.9}/src/moat/src/_main.py +22 -11
  5. {moat_src-0.9.6 → moat_src-0.9.9/src/moat_src.egg-info}/PKG-INFO +1 -1
  6. {moat_src-0.9.6 → moat_src-0.9.9}/LICENSE.txt +0 -0
  7. {moat_src-0.9.6 → moat_src-0.9.9}/Makefile +0 -0
  8. {moat_src-0.9.6 → moat_src-0.9.9}/debian/.gitignore +0 -0
  9. {moat_src-0.9.6 → moat_src-0.9.9}/debian/control +0 -0
  10. {moat_src-0.9.6 → moat_src-0.9.9}/debian/rules +0 -0
  11. {moat_src-0.9.6 → moat_src-0.9.9}/setup.cfg +0 -0
  12. {moat_src-0.9.6 → moat_src-0.9.9}/src/moat/src/__init__.py +0 -0
  13. {moat_src-0.9.6 → moat_src-0.9.9}/src/moat/src/_cfg.yaml +0 -0
  14. {moat_src-0.9.6 → moat_src-0.9.9}/src/moat/src/_templates/moat/__init__.py +0 -0
  15. {moat_src-0.9.6 → moat_src-0.9.9}/src/moat/src/_templates/moat/_main.py +0 -0
  16. {moat_src-0.9.6 → moat_src-0.9.9}/src/moat/src/_templates/packaging/pyproject.default.yaml +0 -0
  17. {moat_src-0.9.6 → moat_src-0.9.9}/src/moat/src/_templates/packaging/pyproject.forced.yaml +0 -0
  18. {moat_src-0.9.6 → moat_src-0.9.9}/src/moat/src/inspect.py +0 -0
  19. {moat_src-0.9.6 → moat_src-0.9.9}/src/moat/src/test.py +0 -0
  20. {moat_src-0.9.6 → moat_src-0.9.9}/src/moat_src.egg-info/SOURCES.txt +0 -0
  21. {moat_src-0.9.6 → moat_src-0.9.9}/src/moat_src.egg-info/dependency_links.txt +0 -0
  22. {moat_src-0.9.6 → moat_src-0.9.9}/src/moat_src.egg-info/requires.txt +0 -0
  23. {moat_src-0.9.6 → moat_src-0.9.9}/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.9
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,27 @@
1
+ moat-src (0.9.9-1) unstable; urgency=medium
2
+
3
+ * New release for 25.3.6
4
+
5
+ -- Matthias Urlichs <matthias@urlichs.de> Tue, 22 Jul 2025 13:22:59 +0200
6
+
7
+ moat-src (0.9.8-1) unstable; urgency=medium
8
+
9
+ * New release for 25.3.6
10
+
11
+ -- Matthias Urlichs <matthias@urlichs.de> Tue, 22 Jul 2025 13:12:31 +0200
12
+
13
+ moat-src (0.9.7-2) unstable; urgency=medium
14
+
15
+ * New release for 25.3.5
16
+
17
+ -- Matthias Urlichs <matthias@urlichs.de> Tue, 22 Jul 2025 12:41:50 +0200
18
+
19
+ moat-src (0.9.7-1) unstable; urgency=medium
20
+
21
+ * New release for 25.3.4
22
+
23
+ -- Matthias Urlichs <matthias@urlichs.de> Tue, 22 Jul 2025 12:11:47 +0200
24
+
1
25
  moat-src (0.9.6-1) unstable; urgency=medium
2
26
 
3
27
  * 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.9"
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
@@ -189,8 +190,12 @@ class Package(_Common):
189
190
  lc = self.last_commit
190
191
  except AttributeError:
191
192
  return True
192
- for d in head.diff(self.last_commit, paths=self.path if main else Path("packaging")/self.dash):
193
- if Path(d.b_path).name == "changelog":
193
+ for d in head.diff(
194
+ self.last_commit if main else self._repo.last_tag,
195
+ paths=self.path if main else Path("packaging")/self.dash,
196
+ ):
197
+ pp=Path(d.b_path)
198
+ if pp.name == "changelog" and pp.parent.name == "debian":
194
199
  continue
195
200
  if (
196
201
  self._repo.repo_for(d.a_path, main) != self.name
@@ -247,15 +252,21 @@ class Repo(git.Repo, _Common):
247
252
  if self._last_tag is not None:
248
253
  return self._last_tag
249
254
 
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
255
+ tag = None
256
+ vers = None
257
+ for tt in self._commit_tags.values():
258
+ for t in tt:
259
+ if "/" in t.name:
260
+ continue
261
+ tv = Version(t.name)
262
+ if tag is None or vers < tv:
263
+ tag = t
264
+ vers = tv
257
265
 
258
- raise ValueError("No tags found")
266
+ if tag is None:
267
+ raise ValueError("No tags found")
268
+ self._last_tag = tag.name
269
+ return tag.name
259
270
 
260
271
  @property
261
272
  def last_commit(self) -> str:
@@ -1039,7 +1050,7 @@ async def build(
1039
1050
  )
1040
1051
  tag,ptag = res.stdout.strip().decode("utf-8").rsplit("-", 1)
1041
1052
  ptag = int(ptag)
1042
- if tag != ltag or r.vers.pkg != ptag:
1053
+ if tag != ltag or r.vers.pkg > ptag:
1043
1054
  subprocess.run(
1044
1055
  [
1045
1056
  "debchange",
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: moat-src
3
- Version: 0.9.6
3
+ Version: 0.9.9
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