moat-src 0.9.2__py3-none-any.whl → 0.9.4__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 CHANGED
@@ -190,6 +190,8 @@ class Package(_Common):
190
190
  except AttributeError:
191
191
  return True
192
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":
194
+ continue
193
195
  if (
194
196
  self._repo.repo_for(d.a_path, main) != self.name
195
197
  and self._repo.repo_for(d.b_path, main) != self.name
@@ -1005,6 +1007,9 @@ async def build(
1005
1007
  deb_opts = ["--no-sign"]
1006
1008
 
1007
1009
  for r in repos:
1010
+ ltag = r.last_tag
1011
+ if r.vers.get("deb","-") == f"{ltag}-{r.vers.pkg}":
1012
+ continue
1008
1013
  rd = PACK / r.dash
1009
1014
  p = rd / "debian"
1010
1015
  if not p.is_dir():
@@ -1033,7 +1038,6 @@ async def build(
1033
1038
  )
1034
1039
  tag,ptag = res.stdout.strip().decode("utf-8").rsplit("-", 1)
1035
1040
  ptag = int(ptag)
1036
- ltag = r.last_tag
1037
1041
  if tag != ltag or r.vers.pkg != ptag:
1038
1042
  subprocess.run(
1039
1043
  [
@@ -1073,6 +1077,8 @@ async def build(
1073
1077
  continue
1074
1078
  tag = r.last_tag
1075
1079
  name = r.dash
1080
+ if r.vers.get("pypi","-") == r.last_tag:
1081
+ continue
1076
1082
 
1077
1083
  targz = rd / "dist" / f"{r.under}-{tag}.tar.gz"
1078
1084
  done = rd / "dist" / f"{r.under}-{tag}.done"
@@ -1128,6 +1134,8 @@ async def build(
1128
1134
  print("Please fix(?) and try again.", file=sys.stderr)
1129
1135
  no_commit=True
1130
1136
  no_deb=True
1137
+ else:
1138
+ r.vers.pypi = r.last_tag
1131
1139
 
1132
1140
  # Step 7: upload Debian package
1133
1141
  if run and not no_deb:
@@ -1136,6 +1144,8 @@ async def build(
1136
1144
  dput_opts = ["-u", "ext"]
1137
1145
  for r in repos:
1138
1146
  ltag = r.last_tag
1147
+ if r.vers.get("deb","-") == f"{ltag}-{r.vers.pkg}":
1148
+ continue
1139
1149
  if not (PACK / r.dash / "debian").is_dir():
1140
1150
  continue
1141
1151
  changes = PACK / f"{r.mdash}_{ltag}-{r.vers.pkg}_{ARCH}.changes"
@@ -1157,6 +1167,8 @@ async def build(
1157
1167
  print(*err, file=sys.stderr)
1158
1168
  print("Please fix(?) and try again.", file=sys.stderr)
1159
1169
  no_commit=True
1170
+ else:
1171
+ r.vers.deb = f"{ltag}-{r.vers.pkg}"
1160
1172
 
1161
1173
  # Step 8: commit the result
1162
1174
  if run:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: moat-src
3
- Version: 0.9.2
3
+ Version: 0.9.4
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,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=S51OJxg2D_maDZXL8o3utB_oQj6xJaBu6gVfEIAGHss,35079
3
+ moat/src/_main.py,sha256=H7bFpjHPHYjIoC8IYo2eFH33lH6kBlLgSX52oJGy7J4,35528
4
4
  moat/src/inspect.py,sha256=rUU-FQyQoQP8LJCebbtdL6lgzz9KPH7KGSq11kD4nmU,1489
5
5
  moat/src/test.py,sha256=rA-YV_VDwtfBk-bzIEa31fk9GHl6V8f4HTXejLoAAbk,2187
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.2.dist-info/licenses/LICENSE.txt,sha256=L5vKJLVOg5t0CEEPpW9-O_0vzbP0PEjEF06tLvnIDuk,541
11
- moat_src-0.9.2.dist-info/METADATA,sha256=Et-HEllEperfceY6IQQkkC4VFOsu0-bH4eJY9Pa8To0,733
12
- moat_src-0.9.2.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
13
- moat_src-0.9.2.dist-info/top_level.txt,sha256=pcs9fl5w5AB5GVi4SvBqIVmFrkRwQkVw_dEvW0Q0cSA,5
14
- moat_src-0.9.2.dist-info/RECORD,,
10
+ moat_src-0.9.4.dist-info/licenses/LICENSE.txt,sha256=L5vKJLVOg5t0CEEPpW9-O_0vzbP0PEjEF06tLvnIDuk,541
11
+ moat_src-0.9.4.dist-info/METADATA,sha256=mU27ITaqmz3NTxEOyFoGUNxbOA5ziGfcidWKe43f1fk,733
12
+ moat_src-0.9.4.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
13
+ moat_src-0.9.4.dist-info/top_level.txt,sha256=pcs9fl5w5AB5GVi4SvBqIVmFrkRwQkVw_dEvW0Q0cSA,5
14
+ moat_src-0.9.4.dist-info/RECORD,,