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.
- {moat_src-0.9.6/src/moat_src.egg-info → moat_src-0.9.7}/PKG-INFO +1 -1
- {moat_src-0.9.6 → moat_src-0.9.7}/debian/changelog +6 -0
- {moat_src-0.9.6 → moat_src-0.9.7}/pyproject.toml +1 -1
- {moat_src-0.9.6 → moat_src-0.9.7}/src/moat/src/_main.py +15 -8
- {moat_src-0.9.6 → moat_src-0.9.7/src/moat_src.egg-info}/PKG-INFO +1 -1
- {moat_src-0.9.6 → moat_src-0.9.7}/LICENSE.txt +0 -0
- {moat_src-0.9.6 → moat_src-0.9.7}/Makefile +0 -0
- {moat_src-0.9.6 → moat_src-0.9.7}/debian/.gitignore +0 -0
- {moat_src-0.9.6 → moat_src-0.9.7}/debian/control +0 -0
- {moat_src-0.9.6 → moat_src-0.9.7}/debian/rules +0 -0
- {moat_src-0.9.6 → moat_src-0.9.7}/setup.cfg +0 -0
- {moat_src-0.9.6 → moat_src-0.9.7}/src/moat/src/__init__.py +0 -0
- {moat_src-0.9.6 → moat_src-0.9.7}/src/moat/src/_cfg.yaml +0 -0
- {moat_src-0.9.6 → moat_src-0.9.7}/src/moat/src/_templates/moat/__init__.py +0 -0
- {moat_src-0.9.6 → moat_src-0.9.7}/src/moat/src/_templates/moat/_main.py +0 -0
- {moat_src-0.9.6 → moat_src-0.9.7}/src/moat/src/_templates/packaging/pyproject.default.yaml +0 -0
- {moat_src-0.9.6 → moat_src-0.9.7}/src/moat/src/_templates/packaging/pyproject.forced.yaml +0 -0
- {moat_src-0.9.6 → moat_src-0.9.7}/src/moat/src/inspect.py +0 -0
- {moat_src-0.9.6 → moat_src-0.9.7}/src/moat/src/test.py +0 -0
- {moat_src-0.9.6 → moat_src-0.9.7}/src/moat_src.egg-info/SOURCES.txt +0 -0
- {moat_src-0.9.6 → moat_src-0.9.7}/src/moat_src.egg-info/dependency_links.txt +0 -0
- {moat_src-0.9.6 → moat_src-0.9.7}/src/moat_src.egg-info/requires.txt +0 -0
- {moat_src-0.9.6 → moat_src-0.9.7}/src/moat_src.egg-info/top_level.txt +0 -0
@@ -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
|
-
|
251
|
-
|
252
|
-
|
253
|
-
|
254
|
-
|
255
|
-
|
256
|
-
|
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
|
-
|
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:
|
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
|