chore(pip-prod)(deps): bump pyparsing from 3.1.2 to 3.1.4 #273

Merged
dependabot[bot] merged 1 commits from dependabot/pip/pyparsing-3.1.4 into main 2024-08-26 19:40:22 +02:00
dependabot[bot] commented 2024-08-26 18:31:26 +02:00 (Migrated from github.com)

Bumps pyparsing from 3.1.2 to 3.1.4.

Changelog

Sourced from pyparsing's changelog.

Version 3.1.4 - August, 2024

  • Fixed a regression introduced in pyparsing 3.1.3, addition of a type annotation that referenced re.Pattern. Since this type was introduced in Python 3.7, using this type definition broke Python 3.6 installs of pyparsing 3.1.3. PR submitted by Felix Fontein, nice work!

Version 3.1.3 - August, 2024

  • Added new Tag ParserElement, for inserting metadata into the parsed results. This allows a parser to add metadata or annotations to the parsed tokens. The Tag element also accepts an optional value parameter, defaulting to True. See the new tag_metadata.py example in the examples directory.

    Example:

      # add tag indicating mood
      end_punc = "." | ("!" + Tag("enthusiastic")))
      greeting = "Hello" + Word(alphas) + end_punc
    

    result = greeting.parse_string("Hello World.") print(result.dump())

    result = greeting.parse_string("Hello World!") print(result.dump())

    prints:

      ['Hello', 'World', '.']
    

    ['Hello', 'World', '!']

    • enthusiastic: True
  • Added example mongodb_query_expression.py, to convert human-readable infix query expressions (such as a==100 and b>=200) and transform them into the equivalent query argument for the pymongo package ({'$and': [{'a': 100}, {'b': {'$gte': 200}}]}). Supports many equality and inequality operators - see the docstring for the transform_query function for more examples.

  • Fixed issue where PEP8 compatibility names for ParserElement static methods were not themselves defined as staticmethods. When called using a ParserElement instance, this resulted in a TypeError exception. Reported by eylenburg (#548).

  • To address a compatibility issue in RDFLib, added a property setter for the ParserElement.name property, to call ParserElement.set_name.

  • Modified ParserElement.set_name() to accept a None value, to clear the defined name and corresponding error message for a ParserElement.

  • ... (truncated)

    Commits
    • b846e4a Prep for 3.1.4 release
    • 9bd2356 Add Python 3.6 to CI (#566)
    • ee50a19 Add Tag notes to HowToUsePyparsing.rst
    • 3ffc3ef Fix typo
    • e5e97f7 Add mongodb_query_expression.py to examples; updated 0README.html and test_ex...
    • 10cef98 Add Tag ParserElement class
    • cf41d90 Prep for 3.1.3 release
    • d7c163c Some minor code changes in chemical_formulas.py
    • eb56030 Various code cleanups
    • a9e7d47 Added name property setter, and enhanced set_name() to accept a None value to...
    • Additional commits viewable in compare view

    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    Bumps [pyparsing](https://github.com/pyparsing/pyparsing) from 3.1.2 to 3.1.4. <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/pyparsing/pyparsing/blob/master/CHANGES">pyparsing's changelog</a>.</em></p> <blockquote> <h2>Version 3.1.4 - August, 2024</h2> <ul> <li>Fixed a regression introduced in pyparsing 3.1.3, addition of a type annotation that referenced <code>re.Pattern</code>. Since this type was introduced in Python 3.7, using this type definition broke Python 3.6 installs of pyparsing 3.1.3. PR submitted by Felix Fontein, nice work!</li> </ul> <h2>Version 3.1.3 - August, 2024</h2> <ul> <li> <p>Added new <code>Tag</code> ParserElement, for inserting metadata into the parsed results. This allows a parser to add metadata or annotations to the parsed tokens. The <code>Tag</code> element also accepts an optional <code>value</code> parameter, defaulting to <code>True</code>. See the new <code>tag_metadata.py</code> example in the <code>examples</code> directory.</p> <p>Example:</p> <pre><code> # add tag indicating mood end_punc = &quot;.&quot; | (&quot;!&quot; + Tag(&quot;enthusiastic&quot;))) greeting = &quot;Hello&quot; + Word(alphas) + end_punc <p>result = greeting.parse_string(&quot;Hello World.&quot;) print(result.dump())</p> <p>result = greeting.parse_string(&quot;Hello World!&quot;) print(result.dump()) </code></pre></p> <p>prints:</p> <pre><code> ['Hello', 'World', '.'] <p>['Hello', 'World', '!']</p> <ul> <li>enthusiastic: True </code></pre></li> </ul> </li> <li> <p>Added example <code>mongodb_query_expression.py</code>, to convert human-readable infix query expressions (such as <code>a==100 and b&gt;=200</code>) and transform them into the equivalent query argument for the pymongo package (<code>{'$and': [{'a': 100}, {'b': {'$gte': 200}}]}</code>). Supports many equality and inequality operators - see the docstring for the <code>transform_query</code> function for more examples.</p> </li> <li> <p>Fixed issue where PEP8 compatibility names for <code>ParserElement</code> static methods were not themselves defined as <code>staticmethods</code>. When called using a <code>ParserElement</code> instance, this resulted in a <code>TypeError</code> exception. Reported by eylenburg (<a href="https://redirect.github.com/pyparsing/pyparsing/issues/548">#548</a>).</p> </li> <li> <p>To address a compatibility issue in RDFLib, added a property setter for the <code>ParserElement.name</code> property, to call <code>ParserElement.set_name</code>.</p> </li> <li> <p>Modified <code>ParserElement.set_name()</code> to accept a None value, to clear the defined name and corresponding error message for a <code>ParserElement</code>.</p> </li> </ul> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/pyparsing/pyparsing/commit/b846e4a71416dbf2d801bfe1859aa8e3f3afbe47"><code>b846e4a</code></a> Prep for 3.1.4 release</li> <li><a href="https://github.com/pyparsing/pyparsing/commit/9bd2356993ad6d3b2cb1a3460b74c7723ab09564"><code>9bd2356</code></a> Add Python 3.6 to CI (<a href="https://redirect.github.com/pyparsing/pyparsing/issues/566">#566</a>)</li> <li><a href="https://github.com/pyparsing/pyparsing/commit/ee50a19dab1775e763c920e5e12f7e896b255ebd"><code>ee50a19</code></a> Add Tag notes to HowToUsePyparsing.rst</li> <li><a href="https://github.com/pyparsing/pyparsing/commit/3ffc3ef126645f519746a609052249d51548d918"><code>3ffc3ef</code></a> Fix typo</li> <li><a href="https://github.com/pyparsing/pyparsing/commit/e5e97f797dc05f8255b0044e0ca16100772b5045"><code>e5e97f7</code></a> Add mongodb_query_expression.py to examples; updated 0README.html and test_ex...</li> <li><a href="https://github.com/pyparsing/pyparsing/commit/10cef98cee21f49696119af402c904def9bdb13b"><code>10cef98</code></a> Add Tag ParserElement class</li> <li><a href="https://github.com/pyparsing/pyparsing/commit/cf41d902772c169ca7740e99211c9f7d0163a753"><code>cf41d90</code></a> Prep for 3.1.3 release</li> <li><a href="https://github.com/pyparsing/pyparsing/commit/d7c163c1d9079b65bf5ecbc2d118932b9a7c497e"><code>d7c163c</code></a> Some minor code changes in chemical_formulas.py</li> <li><a href="https://github.com/pyparsing/pyparsing/commit/eb56030595e867a5ef1260d4dcd2e45fe1cb20af"><code>eb56030</code></a> Various code cleanups</li> <li><a href="https://github.com/pyparsing/pyparsing/commit/a9e7d47ef286569cbe97f8ca86a8d34d008d7032"><code>a9e7d47</code></a> Added name property setter, and enhanced set_name() to accept a None value to...</li> <li>Additional commits viewable in <a href="https://github.com/pyparsing/pyparsing/compare/pyparsing_3.1.2...3.1.4">compare view</a></li> </ul> </details> <br /> [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=pyparsing&package-manager=pip&previous-version=3.1.2&new-version=3.1.4)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) </details>
    luketainton (Migrated from github.com) reviewed 2024-08-26 18:31:26 +02:00
    sonarqubecloud[bot] commented 2024-08-26 18:41:23 +02:00 (Migrated from github.com)
    ## [![Quality Gate Passed](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/checks/QualityGateBadge/qg-passed-20px.png 'Quality Gate Passed')](https://sonarcloud.io/dashboard?id=luketainton_roboluke-tasks&pullRequest=273) **Quality Gate passed** Issues ![](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/common/passed-16px.png '') [0 New issues](https://sonarcloud.io/project/issues?id=luketainton_roboluke-tasks&pullRequest=273&issueStatuses=OPEN,CONFIRMED&sinceLeakPeriod=true) ![](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/common/accepted-16px.png '') [0 Accepted issues](https://sonarcloud.io/project/issues?id=luketainton_roboluke-tasks&pullRequest=273&issueStatuses=ACCEPTED) Measures ![](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/common/passed-16px.png '') [0 Security Hotspots](https://sonarcloud.io/project/security_hotspots?id=luketainton_roboluke-tasks&pullRequest=273&issueStatuses=OPEN,CONFIRMED&sinceLeakPeriod=true) ![](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/common/passed-16px.png '') [0.0% Coverage on New Code](https://sonarcloud.io/component_measures?id=luketainton_roboluke-tasks&pullRequest=273&metric=new_coverage&view=list) ![](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/common/passed-16px.png '') [0.0% Duplication on New Code](https://sonarcloud.io/component_measures?id=luketainton_roboluke-tasks&pullRequest=273&metric=new_duplicated_lines_density&view=list) [See analysis details on SonarCloud](https://sonarcloud.io/dashboard?id=luketainton_roboluke-tasks&pullRequest=273)
    Sign in to join this conversation.
    No description provided.