Skip to content

Commit d248a12

Browse files
committed
update SQLite & zstd
1 parent ba82cb9 commit d248a12

4 files changed

Lines changed: 6 additions & 11 deletions

File tree

.github/workflows/build.yml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ on: [push, pull_request]
33

44
env:
55
APT_DEPS: libzstd-dev samtools tabix libhts-dev pigz python3-pip libcurl4-openssl-dev
6-
BREW_DEPS: python@3.8 zstd samtools pigz coreutils
6+
BREW_DEPS: python@3.8 zstd samtools pigz coreutils sqlite
77
PIP_DEPS: pytest pytest-xdist
88

99
jobs:
@@ -127,11 +127,6 @@ jobs:
127127
brew install $dep || brew upgrade $dep
128128
done
129129
130-
# FIXME 2022-12-27: pin sqlite 3.39.4 due to query plan regression in 3.40.0
131-
# https://sqlite.org/forum/forumpost/07b36e3899a9ae21
132-
wget https://raw.githubusercontent.com/Homebrew/homebrew-core/fc08979e0cc7c580a2feba5447d9a518dc518826/Formula/sqlite.rb
133-
brew reinstall -s sqlite.rb
134-
135130
/usr/local/bin/pip3 install $PIP_DEPS
136131
- name: rust toolchain
137132
uses: actions-rs/toolchain@v1

Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
FROM centos:7 as builder
55

66
ARG CMAKE_VERSION=3.17.3
7-
ARG SQLITE_VERSION=3390400
8-
ARG ZSTD_VERSION=1.5.2
7+
ARG SQLITE_VERSION=3410000
8+
ARG ZSTD_VERSION=1.5.4
99
ARG CPU_ARCH=ivybridge
1010
ENV CFLAGS="-march=${CPU_ARCH} -O3"
1111
ENV CXXFLAGS=${CFLAGS}
@@ -35,7 +35,7 @@ RUN mkdir -p /work/GenomicSQLite
3535

3636
# SQLite
3737
WORKDIR /work
38-
RUN wget -nv http://www.sqlite.org/2022/sqlite-amalgamation-${SQLITE_VERSION}.zip \
38+
RUN wget -nv http://www.sqlite.org/2023/sqlite-amalgamation-${SQLITE_VERSION}.zip \
3939
&& unzip -o sqlite-amalgamation-${SQLITE_VERSION}.zip
4040
WORKDIR /work/sqlite-amalgamation-${SQLITE_VERSION}
4141
RUN bash -c "scl enable devtoolset-8 'gcc -shared -o libsqlite3.so.0 -fPIC -shared -Wl,-soname,libsqlite3.so.0 -g ${CFLAGS} ${SQLITE_CFLAGS} sqlite3.c' & pid=$? \

test/genomicsqlite_smoke_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ def main():
8585
print(f"\ntest database: {dbfile}")
8686
try:
8787
dbconn = genomicsqlite.connect(dbfile)
88-
for (table, bed) in (("exons1", _EXONS1), ("exons2", _EXONS2)):
88+
for table, bed in (("exons1", _EXONS1), ("exons2", _EXONS2)):
8989
dbconn.execute(
9090
f"CREATE TABLE {table}(chrom TEXT, pos INTEGER, end INTEGER, id TEXT PRIMARY KEY)"
9191
)

test/test_parse_genomic_range.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
def test_parse_genomic_range():
77
con = genomicsqlite.connect(":memory:")
8-
for (txt, chrom, begin_pos, end_pos) in [
8+
for txt, chrom, begin_pos, end_pos in [
99
("chr1:2,345-06,789", "chr1", 2344, 6789),
1010
("π:1-9,223,372,036,854,775,799", "π", 0, 9223372036854775799),
1111
]:

0 commit comments

Comments
 (0)