winipedia-utils 0.3.7__py3-none-any.whl → 0.3.9__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.
@@ -114,7 +114,8 @@ class Workflow(YamlConfigFile):
114
114
  steps.append({"name": "Install Dependencies", "run": "poetry install"})
115
115
  return steps
116
116
 
117
- def get_repository_name(self) -> str:
117
+ @staticmethod
118
+ def get_repository_name() -> str:
118
119
  """Get the repository name."""
119
120
  return "${{ github.event.repository.name }}"
120
121
 
@@ -122,6 +123,12 @@ class Workflow(YamlConfigFile):
122
123
  """Get the ref name."""
123
124
  return "${{ github.ref_name }}"
124
125
 
125
- def get_repo_and_ref_name_formatted(self) -> str:
126
+ @staticmethod
127
+ def get_repo_and_ref_name() -> str:
126
128
  """Get the repository name and ref name."""
127
- return f": {self.get_repository_name()}-{self.get_ref_name()}"
129
+ return "${{ github.event.repository.name }}-${{ github.ref_name }}"
130
+
131
+ @classmethod
132
+ def get_repo_and_ref_name_formatted(cls) -> str:
133
+ """Get the repository name and ref name."""
134
+ return f": {cls.get_repo_and_ref_name()}"
@@ -47,7 +47,8 @@ class PublishWorkflow(Workflow):
47
47
  )
48
48
  ),
49
49
  {
50
- "name": "Build and publish to PyPI",
50
+ "name": "Build and publish to PyPI"
51
+ + self.get_repo_and_ref_name_formatted(),
51
52
  "run": "poetry publish --build",
52
53
  },
53
54
  ],
@@ -56,7 +56,7 @@ class ReleaseWorkflow(Workflow):
56
56
  "uses": "ncipollo/release-action@v1",
57
57
  "with": {
58
58
  "tag": "${{ github.ref_name }}",
59
- "name": self.get_repo_and_ref_name_formatted(),
59
+ "name": self.get_repo_and_ref_name(),
60
60
  "body": "${{ steps.build_changelog.outputs.changelog }}",
61
61
  },
62
62
  },
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: winipedia-utils
3
- Version: 0.3.7
3
+ Version: 0.3.9
4
4
  Summary: A package with many utility functions
5
5
  License-Expression: MIT
6
6
  License-File: LICENSE
@@ -18,9 +18,9 @@ winipedia_utils/git/pre_commit/hooks.py,sha256=BsIxaAEdOFTdw9-8Y-TxopBiNF969tpb8
18
18
  winipedia_utils/git/pre_commit/run_hooks.py,sha256=FOs501pCvjrvq2or5S6KP3vFchQTwD9bUP1UqrE16Ts,1509
19
19
  winipedia_utils/git/workflows/__init__.py,sha256=BPdntTwFEyBMJ6MyT7gddPHswvRdH9tsRtfK72VSV7Y,57
20
20
  winipedia_utils/git/workflows/base/__init__.py,sha256=XHsbmjiaGom-KX-S3leCY9cJD3aP9p_0X6xYMcdkHBU,23
21
- winipedia_utils/git/workflows/base/base.py,sha256=dVGpbZHDPcyJ_Z7OheBdquMVgjcGOzzrOI9GEDAGLb8,4294
22
- winipedia_utils/git/workflows/publish.py,sha256=BCc_jBX8Nh1lEm6tG6a2ny-ghu-gfMh4Owkz8vGzGIw,1592
23
- winipedia_utils/git/workflows/release.py,sha256=dT6zVpgndihCRhZQzpdPSCWh4q5BkupHjcOkysXU_FE,2132
21
+ winipedia_utils/git/workflows/base/base.py,sha256=E3zXCop8jASxK_nQjStixLZpP2vyCI--ZvnuSimGG4Y,4490
22
+ winipedia_utils/git/workflows/publish.py,sha256=Qw1beUk8faYDqxemCrO3raRZD3UZuvRBxjAioM3B73Q,1657
23
+ winipedia_utils/git/workflows/release.py,sha256=mh830wkObIu9RWMygngDVDopItRuHa8Hw2pj2_Blats,2122
24
24
  winipedia_utils/iterating/__init__.py,sha256=rlF9hzxbowq5yOfcXvOKOQdB-EQmfrislQpf659Zeu4,53
25
25
  winipedia_utils/iterating/iterate.py,sha256=TtXkKnnzteSCYnYO_rqGzi3OwaxQ0-mRP5G-8syJIXo,3385
26
26
  winipedia_utils/logging/__init__.py,sha256=AMt1LwA_E7hexYjMpGzUempoyDdAF-dowWvq59wC5aM,51
@@ -82,7 +82,7 @@ winipedia_utils/testing/tests/conftest.py,sha256=BLgUJtLecOwuEsIyJ__0buqovd5AhiG
82
82
  winipedia_utils/text/__init__.py,sha256=j2bwtK6kyeHI6SnoBjpRju0C1W2n2paXBDlNjNtaUxA,48
83
83
  winipedia_utils/text/config.py,sha256=KTVkcfeExE3daLFYJg_UMsDAFz02DXG5jVtrtlUxnkE,4336
84
84
  winipedia_utils/text/string.py,sha256=yXmwOab5hXyVQG1NwlWDpy2prj0U7Vb2F5HKLT2Y77Q,3382
85
- winipedia_utils-0.3.7.dist-info/METADATA,sha256=7Phz99AWcQGAXevZmrQ5telH_67PHmPulhpLnWaUO6g,9952
86
- winipedia_utils-0.3.7.dist-info/WHEEL,sha256=zp0Cn7JsFoX2ATtOhtaFYIiE2rmFAD4OcMhtUki8W3U,88
87
- winipedia_utils-0.3.7.dist-info/licenses/LICENSE,sha256=o316mE2gGzd__JT69p7S_zlOmKiHh8YjpImCCcWyTvM,1066
88
- winipedia_utils-0.3.7.dist-info/RECORD,,
85
+ winipedia_utils-0.3.9.dist-info/METADATA,sha256=HDFt85qITTFbCa-z7UEFjDsFkCUN5XW7Sq_oH_n1MNA,9952
86
+ winipedia_utils-0.3.9.dist-info/WHEEL,sha256=zp0Cn7JsFoX2ATtOhtaFYIiE2rmFAD4OcMhtUki8W3U,88
87
+ winipedia_utils-0.3.9.dist-info/licenses/LICENSE,sha256=o316mE2gGzd__JT69p7S_zlOmKiHh8YjpImCCcWyTvM,1066
88
+ winipedia_utils-0.3.9.dist-info/RECORD,,