Skip to content

Deduplicate file hashing, stat fingerprints, md5sum parsing, and drop memoized-property - #539

Merged
iskandr merged 2 commits into
mainfrom
cleanup/dedup-hashing-deps-and-fetch
Nov 21, 2026
Merged

iskandr merged 2 commits into
mainfrom
cleanup/dedup-hashing-deps-and-fetch

Conversation

@iskandr

@iskandr iskandr commented Nov 20, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Drop third-party memoized-property dependency from pyproject.toml and switch pyensembl/gene.py and pyensembl/transcript.py to stdlib functools.cached_property (Python >= 3.11).
  • Remove duplicate "Exon" entry from pyensembl/__init__.py __all__.
  • Consolidate 5 separate file-hashing helpers (download_cache, annotation_integrity, database, genome_fasta, sequence_data) and 3 file-stat fingerprint helpers (database, genome_fasta, sequence_data) into pyensembl/common.py (file_digest using hashlib.file_digest, and file_fingerprint).
  • Deduplicate md5sum.txt manifest parsing into pyensembl/common.py:parse_md5sum_manifest for both annotation_integrity.py and genome_fasta_cache.py.

Verification

  • ruff check pyensembl tests: All checks passed.
  • 948 offline unit tests passed across 60 test modules.

@coveralls

coveralls commented Nov 20, 2026 •

Copy link
Copy Markdown

Coverage Status

coverage: 93.812% (-0.006%) from 93.818% — cleanup/dedup-hashing-deps-and-fetch into main

@iskandr
iskandr merged commit 2ed7352 into main Nov 21, 2026
9 checks passed
@iskandr
iskandr deleted the cleanup/dedup-hashing-deps-and-fetch branch November 21, 2026 13:51
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.

2 participants