Skip to content

Stamp bindingdb_release in query() attrs, disclose data license, bound dependency versions - #4

Merged
aaronkanzer merged 1 commit into
mainfrom
fix/deps-license-attrs-changelog
Aug 31, 2026
Merged

aaronkanzer merged 1 commit into
mainfrom
fix/deps-license-attrs-changelog

Conversation

@aaronkanzer

Copy link
Copy Markdown
Member

Summary

  • query() now sets df.attrs["bindingdb_release"] with the release actually used, matching scigantic_chembl.query()'s existing df.attrs["chembl_release"] mechanism exactly. Real API-parity gap between two packages built to mirror each other's shape.
  • Adds a "Data license" section to the README: BindingDB's data is a row-by-row mix of CC BY 3.0 (BindingDB's own curated rows) and CC BY-SA 3.0 (rows with curation_source = 'ChEMBL', 51.3% of the 202608 release), separate from this package's own MIT-0 code license. Calls out that chembl_bridge() results carry ChEMBL's share-alike terms on their ChEMBL-matched columns regardless of the underlying measurement's own source.
  • Adds upper bounds to duckdb and pandas, matching the bounds just added to scigantic-chembl for the same libraries.
  • Adds CHANGELOG.md, backfilled from git/tag history.
  • Adds pytest-cov as a local, non-CI-gating coverage option.

Repo discoverability (topics, homepage) was fixed directly via gh repo edit, not in this PR.

Test plan

  • pytest -q — 43 passed, including two new tests for the bindingdb_release attrs stamp
  • mypy src/scigantic_bindingdb — no issues

… bound dependency versions

query() never set df.attrs["bindingdb_release"], unlike scigantic-chembl's
own query(), which stamps df.attrs["chembl_release"] on every call. This
is a real API-parity gap between two packages built to mirror each
other's shape; fixed to match chembl's exact mechanism.

Also: README now discloses BindingDB's data license, which is a per-row
mix of CC BY 3.0 (BindingDB's own curated rows) and CC BY-SA 3.0 (rows
imported from ChEMBL, per the curation_source column), separate from this
package's own MIT-0 code license; chembl_bridge() results specifically
carry ChEMBL's share-alike terms on their ChEMBL-matched columns.
duckdb/pandas dependencies now carry upper bounds matching scigantic-
chembl's; added CHANGELOG.md backfilled from git/tag history; added
pytest-cov as a local (non-gating) coverage option.

0.2.5.
@aaronkanzer
aaronkanzer merged commit c92658f into main Aug 31, 2026
6 checks passed
@aaronkanzer
aaronkanzer deleted the fix/deps-license-attrs-changelog branch August 31, 2026 15:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant