moat-src 0.9.5__py3-none-any.whl → 0.9.7__py3-none-any.whl
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/_main.py +16 -8
- moat/src/test.py +1 -1
- {moat_src-0.9.5.dist-info → moat_src-0.9.7.dist-info}/METADATA +1 -1
- {moat_src-0.9.5.dist-info → moat_src-0.9.7.dist-info}/RECORD +7 -7
- {moat_src-0.9.5.dist-info → moat_src-0.9.7.dist-info}/WHEEL +0 -0
- {moat_src-0.9.5.dist-info → moat_src-0.9.7.dist-info}/licenses/LICENSE.txt +0 -0
- {moat_src-0.9.5.dist-info → moat_src-0.9.7.dist-info}/top_level.txt +0 -0
moat/src/_main.py
CHANGED
@@ -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
|
-
|
250
|
-
|
251
|
-
|
252
|
-
|
253
|
-
|
254
|
-
|
255
|
-
|
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
|
-
|
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:
|
moat/src/test.py
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
moat/src/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
2
2
|
moat/src/_cfg.yaml,sha256=bXRcamFBn1VCc7MhGBiWK5ciq4qw6iXyZzRJWvs_m0Q,35
|
3
|
-
moat/src/_main.py,sha256=
|
3
|
+
moat/src/_main.py,sha256=1Vy58Lj4Lploc6tBDzdpZ2zwXGIu428k7yRAbr5dIbY,35839
|
4
4
|
moat/src/inspect.py,sha256=rUU-FQyQoQP8LJCebbtdL6lgzz9KPH7KGSq11kD4nmU,1489
|
5
|
-
moat/src/test.py,sha256=
|
5
|
+
moat/src/test.py,sha256=UmBQ0trssY1rLNLXwJp8gdcX6__GJBUqmcryV_0PfcA,2152
|
6
6
|
moat/src/_templates/moat/__init__.py,sha256=ZBoFcXbv35djD599Vo_PKTqDjvQXYYXTcPUs5RcQZrs,101
|
7
7
|
moat/src/_templates/moat/_main.py,sha256=8gLupAmWb5T6wLkQYTi99V1nyaS8cAIccwxHet2ydFw,321
|
8
8
|
moat/src/_templates/packaging/pyproject.default.yaml,sha256=nHUa7dQhe8QpDH9Gbmjflf3BI3ECk2cuXArf0oPCgeg,2801
|
9
9
|
moat/src/_templates/packaging/pyproject.forced.yaml,sha256=djfcy3hgfoIgrn2pRrxDWTyN3EEsA1y5NhkzYrGjgNY,1427
|
10
|
-
moat_src-0.9.
|
11
|
-
moat_src-0.9.
|
12
|
-
moat_src-0.9.
|
13
|
-
moat_src-0.9.
|
14
|
-
moat_src-0.9.
|
10
|
+
moat_src-0.9.7.dist-info/licenses/LICENSE.txt,sha256=L5vKJLVOg5t0CEEPpW9-O_0vzbP0PEjEF06tLvnIDuk,541
|
11
|
+
moat_src-0.9.7.dist-info/METADATA,sha256=EyZgHa8swC2yF23EkMmuHhCI57vqRYA0GqQxi2rjh78,733
|
12
|
+
moat_src-0.9.7.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
|
13
|
+
moat_src-0.9.7.dist-info/top_level.txt,sha256=pcs9fl5w5AB5GVi4SvBqIVmFrkRwQkVw_dEvW0Q0cSA,5
|
14
|
+
moat_src-0.9.7.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|