Skip to content

Commit 2c6a113

Browse files
committed
merge
2 parents e5a2043 + 3ee6d0e commit 2c6a113

28 files changed

+714
-353
lines changed

.coveragerc

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,15 @@
11
[run]
22
branch = True
3+
4+
[report]
5+
exclude_lines =
6+
if self.debug:
7+
pragma: no cover
8+
raise NotImplementedError
9+
if __name__ == .__main__.:
10+
ignore_errors = True
11+
omit =
12+
venv/*
13+
.venv/*
14+
setup.py
15+
bench/*

.github/workflows/python-tests.yml

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
name: Python tests
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
paths:
8+
- 'pyproject.toml'
9+
- 'poetry.lock'
10+
- '**.py'
11+
- '.github/workflows/python-tests.yml'
12+
- '.coveragerc'
13+
14+
pull_request:
15+
branches:
16+
- master
17+
paths:
18+
- 'pyproject.toml'
19+
- 'poetry.lock'
20+
- '**.py'
21+
- '.github/workflows/python-tests.yml'
22+
- '.coveragerc'
23+
24+
jobs:
25+
test:
26+
runs-on: ubuntu-latest
27+
strategy:
28+
fail-fast: false
29+
matrix:
30+
python-version: ["3.8", "3.9", "3.10", "3.11", "pypy3.10"]
31+
32+
steps:
33+
- uses: actions/checkout@v3
34+
35+
- name: Install poetry
36+
run: pipx install poetry
37+
38+
- name: Set up Python ${{ matrix.python-version }}
39+
uses: actions/setup-python@v4
40+
with:
41+
python-version: ${{ matrix.python-version }}
42+
cache: "poetry"
43+
cache-dependency-path: poetry.lock
44+
45+
- name: Install dependencies
46+
run: poetry install
47+
48+
- name: Lint with flake8
49+
run: |
50+
# stop the build if there are Python syntax errors or undefined names
51+
poetry run flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
52+
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
53+
poetry run flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
54+
55+
- name: Test with pytest
56+
run: poetry run pytest --cov=./
57+
58+
- name: Upload coverage data to coveralls.io
59+
run: |
60+
pip install coveralls
61+
coveralls --service=github
62+
env:
63+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@ DAWG_Python.egg-info/
77
*.pyc
88
.tox/
99
*.orig
10+
.idea/

.hgignore

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

.hgtags

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

.travis.yml

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

CHANGES.md

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
# Changes
2+
3+
## 0.7.2 (2015-04-18)
4+
5+
- minor speedup;
6+
- bitbucket mirror is no longer maintained.
7+
8+
## 0.7.1 (2014-06-05)
9+
10+
- Switch to setuptools;
11+
- upload wheel tp pypi;
12+
- check Python 3.4 compatibility.
13+
14+
## 0.7 (2013-10-13)
15+
16+
IntDAWG and IntCompletionDAWG are implemented.
17+
18+
## 0.6 (2013-03-23)
19+
20+
Use less shared state internally. This should fix thread-safety bugs and
21+
make iterkeys/iteritems reenterant.
22+
23+
## 0.5.1 (2013-03-01)
24+
25+
Internal tweaks: memory usage is reduced; something is a bit faster,
26+
something is a bit slower.
27+
28+
## 0.5 (2012-10-08)
29+
30+
Storage scheme is updated to match DAWG==0.5. This enables the
31+
alphabetical ordering of `BytesDAWG` and `RecordDAWG` items.
32+
33+
In order to read `BytesDAWG` or `RecordDAWG` created with versions of
34+
DAWG \< 0.5 use `payload_separator` constructor argument:
35+
36+
>>> BytesDAWG(payload_separator=b'\xff').load('old.dawg')
37+
38+
## 0.3.1 (2012-10-01)
39+
40+
Bug with empty DAWGs is fixed.
41+
42+
## 0.3 (2012-09-26)
43+
44+
- `iterkeys` and `iteritems` methods.
45+
46+
## 0.2 (2012-09-24)
47+
48+
`prefixes` support.
49+
50+
## 0.1 (2012-09-20)
51+
52+
Initial release.

CHANGES.rst

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

MANIFEST.in

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

0 commit comments

Comments
 (0)