Skip to content

Commit 3cdc033

Browse files
authored
Merge pull request #124 from openvax/modernize-py3
Remove Python 2 compat: six, cached-property, __future__ imports
2 parents fa5b3ae + 4e2d52c commit 3cdc033

59 files changed

Lines changed: 11 additions & 134 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/tests.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,11 @@ jobs:
1919

2020
steps:
2121
- name: Checkout repository
22-
uses: actions/checkout@v3
22+
uses: actions/checkout@v4
2323
- name: Set up Python ${{ matrix.python-version }}
24-
uses: actions/setup-python@v3
24+
uses: actions/setup-python@v5
2525
with:
2626
python-version: ${{ matrix.python-version }}
27-
cache: "pip"
2827
- name: Install dependencies
2928
run: |
3029
python -m pip install --upgrade pip

isovar/__init__.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,7 @@
1010
# See the License for the specific language governing permissions and
1111
# limitations under the License.
1212

13-
from __future__ import print_function, division, absolute_import
14-
15-
__version__ = "1.3.0"
13+
__version__ = "1.4.0"
1614

1715

1816
from .allele_read import AlleleRead

isovar/alignment_score.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,6 @@
1515
Sequence alignment helpers
1616
"""
1717

18-
from __future__ import print_function, division, absolute_import
19-
20-
2118
def alignment_score(a, b, min_subsequence_length=1):
2219
"""
2320
Number of mismatches between all two input sequences, allows

isovar/allele_read.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
allele (ref, alt, or otherwise), and suffix portions
1616
"""
1717

18-
from __future__ import print_function, division, absolute_import
1918
import logging
2019

2120
from .string_helpers import convert_from_bytes_if_necessary, trim_N_nucleotides

isovar/assembly.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,8 @@
1010
# See the License for the specific language governing permissions and
1111
# limitations under the License.
1212

13-
from __future__ import print_function, division, absolute_import
14-
1513
from collections import defaultdict
1614

17-
from six.moves import range
18-
1915
from .default_parameters import MIN_VARIANT_SEQUENCE_ASSEMBLY_OVERLAP_SIZE
2016
from .logging import get_logger
2117

isovar/cli/__init__.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@
1313
# limitations under the License.
1414

1515

16-
from __future__ import print_function, division, absolute_import
17-
1816
from .main_args import make_isovar_arg_parser, run_isovar_from_parsed_args
1917
from .protein_sequence_args import protein_sequence_creator_from_args
2018
from .rna_args import read_collector_from_args

isovar/cli/filter_args.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@
1414
Common command-line arguments for filtering Isovar results
1515
"""
1616

17-
from __future__ import print_function, division, absolute_import
18-
1917
from collections import OrderedDict
2018

2119
from ..default_parameters import (

isovar/cli/isovar_allele_counts.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
Prints number of reads supporting ref, alt, and other alleles at variant loci.
1515
"""
1616

17-
from __future__ import print_function, division, absolute_import
1817
import sys
1918

2019
from ..logging import get_logger

isovar/cli/isovar_allele_reads.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
Prints names and sequences of reads overlapping a given set of variants.
1515
"""
1616

17-
from __future__ import print_function, division, absolute_import
1817
import sys
1918

2019
from ..logging import get_logger

isovar/cli/isovar_main.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@
1515
the RNA reads which overlap and protein sequences which can be constructed
1616
from reads that support the variant.
1717
"""
18-
from __future__ import print_function, division, absolute_import
19-
2018
import sys
2119

2220

0 commit comments

Comments
 (0)