dfpyre 0.7.5__tar.gz → 0.7.7__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.

Potentially problematic release.


This version of dfpyre might be problematic. Click here for more details.

@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: dfpyre
3
- Version: 0.7.5
3
+ Version: 0.7.7
4
4
  Summary: A package for creating and modifying code templates for the DiamondFire Minecraft server.
5
5
  Home-page: https://github.com/Amp63/pyre
6
6
  License: MIT
@@ -12,7 +12,7 @@ Classifier: Programming Language :: Python :: 3
12
12
  Classifier: Programming Language :: Python :: 3.10
13
13
  Classifier: Programming Language :: Python :: 3.11
14
14
  Classifier: Programming Language :: Python :: 3.12
15
- Requires-Dist: mcitemlib (>=0.3.0,<0.4.0)
15
+ Requires-Dist: mcitemlib (>=0.3.1,<0.4.0)
16
16
  Project-URL: Repository, https://github.com/Amp63/pyre
17
17
  Description-Content-Type: text/markdown
18
18
 
@@ -63,6 +63,15 @@ class CodeBlock:
63
63
  return f'CodeBlock({self.data["block"]}, {self.name})'
64
64
  return f'CodeBlock(bracket, {self.data["type"]}, {self.data["direct"]})'
65
65
 
66
+ def __eq__(self, value):
67
+ if not isinstance(value, CodeBlock):
68
+ return False
69
+ return self.name == value.name and \
70
+ self.args == value.args and \
71
+ self.target == value.target and \
72
+ self.data == value.data and \
73
+ self.tags == value.tags
74
+
66
75
  def build(self, include_tags: bool=True) -> dict:
67
76
  """
68
77
  Builds a properly formatted block from a CodeBlock object.
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "dfpyre"
3
- version = "0.7.5"
3
+ version = "0.7.7"
4
4
  description = "A package for creating and modifying code templates for the DiamondFire Minecraft server."
5
5
  authors = ["Amp"]
6
6
  readme = "README.md"
@@ -12,7 +12,7 @@ exclude = ['examples']
12
12
 
13
13
  [tool.poetry.dependencies]
14
14
  python = "^3.10"
15
- mcitemlib = "^0.3.0"
15
+ mcitemlib = "^0.3.1"
16
16
 
17
17
 
18
18
  [build-system]
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes