[med-svn] [Git][med-team/nim-hts][master] 4 commits: New upstream version 0.3.14+ds

Nilesh Patra gitlab at salsa.debian.org
Mon Nov 30 10:16:45 GMT 2020



Nilesh Patra pushed to branch master at Debian Med / nim-hts


Commits:
9bc7dc39 by Nilesh Patra at 2020-11-30T15:44:12+05:30
New upstream version 0.3.14+ds
- - - - -
062c94cb by Nilesh Patra at 2020-11-30T15:44:12+05:30
routine-update: New upstream version

- - - - -
e25032fc by Nilesh Patra at 2020-11-30T15:44:14+05:30
Update upstream source from tag 'upstream/0.3.14+ds'

Update to upstream version '0.3.14+ds'
with Debian dir c719f9e705786699df37ff0f7d2b2d3c71ca0623
- - - - -
fa15ce12 by Nilesh Patra at 2020-11-30T15:44:29+05:30
routine-update: Ready to upload to unstable

- - - - -


5 changed files:

- CHANGES.md
- debian/changelog
- hts.nimble
- src/hts/fai.nim
- tests/faitest.nim


Changes:

=====================================
CHANGES.md
=====================================
@@ -1,3 +1,7 @@
+v0.3.14
+=======
++ add close method to fai for consistency (continues to also occur automatically upon garbage collection) #70
+
 v0.3.13
 =======
 + changes for nim ORC/ARC GCs


=====================================
debian/changelog
=====================================
@@ -1,3 +1,9 @@
+nim-hts (0.3.14+ds-1) unstable; urgency=medium
+
+  * New upstream version
+
+ -- Nilesh Patra <npatra974 at gmail.com>  Mon, 30 Nov 2020 15:44:29 +0530
+
 nim-hts (0.3.13+ds-1) unstable; urgency=medium
 
   * New upstream version


=====================================
hts.nimble
=====================================
@@ -1,6 +1,6 @@
 # Package
 
-version       = "0.3.12"
+version       = "0.3.14"
 author        = "Brent Pedersen"
 description   = "hts (bam/sam) for nim"
 license       = "MIT"


=====================================
src/hts/fai.nim
=====================================
@@ -5,10 +5,14 @@ type
     ## Fai provides random access to fasta sequences.
     cptr*: ptr faidx_t
 
-proc destroy_fai(fai: Fai) =
+proc close*(fai: Fai) =
+  ## close the fai
   if fai.cptr != nil:
     fai_destroy(fai.cptr)
 
+proc destroy_fai(fai: Fai) =
+  fai.close
+
 proc open*(fai:var Fai, path: string): bool =
   ## open an fai and return a bool indicating success
   new(fai, destroy_fai)


=====================================
tests/faitest.nim
=====================================
@@ -32,3 +32,9 @@ suite "fai-suite":
       check fai[0] == "ref"
       check fai[0] == "ref"
       check fai.get(fai[0], 0, 2) == "ACG"
+
+  test "close":
+      var fai:Fai
+      check open(fai, "tests/sample.fa")
+      fai.close()
+      check true



View it on GitLab: https://salsa.debian.org/med-team/nim-hts/-/compare/c55426fbe62fc683c616c3275671b9d4a927fd8f...fa15ce123f8dd42cc97570dde671fd14c95e66af

-- 
View it on GitLab: https://salsa.debian.org/med-team/nim-hts/-/compare/c55426fbe62fc683c616c3275671b9d4a927fd8f...fa15ce123f8dd42cc97570dde671fd14c95e66af
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-med-commit/attachments/20201130/f3fd4db0/attachment-0001.html>


More information about the debian-med-commit mailing list