vulkan-object 1.4.349__tar.gz → 1.4.351__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.
Files changed (26) hide show
  1. {vulkan_object-1.4.349/src/vulkan_object.egg-info → vulkan_object-1.4.351}/PKG-INFO +1 -1
  2. {vulkan_object-1.4.349 → vulkan_object-1.4.351}/pyproject.toml +1 -1
  3. {vulkan_object-1.4.349 → vulkan_object-1.4.351}/src/vulkan_object/parse_dependency.py +14 -14
  4. {vulkan_object-1.4.349 → vulkan_object-1.4.351}/src/vulkan_object/vk.xml +732 -180
  5. {vulkan_object-1.4.349 → vulkan_object-1.4.351}/src/vulkan_object/vulkan_object.py +1 -1
  6. {vulkan_object-1.4.349 → vulkan_object-1.4.351/src/vulkan_object.egg-info}/PKG-INFO +1 -1
  7. {vulkan_object-1.4.349 → vulkan_object-1.4.351}/LICENSE +0 -0
  8. {vulkan_object-1.4.349 → vulkan_object-1.4.351}/MANIFEST.in +0 -0
  9. {vulkan_object-1.4.349 → vulkan_object-1.4.351}/README.md +0 -0
  10. {vulkan_object-1.4.349 → vulkan_object-1.4.351}/setup.cfg +0 -0
  11. {vulkan_object-1.4.349 → vulkan_object-1.4.351}/src/vulkan_object/__init__.py +0 -0
  12. {vulkan_object-1.4.349 → vulkan_object-1.4.351}/src/vulkan_object/apiconventions.py +0 -0
  13. {vulkan_object-1.4.349 → vulkan_object-1.4.351}/src/vulkan_object/base_generator.py +0 -0
  14. {vulkan_object-1.4.349 → vulkan_object-1.4.351}/src/vulkan_object/cgenerator.py +0 -0
  15. {vulkan_object-1.4.349 → vulkan_object-1.4.351}/src/vulkan_object/generator.py +0 -0
  16. {vulkan_object-1.4.349 → vulkan_object-1.4.351}/src/vulkan_object/reg.py +0 -0
  17. {vulkan_object-1.4.349 → vulkan_object-1.4.351}/src/vulkan_object/spec_tools/conventions.py +0 -0
  18. {vulkan_object-1.4.349 → vulkan_object-1.4.351}/src/vulkan_object/spec_tools/util.py +0 -0
  19. {vulkan_object-1.4.349 → vulkan_object-1.4.351}/src/vulkan_object/stripAPI.py +0 -0
  20. {vulkan_object-1.4.349 → vulkan_object-1.4.351}/src/vulkan_object/video.xml +0 -0
  21. {vulkan_object-1.4.349 → vulkan_object-1.4.351}/src/vulkan_object/vkconventions.py +0 -0
  22. {vulkan_object-1.4.349 → vulkan_object-1.4.351}/src/vulkan_object.egg-info/SOURCES.txt +0 -0
  23. {vulkan_object-1.4.349 → vulkan_object-1.4.351}/src/vulkan_object.egg-info/dependency_links.txt +0 -0
  24. {vulkan_object-1.4.349 → vulkan_object-1.4.351}/src/vulkan_object.egg-info/requires.txt +0 -0
  25. {vulkan_object-1.4.349 → vulkan_object-1.4.351}/src/vulkan_object.egg-info/top_level.txt +0 -0
  26. {vulkan_object-1.4.349 → vulkan_object-1.4.351}/tests/test_registry.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: vulkan-object
3
- Version: 1.4.349
3
+ Version: 1.4.351
4
4
  Summary: An easy-to-use Python wrapper for the Vulkan API registry.
5
5
  Author-email: Spencer Fricke <spencer@lunarg.com>
6
6
  Classifier: Programming Language :: Python :: 3
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "vulkan-object"
7
- version = "1.4.349"
7
+ version = "1.4.351"
8
8
  dependencies = [
9
9
  "pyparsing",
10
10
  ]
@@ -45,8 +45,8 @@ from pyparsing import (
45
45
  ParseException,
46
46
  CaselessKeyword,
47
47
  Suppress,
48
- delimitedList,
49
- infixNotation,
48
+ DelimitedList,
49
+ infix_notation,
50
50
  Combine,
51
51
  )
52
52
  import math
@@ -125,8 +125,8 @@ def push_first(toks):
125
125
  dependencyIdent = Word(f"{alphanums}_:")
126
126
 
127
127
  # Infix expression for depends expressions
128
- dependencyExpr = pp.infixNotation(dependencyIdent,
129
- [ (pp.oneOf(', +'), 2, pp.opAssoc.LEFT), ])
128
+ dependencyExpr = pp.infix_notation(dependencyIdent,
129
+ [ (pp.one_of(', +'), 2, pp.OpAssoc.LEFT), ])
130
130
 
131
131
  # BNF grammar for depends expressions
132
132
  _bnf = None
@@ -144,16 +144,16 @@ def dependencyBNF():
144
144
  boolop = and_ | or_
145
145
 
146
146
  expr = Forward()
147
- expr_list = delimitedList(Group(expr))
147
+ expr_list = DelimitedList(Group(expr))
148
148
  atom = (
149
149
  boolop[...]
150
150
  + (
151
- (dependencyIdent).setParseAction(push_first)
151
+ (dependencyIdent).set_parse_action(push_first)
152
152
  | Group(lpar + expr + rpar)
153
153
  )
154
154
  )
155
155
 
156
- expr <<= atom + (boolop + atom).setParseAction(push_first)[...]
156
+ expr <<= atom + (boolop + atom).set_parse_action(push_first)[...]
157
157
  _bnf = expr
158
158
  return _bnf
159
159
 
@@ -180,11 +180,11 @@ def protectBNF():
180
180
  atom = (
181
181
  boolop[...]
182
182
  + (
183
- protectIdent.copy().setParseAction(push_first)
183
+ protectIdent.copy().set_parse_action(push_first)
184
184
  | Group(lpar + expr + rpar)
185
185
  )
186
186
  )
187
- expr <<= atom + (boolop + atom).setParseAction(push_first)[...]
187
+ expr <<= atom + (boolop + atom).set_parse_action(push_first)[...]
188
188
  _protect_bnf = expr
189
189
  return _protect_bnf
190
190
 
@@ -225,7 +225,7 @@ def evaluateDependency(dependency, isSupported):
225
225
 
226
226
  global exprStack
227
227
  exprStack = []
228
- results = dependencyBNF().parseString(dependency, parseAll=True)
228
+ results = dependencyBNF().parse_string(dependency, parse_all=True)
229
229
  val = evaluateStack(exprStack[:], isSupported)
230
230
  return val
231
231
 
@@ -273,7 +273,7 @@ def dependencyLanguage(dependency, leafMarkup, opMarkup, parenthesize):
273
273
 
274
274
  global exprStack
275
275
  exprStack = []
276
- results = dependencyBNF().parseString(dependency, parseAll=True)
276
+ results = dependencyBNF().parse_string(dependency, parse_all=True)
277
277
  return evalDependencyLanguage(exprStack, leafMarkup, opMarkup, parenthesize, root = True, parent_op = None)
278
278
 
279
279
  # aka specmacros = False
@@ -314,7 +314,7 @@ def protectLanguageC(protect):
314
314
  - protect - the protect expression string"""
315
315
  global exprStack
316
316
  exprStack = []
317
- protectBNF().parseString(protect, parseAll=True)
317
+ protectBNF().parse_string(protect, parse_all=True)
318
318
  return evalDependencyLanguage(exprStack, leafMarkupCProtect, opMarkupC,
319
319
  parenthesize=True, root=True, parent_op=None)
320
320
 
@@ -344,7 +344,7 @@ def dependencyNames(dependency):
344
344
 
345
345
  global exprStack
346
346
  exprStack = []
347
- results = dependencyBNF().parseString(dependency, parseAll=True)
347
+ results = dependencyBNF().parse_string(dependency, parse_all=True)
348
348
  # print(f'names(): stack = {exprStack}')
349
349
  return evalDependencyNames(exprStack)
350
350
 
@@ -386,7 +386,7 @@ def dependencyMarkup(dependency):
386
386
 
387
387
  - dependency - the expression"""
388
388
 
389
- parsed = dependencyExpr.parseString(dependency)
389
+ parsed = dependencyExpr.parse_string(dependency)
390
390
  return markupTraverse(parsed)
391
391
 
392
392
  if __name__ == "__main__":