Skip to content

v0.13.0

Choose a tag to compare

@LeMyst LeMyst released this 28 Oct 19:49
· 93 commits to master since this release
8016457

What's Changed

Breaking changes

  • Drop Python 3.9 support and update type hints by @LeMyst in #906
  • Fix bugs and refactor entity architecture by @LeMyst in #996
  • Drop mwoauth dependency, use oauthlib directly by @LeMyst in #998
  • Rewrite the fast run mode with scoped SPARQL queries by @LeMyst in #333
  • More write methods by @LeMyst in #479
  • Use a per-thread requests.Session instead of module-level sessions by @LeMyst in #981
  • Drop support for Python 3.10 by @LeMyst in #1051
  • Rely on wbi_backoff for SPARQL query retries by @etlel in #834
  • Fix Claims.add() default to preserve existing claims instead of replacing them by @LeMyst with @Copilot in #926
  • Reject empty values before writing, with an explicit error by @LeMyst in #1065
  • Use the WikibaseDatatype enum for the datatypes by @LeMyst in #1066
  • Make WikibaseRank and WikibaseSnakType StrEnum, WikibaseTimePrecision IntEnum by @LeMyst in #1067

New features and improvements

  • Add check_constraints() helper for constraint checking by @LeMyst in #997
  • Add PEP 561 py.typed marker by @LeMyst in #1011
  • Add authentication support to execute_sparql_query by @LeMyst in #1030
  • Align unused action_if_exists defaults on APPEND_OR_REPLACE by @LeMyst in #1055
  • Add support for merging multiple items and creating redirects by default by @dpriskorn in #917
  • Split model classes into their own file by @LeMyst in #1056
  • Add Aliases.add() to add aliases without removing existing ones by @LeMyst in #1057
  • Raise a clear error for Lexeme requests without WikibaseLexeme by @LeMyst in #1061
  • Add EditGroups support for custom bots by @LeMyst in #1063
  • Add check_wikibase() to report the features of a Wikibase instance by @LeMyst in #1064
  • Add WCQSAuth to query the Wikimedia Commons Query Service by @LeMyst in #1068

Bug fixes

  • Recover from lost sessions instead of failing writes by @LeMyst in #999
  • Fix mypy errors in reauthenticate() and run lint on dependency bumps by @LeMyst in #1010
  • Avoid mutating passed-in request data by @LeMyst in #982
  • Compare time values at their precision in fastrun by @LeMyst in #1058

Documentation

  • Fix outdated fastrun claim in README and version note in AGENTS.md by @LeMyst in #1012
  • Update AGENTS.md and ignore agent worktrees by @LeMyst in #1032
  • Update README to match the current code by @LeMyst in #1033
  • Prepare for the 0.13.0 release by @LeMyst in #1054
  • Mark the MediaInfo / Structured Data on Commons support as beta by @LeMyst in #1060
  • Add a README example to replace a property by another by @LeMyst in #1062
  • Fix the v0.13 retries entry for execute_sparql_query() in the README by @LeMyst in #1069

Dependencies

Other changes

  • Bump version to 0.12.15.dev0 in pyproject.toml by @LeMyst in #900
  • fix: let generate_entity_instances preserve login information by @lihaohong6 in #912
  • Add User-Agent header to OAuth2 token request by @LeMyst in #924
  • Release version 0.12.15 by @LeMyst in #938
  • Bump version to 0.12.16.dev0 by @LeMyst in #955
  • Update CI configuration to use Ubuntu 24.04 container by @LeMyst in #973
  • Migrate to offline test suite with mocked Wikibase API by @LeMyst in #994
  • Add .run/ to gitignore by @LeMyst in #1000
  • Ignore local TODO.md and review notes by @LeMyst in #1013
  • Rename params to body in execute_sparql_query by @LeMyst in #983
  • Add pre-commit configuration by @LeMyst in #1059
  • Release version 0.13.0 and publish from GitHub releases by @LeMyst in #1070

New Contributors

Full Changelog: v0.12.14...v0.13.0