autopub 1.0.0a39__tar.gz → 1.0.0a40__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: autopub
3
- Version: 1.0.0a39
3
+ Version: 1.0.0a40
4
4
  Summary: Automatic package release upon pull request merge
5
5
  Home-page: https://github.com/autopub/autopub
6
6
  Author: Justin Mayer
@@ -85,9 +85,6 @@ class GithubPlugin(AutopubPlugin):
85
85
  raise AutopubException("GITHUB_TOKEN environment variable is required")
86
86
 
87
87
  self.repository_name = os.environ.get("GITHUB_REPOSITORY")
88
- self.discussion_category_name = os.environ.get(
89
- "DISCUSSION_CATEGORY_NAME", self.configuration.discussion_category
90
- )
91
88
 
92
89
  @cached_property
93
90
  def _github(self) -> Github:
@@ -265,11 +262,11 @@ class GithubPlugin(AutopubPlugin):
265
262
  )
266
263
 
267
264
  for node in response["data"]["repository"]["discussionCategories"]["nodes"]:
268
- if node["name"] == self.discussion_category_name:
265
+ if node["name"] == self.configuration.discussion_category:
269
266
  return node["id"]
270
267
 
271
268
  raise AutopubException(
272
- f"Discussion category {self.discussion_category_name} not found"
269
+ f"Discussion category {self.configuration.discussion_category} not found"
273
270
  )
274
271
 
275
272
  def _create_discussion(self, release_info: ReleaseInfo) -> str:
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  requires-python = ">=3.9.0,<4.0"
3
- version = "1.0.0-alpha.39"
3
+ version = "1.0.0-alpha.40"
4
4
  name = "autopub"
5
5
  description = "Automatic package release upon pull request merge"
6
6
  authors = [
@@ -25,7 +25,7 @@ classifiers = [
25
25
  repository = "https://github.com/autopub/autopub"
26
26
  include = ["autopub/py.typed"]
27
27
  name = "autopub"
28
- version = "1.0.0-alpha.39"
28
+ version = "1.0.0-alpha.40"
29
29
  description = "Automatic package release upon pull request merge"
30
30
  authors = [
31
31
  "Justin Mayer <entroP@gmail.com>",
File without changes
File without changes
File without changes