Port vcfaz to Python 3 and remove legacy py27 directory#1
Draft
Copilot wants to merge 3 commits into
Draft
Conversation
Co-authored-by: ecapriotti <5848298+ecapriotti@users.noreply.github.com>
Co-authored-by: ecapriotti <5848298+ecapriotti@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Complete Python 3 port of legacy vcfaz package
Port vcfaz to Python 3 and remove legacy py27 directory
Mar 6, 2026
Contributor
|
accepted |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Completes the Python 3 (≥3.10) port of the
vcfazpackage, migrating from the legacy Python 2.7 conda package layout to asrc/layout, and removes the legacy directory entirely.Python 3 compatibility fixes
src/vcfaz/model.pyclass _AltRecord(object, metaclass=ABCMeta)replaces__metaclass__ = ABCMetabasestring→str__cmp__(Python 2 only)try/except ImportErrorfallbacks forCounter/OrderedDictsrc/vcfaz/parser.pyfrom .model import ...)itertools.izip→zipdict.has_key()→inoperatordict.iteritems()/iterkeys()/itervalues()→.items()/.keys()/.values()def next(self)renamed todef __next__(self)withnext = __next__alias for backwards compatcodecs.getreaderon Python 3src/vcfaz/sample_filter.pyfrom .parser import Reader, Writerxrange→rangesrc/vcfaz/utils.pyreaders[i].next()→next(readers[i])src/vcfaz/__init__.pyReader,Writer,VCFReader,VCFWriter,Filter,SampleFilter,RESERVED_INFO,RESERVED_FORMATRemoved
pyvcfaz-0.6.8-py27_0/— entire legacy Python 2.7 directory deletedTests
Added
tests/test_import.pywith smoke tests covering imports and basic in-memory VCF parsing:Original prompt
This pull request was created from Copilot chat.
🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.