Skip to content

Commit

Permalink
merge
Browse files Browse the repository at this point in the history
  • Loading branch information
bt2901 committed Sep 11, 2023
2 parents e5a2043 + 3ee6d0e commit 2c6a113
Show file tree
Hide file tree
Showing 28 changed files with 714 additions and 353 deletions.
13 changes: 13 additions & 0 deletions .coveragerc
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/*
63 changes: 63 additions & 0 deletions .github/workflows/python-tests.yml
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 }}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ DAWG_Python.egg-info/
*.pyc
.tox/
*.orig
.idea/
20 changes: 0 additions & 20 deletions .hgignore

This file was deleted.

9 changes: 0 additions & 9 deletions .hgtags

This file was deleted.

20 changes: 0 additions & 20 deletions .travis.yml

This file was deleted.

52 changes: 52 additions & 0 deletions CHANGES.md
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.
65 changes: 0 additions & 65 deletions CHANGES.rst

This file was deleted.

3 changes: 0 additions & 3 deletions MANIFEST.in

This file was deleted.

Loading

0 comments on commit 2c6a113

Please sign in to comment.