-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
28 changed files
with
714 additions
and
353 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,15 @@ | ||
[run] | ||
branch = True | ||
|
||
[report] | ||
exclude_lines = | ||
if self.debug: | ||
pragma: no cover | ||
raise NotImplementedError | ||
if __name__ == .__main__.: | ||
ignore_errors = True | ||
omit = | ||
venv/* | ||
.venv/* | ||
setup.py | ||
bench/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
name: Python tests | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
paths: | ||
- 'pyproject.toml' | ||
- 'poetry.lock' | ||
- '**.py' | ||
- '.github/workflows/python-tests.yml' | ||
- '.coveragerc' | ||
|
||
pull_request: | ||
branches: | ||
- master | ||
paths: | ||
- 'pyproject.toml' | ||
- 'poetry.lock' | ||
- '**.py' | ||
- '.github/workflows/python-tests.yml' | ||
- '.coveragerc' | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
python-version: ["3.8", "3.9", "3.10", "3.11", "pypy3.10"] | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Install poetry | ||
run: pipx install poetry | ||
|
||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
cache: "poetry" | ||
cache-dependency-path: poetry.lock | ||
|
||
- name: Install dependencies | ||
run: poetry install | ||
|
||
- name: Lint with flake8 | ||
run: | | ||
# stop the build if there are Python syntax errors or undefined names | ||
poetry run flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics | ||
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide | ||
poetry run flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics | ||
- name: Test with pytest | ||
run: poetry run pytest --cov=./ | ||
|
||
- name: Upload coverage data to coveralls.io | ||
run: | | ||
pip install coveralls | ||
coveralls --service=github | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,3 +7,4 @@ DAWG_Python.egg-info/ | |
*.pyc | ||
.tox/ | ||
*.orig | ||
.idea/ |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
# Changes | ||
|
||
## 0.7.2 (2015-04-18) | ||
|
||
- minor speedup; | ||
- bitbucket mirror is no longer maintained. | ||
|
||
## 0.7.1 (2014-06-05) | ||
|
||
- Switch to setuptools; | ||
- upload wheel tp pypi; | ||
- check Python 3.4 compatibility. | ||
|
||
## 0.7 (2013-10-13) | ||
|
||
IntDAWG and IntCompletionDAWG are implemented. | ||
|
||
## 0.6 (2013-03-23) | ||
|
||
Use less shared state internally. This should fix thread-safety bugs and | ||
make iterkeys/iteritems reenterant. | ||
|
||
## 0.5.1 (2013-03-01) | ||
|
||
Internal tweaks: memory usage is reduced; something is a bit faster, | ||
something is a bit slower. | ||
|
||
## 0.5 (2012-10-08) | ||
|
||
Storage scheme is updated to match DAWG==0.5. This enables the | ||
alphabetical ordering of `BytesDAWG` and `RecordDAWG` items. | ||
|
||
In order to read `BytesDAWG` or `RecordDAWG` created with versions of | ||
DAWG \< 0.5 use `payload_separator` constructor argument: | ||
|
||
>>> BytesDAWG(payload_separator=b'\xff').load('old.dawg') | ||
|
||
## 0.3.1 (2012-10-01) | ||
|
||
Bug with empty DAWGs is fixed. | ||
|
||
## 0.3 (2012-09-26) | ||
|
||
- `iterkeys` and `iteritems` methods. | ||
|
||
## 0.2 (2012-09-24) | ||
|
||
`prefixes` support. | ||
|
||
## 0.1 (2012-09-20) | ||
|
||
Initial release. |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.