Skip to content

Commit b4d638a

Browse files
Support pyparsing version 3 (#907)
* * Change pyparsing usage to be compatible with version 3 upcaseTokens -> pyparsing_common.upcaseTokens * Spec minimum pyparsing in the conda package * syntax fix Co-authored-by: AU <[email protected]>
1 parent 20097a9 commit b4d638a

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

cadquery/selectors.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,13 @@
3131
geom_LUT_FACE,
3232
)
3333
from pyparsing import (
34+
pyparsing_common,
3435
Literal,
3536
Word,
3637
nums,
3738
Optional,
3839
Combine,
3940
oneOf,
40-
upcaseTokens,
4141
CaselessLiteral,
4242
Group,
4343
infixNotation,
@@ -635,7 +635,7 @@ def _makeGrammar():
635635
cqtype = oneOf(
636636
set(geom_LUT_EDGE.values()) | set(geom_LUT_FACE.values()), caseless=True,
637637
)
638-
cqtype = cqtype.setParseAction(upcaseTokens)
638+
cqtype = cqtype.setParseAction(pyparsing_common.upcaseTokens)
639639

640640
# type operator
641641
type_op = Literal("%")

conda/meta.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ requirements:
1717
- python {{ environ.get('PYTHON_VERSION') }}
1818
- ocp 7.5.2
1919
- hdf5 1.10.6 *1114
20-
- pyparsing 2.*
20+
- pyparsing >=2.1.9
2121
- ezdxf
2222
- ipython
2323
- typing_extensions

environment.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ dependencies:
77
- python>=3.6
88
- ipython
99
- ocp=7.5.1
10-
- pyparsing
10+
- pyparsing>=2.1.9
1111
- sphinx=3.2.1
1212
- sphinx_rtd_theme
1313
- sphinx-autodoc-typehints

0 commit comments

Comments
 (0)