Skip to content

Commit c2b7878

Browse files
authored
Merge pull request #7 from aosingh/v1.0.2
Release v1.0.2 Following features are added to sqlite_rx - Online backup functionality. This feature was suggested by @marekyggdrasil - Python's multiprocessing module is replaced with billiard - This is mainly changed to support the backup daemon thread to be started in the server process without any pickling issues. - Starting this release, documentation can be accessed at https://aosingh.github.io/sqlite_rx/ - Build pipeline is moved to Github actions. - ContextManager support for SQLiteClient.
2 parents 2907299 + 39cf2ac commit c2b7878

26 files changed

+400
-480
lines changed

.coveragerc

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,20 @@
22
parallel = True
33
branch = False
44
source = sqlite_rx
5-
concurrency = multiprocessing
5+
concurrency =
6+
thread
7+
multiprocessing
8+
debug =
9+
multiproc
610
omit =
711
/*/tests/*
812
.env/*
913
./sqlite_rx/cli/__init__.py
1014
/home/travis/virtualenv/*
11-
12-
[report]
15+
./sqlite_rx/run_client.py
16+
./sqlite_rx/start_server.py
17+
# plugins =
18+
# billiard_coverage_plugin
1319

1420
[html]
1521
directory = htmlcov

.dockerignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,8 @@ docker_examples
1414
sqlite_demo.py
1515
example.db
1616
venv/
17+
start_server.py
18+
run_client.py
19+
curve_client.py
20+
.github
21+
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: sqlite_rx
2+
on: push
3+
4+
jobs:
5+
unittests:
6+
name:
7+
runs-on: ${{ matrix.os }}
8+
strategy:
9+
fail-fast: false
10+
matrix:
11+
os: [macos-latest, windows-latest, ubuntu-18.04, ubuntu-20.04]
12+
python-version: [3.6, 3.7, 3.8, 3.9, '3.10.0-beta.3', 'pypy3']
13+
14+
steps:
15+
- name: Checkout
16+
uses: actions/checkout@v2
17+
18+
- name: Setup Python ${{ matrix.python-version }}
19+
uses: actions/setup-python@v2
20+
with:
21+
python-version: ${{ matrix.python-version }}
22+
23+
- name: Install Dependencies
24+
run: |
25+
python3 -m pip install --upgrade pip
26+
pip install click pytest coverage
27+
pip install -e .
28+
pip install coverage
29+
30+
- name: Run Unittests
31+
run: |
32+
coverage run -m pytest --verbose sqlite_rx/tests
33+
coverage combine
34+
coverage report -m
35+

.gitignore

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,8 @@ dist/
1010
.coverage
1111
sqlite_demo.py
1212
example.db
13-
venv/
13+
venv/
14+
start_server.py
15+
run_client.py
16+
curve_client.py
17+

.travis.yml

Lines changed: 0 additions & 34 deletions
This file was deleted.

Dockerfile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
11
FROM python:3-alpine as base
22

3+
COPY . /sqlite_rx
4+
35
WORKDIR /svc
46

57
RUN apk update && apk add build-base libzmq musl-dev zeromq-dev
68

79
RUN pip install --upgrade pip
810
RUN pip install Cython
9-
RUN pip install wheel && pip wheel --wheel-dir=/svc/wheels sqlite_rx
11+
RUN pip install wheel && pip wheel --wheel-dir=/svc/wheels /sqlite_rx
12+
RUN rm -rf /sqlite_rx
1013

1114

1215
FROM python:3-alpine
@@ -16,4 +19,4 @@ COPY --from=base /svc /svc
1619
WORKDIR /svc
1720

1821
RUN pip install --upgrade pip
19-
RUN pip install --no-index --find-links=/svc/wheels sqlite_rx
22+
RUN pip install --no-index /svc/wheels/*.whl

0 commit comments

Comments
 (0)