Skip to content

pyparsing DeprecationWarnings #5

@gotmax23

Description

@gotmax23

There are multiple places in the code that raise PyparsingDeprecationWarnings. I got these from running the https://gitlab.com/fedora/sigs/go/go-vendor-tools unit tests that indirectly depend on packvers through scancode-toolkit.

tests/pytests/test_license_detection.py::test_load_dump_license_data[ScancodeLicenseDetector-case2]
  /home/gotmax/dev/go-vendor-tools/.nox/test-3-13/lib64/python3.13/site-packages/packvers/markers.py:112: PyparsingDeprecationWarning: 'setParseAction' deprecated - use 'set_parse_action'
    VARIABLE.setParseAction(lambda s, l, t: Variable(ALIASES.get(t[0], t[0])))

tests/pytests/test_license_detection.py::test_load_dump_license_data[ScancodeLicenseDetector-case2]
  /home/gotmax/dev/go-vendor-tools/.nox/test-3-13/lib64/python3.13/site-packages/packvers/markers.py:119: PyparsingDeprecationWarning: 'setParseAction' deprecated - use 'set_parse_action'
    MARKER_OP.setParseAction(lambda s, l, t: Op(t[0]))

tests/pytests/test_license_detection.py::test_load_dump_license_data[ScancodeLicenseDetector-case2]
  /home/gotmax/dev/go-vendor-tools/.nox/test-3-13/lib64/python3.13/site-packages/packvers/markers.py:122: PyparsingDeprecationWarning: 'setParseAction' deprecated - use 'set_parse_action'
    MARKER_VALUE.setParseAction(lambda s, l, t: Value(t[0]))

tests/pytests/test_license_detection.py::test_load_dump_license_data[ScancodeLicenseDetector-case2]
  /home/gotmax/dev/go-vendor-tools/.nox/test-3-13/lib64/python3.13/site-packages/packvers/markers.py:129: PyparsingDeprecationWarning: 'setParseAction' deprecated - use 'set_parse_action'
    MARKER_ITEM.setParseAction(lambda s, l, t: tuple(t[0]))

tests/pytests/test_license_detection.py::test_load_dump_license_data[ScancodeLicenseDetector-case2]
  /home/gotmax/dev/go-vendor-tools/.nox/test-3-13/lib64/python3.13/site-packages/packvers/requirements.py:64: PyparsingDeprecationWarning: 'setParseAction' deprecated - use 'set_parse_action'
    _VERSION_SPEC.setParseAction(lambda s, l, t: t._raw_spec or "")

tests/pytests/test_license_detection.py::test_load_dump_license_data[ScancodeLicenseDetector-case2]
  /home/gotmax/dev/go-vendor-tools/.nox/test-3-13/lib64/python3.13/site-packages/packvers/requirements.py:66: PyparsingDeprecationWarning: 'originalTextFor' deprecated - use 'original_text_for'
    VERSION_SPEC = originalTextFor(_VERSION_SPEC)("specifier")

tests/pytests/test_license_detection.py::test_load_dump_license_data[ScancodeLicenseDetector-case2]
  /home/gotmax/dev/go-vendor-tools/.nox/test-3-13/lib64/python3.13/site-packages/packvers/requirements.py:67: PyparsingDeprecationWarning: 'setParseAction' deprecated - use 'set_parse_action'
    VERSION_SPEC.setParseAction(lambda s, l, t: t[1])

tests/pytests/test_license_detection.py::test_load_dump_license_data[ScancodeLicenseDetector-case2]
  /home/gotmax/dev/go-vendor-tools/.nox/test-3-13/lib64/python3.13/site-packages/packvers/requirements.py:69: PyparsingDeprecationWarning: 'originalTextFor' deprecated - use 'original_text_for'
    MARKER_EXPR = originalTextFor(MARKER_EXPR())("marker")

tests/pytests/test_license_detection.py::test_load_dump_license_data[ScancodeLicenseDetector-case2]
  /home/gotmax/dev/go-vendor-tools/.nox/test-3-13/lib64/python3.13/site-packages/packvers/requirements.py:70: PyparsingDeprecationWarning: 'setParseAction' deprecated - use 'set_parse_action'
    MARKER_EXPR.setParseAction(

tests/pytests/test_license_detection.py::test_load_dump_license_data[ScancodeLicenseDetector-case2]
  /home/gotmax/dev/go-vendor-tools/.nox/test-3-13/lib64/python3.13/site-packages/packvers/requirements.py:84: PyparsingDeprecationWarning: 'parseString' deprecated - use 'parse_string'
    REQUIREMENT.parseString("x[]")

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions