Skip to content

Commit c1869c8

Browse files
authored
Merge pull request #1178 from pysam-developers/update-release-notes
updated release notes
2 parents d542468 + cdc4a54 commit c1869c8

File tree

5 files changed

+49
-32
lines changed

5 files changed

+49
-32
lines changed

.python-version

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
3.6
2+
3.11

NEWS

Lines changed: 18 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,27 @@ http://pysam.readthedocs.io/en/latest/release.html
55
Release notes
66
=============
77

8-
Release 1.0.0?
9-
==============
10-
11-
* python 2.7 support has been removed. The minimum python version is now 3.2 with
12-
versions 3.6-3.11 tested.
13-
148
Release 0.21.0
159
==============
1610

17-
This release wraps htslib/bcftools version 1.17 and samtools version 1.17.
18-
19-
* [
11+
This release wraps htslib/samtools/bcftools version 1.17.
12+
13+
Pysam is now compatible with Python 3.11. We have removed python 2.x
14+
support. Pysam is tested with python versions 3.6 to 3.11.
15+
16+
* [#1175] VariantHeader.new_record: set start/stop before alleles
17+
* [#1173] Add multiple build improvements in htscodecs on multi-arch macOS
18+
* [#1148] Ignore CIGAR-less reads in find_introns.
19+
* [#1172] Add new `samtools cram-size` and `samtools reset` commands
20+
* [#1169] Fix CRAM index-related crash when using the musl C standard library.
21+
* [#1168] Add a minimal pyproject.toml for PEP517.
22+
* [#1158] Fix type hints and add FastqProxy type hints.
23+
* [#1147] Py3.11 compatibility, get shared object suffix from EXT_SUFFIX.
24+
* [#1143] Add mypy symbols for samtools and bcftools.
25+
* [#1155] Fix pysam.index() when using recent `samtools index` options.
26+
* [#1151] Test suite py3.11 compatibility, work around failing test case.
27+
* [#1149] MacOS universal build compatibility.
28+
* [#1146] Fix build when CFLAGS/etc environment variables are set.
2029

2130
Release 0.20.0
2231
==============

pyproject.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
name = "pysam"
33
description = "pysam - a python module for reading, manipulating and writing genomic data sets."
44
license = { text = "MIT License" }
5-
version = "0.20.0"
5+
version = "0.21.0"
66
authors = [
77
{ name = "Andreas Heger", email = "[email protected]"}
88
]
9-
requires-python = ">=3.8"
9+
requires-python = ">=3.6"
1010

1111
dynamic = [
1212
"classifiers",
@@ -19,5 +19,5 @@ dependencies = [
1919

2020

2121
[build-system]
22-
requires = ["setuptools>=61.0", "wheel", "Cython>=0.29.30,<3.0"]
22+
requires = ["setuptools>=59.0", "wheel", "Cython>=0.29.30,<3.0"]
2323
build-backend = "setuptools.build_meta:__legacy__"

tests/compile_test.py

Lines changed: 18 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
# clean up previous compilation
1010
import os
11-
import unittest
11+
import pytest
1212
import pysam
1313
from TestUtils import make_data_files, BAM_DATADIR, TABIX_DATADIR
1414

@@ -24,31 +24,29 @@ def setUpModule():
2424
except OSError:
2525
pass
2626

27-
import pyximport
28-
pyximport.install(build_in_temp=False)
29-
import _compile_test
27+
NO_PYXIMPORT = False
28+
try:
29+
import pyximport
30+
pyximport.install(build_in_temp=False)
31+
import _compile_test
32+
except:
33+
NO_PYXIMPORT = True
3034

3135

32-
class BAMTest(unittest.TestCase):
36+
@pytest.mark.skipif(NO_PYXIMPORT, reason="no pyximport")
37+
def test_bam():
3338

3439
input_filename = os.path.join(BAM_DATADIR, "ex1.bam")
35-
36-
def testCount(self):
37-
38-
nread = _compile_test.testCountBAM(
39-
pysam.Samfile(self.input_filename))
40-
self.assertEqual(nread, 3270)
40+
nread = _compile_test.testCountBAM(
41+
pysam.Samfile(input_filename))
42+
assert nread == 3270
4143

4244

43-
class GTFTest(unittest.TestCase):
45+
@pytest.mark.skipif(NO_PYXIMPORT, reason="no pyximport")
46+
def test_gtf():
4447

4548
input_filename = os.path.join(TABIX_DATADIR, "example.gtf.gz")
4649

47-
def testCount(self):
48-
nread = _compile_test.testCountGTF(
49-
pysam.Tabixfile(self.input_filename))
50-
self.assertEqual(nread, 237)
51-
52-
53-
if __name__ == "__main__":
54-
unittest.main()
50+
nread = _compile_test.testCountGTF(
51+
pysam.Tabixfile(input_filename))
52+
assert nread == 237

tox.ini

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# content of: tox.ini , put in same dir as setup.py
2+
[tox]
3+
envlist = py36 py311
4+
5+
[testenv]
6+
deps = pytest # install pytest in the virtualenv where commands will be executed
7+
commands =
8+
pytest tests

0 commit comments

Comments
 (0)