autopub 1.0.0a11__py3-none-any.whl → 1.0.0a13__py3-none-any.whl

Sign up to get free protection for your applications and to get access to all the features.
autopub/__init__.py CHANGED
@@ -102,7 +102,7 @@ class Autopub:
102
102
  self._write_artifact(self.release_data)
103
103
 
104
104
  def _delete_release_file(self) -> None:
105
- self.release_file.unlink()
105
+ self.release_file.unlink(missing_ok=True)
106
106
 
107
107
  def publish(self, repository: str | None = None) -> None:
108
108
  release_info = self.release_data
autopub/plugins/git.py CHANGED
@@ -6,13 +6,16 @@ from autopub.types import ReleaseInfo
6
6
 
7
7
  class GitPlugin(AutopubPlugin):
8
8
  def post_publish(self, release_info: ReleaseInfo) -> None:
9
+ tag = release_info.additional_info["new_version"]
10
+
9
11
  self.run_command(["git", "config", "--global", "user.email", "autopub@autopub"])
10
12
  self.run_command(["git", "config", "--global", "user.name", "autopub"])
11
13
 
12
- self.run_command(["git", "tag", release_info.additional_info["new_version"]])
14
+ self.run_command(["git", "tag", tag])
13
15
 
14
16
  # TODO: config?
15
17
  self.run_command(["git", "rm", "RELEASE.md"])
16
18
  self.run_command(["git", "add", "--all", "--", ":!main/.autopub"])
17
19
  self.run_command(["git", "commit", "-m", "🤖 autopub publish"])
18
- self.run_command(["git", "push", "--tags"])
20
+ self.run_command(["git", "push"])
21
+ self.run_command(["git", "push", tag])
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: autopub
3
- Version: 1.0.0a11
3
+ Version: 1.0.0a13
4
4
  Summary: Automatic package release upon pull request merge
5
5
  Home-page: https://github.com/autopub/autopub
6
6
  License: AGPL-3.0
@@ -1,17 +1,17 @@
1
- autopub/__init__.py,sha256=aUty-LxZ0GN1o26hCZQnIjVAo1W2M18bNe5WRvKNIE8,5881
1
+ autopub/__init__.py,sha256=5_pNQowknbDutY_sGZELsr9aKpzoPiA9h4oCP_9Fgd8,5896
2
2
  autopub/cli/__init__.py,sha256=2tpSa8AVa2dnE62GSG5R8fnalAqybcCK-aV2flQItjQ,3068
3
3
  autopub/cli/plugins.py,sha256=0wzL1ipSrNWh2hi2fp0k0HL15GPncSqKgt15tHRM_pw,1117
4
4
  autopub/exceptions.py,sha256=JYn8sIYWCedhtO3XfftZ0M5M_rAPxiGQ4MGbWUaTYwE,1243
5
5
  autopub/plugins/__init__.py,sha256=kh4bLjHLgjjlb2GGBI5zaTPfJ1wv5WANg1qQbaEs86I,1378
6
6
  autopub/plugins/bump_version.py,sha256=rNKczSd9lxR7uhzugH7pppq4k1Q8oaVN_WApxk4xDSU,1441
7
- autopub/plugins/git.py,sha256=ALq-CJebIjSqpUDkJzzcleXonUV8R120tFbNpjB_vjk,749
7
+ autopub/plugins/git.py,sha256=7JXQZDV4CM43gQWl16mGjtuTgbqJ7PiZ2wYLW8ygX_0,805
8
8
  autopub/plugins/pdm.py,sha256=Pczye06fKg8_HMJDkEfMXQyvao9rZ7sqzTHFd6lLEpU,532
9
9
  autopub/plugins/poetry.py,sha256=d2LvW9RI7ZB3reBOXbcp1mqWmzQ06Uyg_T-MxTvlSBg,517
10
10
  autopub/plugins/update_changelog.py,sha256=PVFww5CG9XsF8lNyIhSlOWA7CkjpmPCWiBxUOI90RIg,1525
11
11
  autopub/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
12
12
  autopub/types.py,sha256=FcRH4l27nrkQFUQrbAKxNzPPJfzg_0DExZYsCu9Jdzk,249
13
- autopub-1.0.0a11.dist-info/LICENSE,sha256=hIahDEOTzuHCU5J2nd07LWwkLW7Hko4UFO__ffsvB-8,34523
14
- autopub-1.0.0a11.dist-info/METADATA,sha256=pbPfrWlo1-_Pqh2j0PsVOz6TT2f_ScksaWleWrlm3Vk,3758
15
- autopub-1.0.0a11.dist-info/WHEEL,sha256=d2fvjOD7sXsVzChCqf0Ty0JbHKBaLYwDbGQDwQTnJ50,88
16
- autopub-1.0.0a11.dist-info/entry_points.txt,sha256=oeTav5NgCxif6mcZ_HeVGgGv5LzS4DwdI01nr4bO1IM,43
17
- autopub-1.0.0a11.dist-info/RECORD,,
13
+ autopub-1.0.0a13.dist-info/LICENSE,sha256=hIahDEOTzuHCU5J2nd07LWwkLW7Hko4UFO__ffsvB-8,34523
14
+ autopub-1.0.0a13.dist-info/METADATA,sha256=ylyQowCHlIOPRVQ3bgsN2fADrxYGR9HPYUqCMXnbkro,3758
15
+ autopub-1.0.0a13.dist-info/WHEEL,sha256=d2fvjOD7sXsVzChCqf0Ty0JbHKBaLYwDbGQDwQTnJ50,88
16
+ autopub-1.0.0a13.dist-info/entry_points.txt,sha256=oeTav5NgCxif6mcZ_HeVGgGv5LzS4DwdI01nr4bO1IM,43
17
+ autopub-1.0.0a13.dist-info/RECORD,,