Skip to content

Bump prov from 1.5.1 to 3.3.1 - #113

Open
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/pip/prov-3.3.1
Open

dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/pip/prov-3.3.1

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Nov 30, 2026

Copy link
Copy Markdown
Contributor

Bumps prov from 1.5.1 to 3.3.1.

Release notes

Sourced from prov's releases.

3.3.1 is a point release that fixes bugs in the readers, the writers and prov-convert, and supports Python 3.10 again, from 3.10.7. It reads PROV-JSON and PROV-JSONLD input more strictly and needs rdflib 7.1.1 or later for the rdf extra.

Breaking changes

  • The PROV-JSON reader raises ProvJSONException when the keys that name one formal attribute, such as prov:activity and p:activity with p bound to the PROV namespace, give it more than one value, where 3.3.0 kept the last value without a message (#774)
  • The PROV-JSONLD reader takes "@type" and a formal attribute's single value only under the bare term, such as "Entity" or "activity", and reads any other key as a qualified name whose bare strings stay strings, as the upgrade guide details (#783)
  • encoding_provn_value() writes a qualified name as 'ex:a' and an Identifier as "iri" %% xsd:anyURI, the forms the PROV-N writer uses. Call str() on the value for the bare form, which 3.3.0 returned and the PROV-N reader rejects (#821)
  • The rdf extra needs rdflib 7.1.1 or later, because rdflib 7.0.0 rounds a time's fraction beyond six digits where later releases truncate it, and 7.1.0 cannot write Turtle, long Turtle, TriG or N3 for some ill-typed numbers (#824)

Fixes

  • prov-convert leaves an existing output file as it was when the write fails, including when the output is the input file, where 3.3.0 could leave it empty or partial (#745)
  • prov.graph.prov_to_graph() raises TypeError when given anything other than a ProvDocument, such as a bundle, where 3.3.0 raised AttributeError (#746)
  • copy.copy() of a NamespaceManager gives a manager whose namespace declarations are its own, where in 3.3.0 a namespace added to the copy also changed how the original resolved names (#747)
  • The PROV-O writer keeps both parties of an alternateOf that has an identifier and drops the identifier with a ProvWarning, because PROV-O cannot hold it, where 3.3.0 wrote neither party (#759)
  • The PROV-JSONLD reader registers the rdf, rdfs and provext prefixes that the submission context binds when a document references it, so names under them resolve, where 3.3.0 rejected them as undeclared (#724)
  • A datetime subclass with a fraction beyond microseconds, such as a nanosecond pandas Timestamp, is written to the microsecond under prov:time, prov:startTime and prov:endTime, where 3.3.0 wrote every digit and most of prov's readers rejected the file (#822)
  • The PROV-XML reader's warnings about a skipped <prov:other> element or an attribute the model cannot represent, and the PROV-O reader's warning about unconverted types, are a ProvWarning, as the conformance page says, and still a UserWarning, where 3.3.0 warned a UserWarning only (#826)
  • ProvJSONEncoder raises TypeError for an object it cannot encode, as json's own encoder does, where 3.3.0 recursed until RecursionError (#786)

Project

  • prov supports Python 3.10 again, from 3.10.7, until Ubuntu 22.04 LTS leaves standard support in May 2027, under the widened support policy. On 3.10, an upgrade from 3.2.3 meets the changes in Upgrading to prov 3.3.0 (#778)
  • prov.dot no longer has htlm_link_if_uri(), which was never public API and which nothing in prov called (#836)

3.3.0 is a minor release that rejects the input 3.2.3 warned about with ProvFutureRejectionWarning, requires Python 3.11, and adds a Pygments lexer for PROV-N and new command-line options. Code that reads PROV it did not write, catches a reader's errors or compares literals may need changes, and Upgrading to prov 3.3.0 gives each case. It also fixes GHSA-pp6h-3q6w-xr98 in the PROV-O reader, which 2.5.4 fixes on the 2.x line. Against 3.2.3 on the benchmark suite, most operations are faster by up to 30%, but the PROV-JSON and PROV-JSONLD reads are 7% to 11% slower, mostly because each attribute value gets its comparison key when it is asserted, and prov_to_graph() is 27% to 38% slower because it now includes the records inside bundles.

These changes need action:

  • Install on Python 3.11 or later
  • Catch prov.serializers.ProvSerializationError, or prov.Error, around a read (Exceptions)
  • Correct the input that raised ProvFutureRejectionWarning in 3.2.3, because it now raises an error (Read the message)
  • Index the list that get_records() with a class returns, where 3.2.3 returned an iterator (get_records())

Breaking changes

3.3.0 rejects the input that 3.2.3 warned about with a ProvFutureRejectionWarning, and a further set of ill-formed inputs, and reads a few inputs differently. Upgrading to prov 3.3.0 lists each message, the input that causes it and what to write instead.

  • prov requires Python 3.11 or later, since Python 3.10 reached its end of life on 2026-10-31 (#604)
  • A reader raises its format's error, a ProvSerializationError, for a model rejection too, where 3.2.3 raised the model's error, or a bare ValueError or AttributeError. Write except ProvSerializationError around a read, or except prov.Error for both kinds (#653)
  • A Literal of xsd:boolean, xsd:decimal, xsd:double, xsd:float or an integer type compares by its value, so Literal("05", XSD_INT) == Literal("5", XSD_INT), and keeps a non-canonical text such as "05" as written, where 3.2.3 compared every type but xsd:decimal by its text (#527)
  • A record without an identifier no longer equals one with an identifier, and two documents are equal only when they hold the same bundles, where 3.2.3 found each pair equal from one side. hash() agrees with ==, and prov-compare exits by the same rule (#525)
  • unified() keeps each record once and drops a record equal to an earlier one, so two equal anonymous used statements become one and prov_to_graph() and prov_to_dot() draw one edge, where 3.2.3 kept both (#548)
  • get_records() with a class or a tuple of classes returns a list, so write next(iter(...)) to take the first record, where 3.2.3 returned a one-shot iterator (#491)
  • A bundle declares only the namespaces it binds itself, so a document read from PROV-JSON, PROV-JSONLD or PROV-XML no longer writes the document's prefix ex again inside each bundle that uses it, and bundle.get_registered_namespaces() lists the bundle's own declarations only (#449)
  • The PROV-N writer wraps a statement with an attribute block wider than 80 columns, one attribute per row, where 3.2.3 wrote one line. Pass width=None for one line, and give a get_provn() override a width parameter (#131)
  • A record holds one value of each PROV attribute, so assert one hadMember per entity, where 3.2.3 accepted several in one call. The PROV-XML reader reads a hadMember with several entities as one record per entity (#700)
  • A hadMember, alternateOf, specializationOf or mentionOf missing either party raises ProvMissingFormalAttribute, so assert both, and every reader skips such a statement with a ProvWarning, where 3.2.3 built the record (#710)
  • A Literal whose datatype is not a QualifiedName or None raises ProvValueError when it is built or unpickled, so pass the resolved name, where 3.2.3 accepted any object (#705)
  • prov_to_graph() flattens the document before it unifies it, so the records inside bundles become nodes and edges, where 3.2.3 drew the top-level records only. Pass it a document, not a bundle. Bundles that disagree about a shared identifier raise ProvUnificationError (#651)

... (truncated)

Changelog

Sourced from prov's changelog.

Changelog archive (1.5.3 and earlier)

Releases before 2.0.0. For 2.0.0 and later, see the current changelog.

1.5.3 (2018-11-20)

  • Reorganised source code to /src
  • Added Python 3.7 support
  • Removed Python 3.3 support due to end-of-life
  • plus minor improvements and bug fixes

1.5.2 (2018-02-06)

  • Fixed association relation in RDF serialisation
  • Fixed compatibility with networkx 2.0+
Commits
  • 4733496 Merge pull request #846 from trungdong/release/3.3.1
  • 021055b release: 3.3.1
  • 88df067 Merge pull request #844 from trungdong/fix/3.3.1-encoder-default-typeerror
  • 15b651a chore: record the nested-document test and restamp the fallback row
  • f96c53c fix: document the encoder's TypeError and test a nested document
  • da0e7f3 chore: move the encoder fallback row from rewrite to keep
  • a6ce4d2 fix: raise TypeError from ProvJSONEncoder for an object it cannot encode
  • 6eabc08 Merge pull request #842 from trungdong/chore/test-audit-rules
  • e1ae482 chore: name the half-ledger in the classifier brief and cite the current rule...
  • d2e050f chore: give the split-module rule and the clearer-failure rule one home each
  • Additional commits viewable in compare view

Most Recent Ignore Conditions Applied to This Pull Request
Dependency Name Ignore Conditions
prov [>= 2.dev0, < 3]

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 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 [prov](https://github.com/trungdong/prov) from 1.5.1 to 3.3.1.
- [Release notes](https://github.com/trungdong/prov/releases)
- [Changelog](https://github.com/trungdong/prov/blob/main/docs/changelog-archive.md)
- [Commits](trungdong/prov@1.5.1...3.3.1)

---
updated-dependencies:
- dependency-name: prov
  dependency-version: 3.3.1
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file python Pull requests that update Python code labels Nov 30, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file python Pull requests that update Python code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants