Skip to content

Commit c215fb3

Browse files
authored
Merge pull request #242 from chrislit/0.4.1
0.4.1
2 parents 2b6b3ed + 07e9a69 commit c215fb3

17 files changed

+580
-550
lines changed

.circleci/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
. venv/bin/activate
3535
echo "tox" >> requirements.txt
3636
pip install -r requirements.txt
37-
pip install -r requirements-dev.txt
37+
pip install -r requirements-test.txt
3838
3939
- save_cache:
4040
paths:

.travis.yml

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,33 @@
11
language: python
22

3+
jobs:
4+
include:
5+
- os: linux
6+
arch: arm64
7+
python: 3.7
8+
- os: linux
9+
arch: ppc64le
10+
python: 3.7
11+
12+
dist: xenial
313
python:
414
- 2.7
5-
- 3.4
615
- 3.5
716
- 3.6
8-
9-
matrix:
10-
include:
11-
- python: 3.7
12-
dist: xenial
13-
sudo: true
17+
- 3.7
18+
- 3.8
1419

1520
notifications:
1621
email: false
1722

1823
# Install packages
1924
install:
2025
- if [[ $TRAVIS_PYTHON_VERSION == 2* ]]; then travis_retry pip install pyliblzma; fi
21-
- case "$TRAVIS_PYTHON_VERSION" in 3.5|3.6|3.7) travis_retry pip install cython;; esac
22-
- case "$TRAVIS_PYTHON_VERSION" in 3.5|3.6|3.7) travis_retry pip install paq lzss;; esac
26+
- if [[ $TRAVIS_PYTHON_VERSION != 2* ]]; then travis_retry pip install cython; fi
27+
- if [[ $TRAVIS_PYTHON_VERSION != 2* ]]; then travis_retry pip install paq lzss; fi
2328
- travis_retry pip install coveralls
2429
- travis_retry pip install -r requirements.txt
25-
- travis_retry pip install -r requirements-dev.txt
30+
- travis_retry pip install -r requirements-test.txt
2631
- travis_retry python setup.py install
2732

2833
# Run test

HISTORY.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
Release History
22
---------------
33

4-
0.4.1 (2019-07-00) *distant dietrich*
4+
0.4.1 (2020-01-07) *distant dietrich*
55
+++++++++++++++++++++++++++++++++++++
66

7-
doi:
8-
9-
Version 0.4.1 ...
7+
doi:10.5281/zenodo.3600548
108

119
Changes:
1210

11+
- Support for Python 3.4 was removed. (3.4 reached end-of-life on March 18,
12+
2019)
1313
- Fuzzy intersections were corrected to avoid over-counting partial
1414
intersection instances.
1515
- Levenshtein can now return an optimal alignment

README.rst

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -71,19 +71,19 @@ Abydos
7171
:target: https://app.fossa.io/projects/git%2Bgithub.com%2Fchrislit%2Fabydos?ref=badge_shield
7272
:alt: FOSSA Status
7373

74-
.. |pylint| image:: https://img.shields.io/badge/Pylint-8.87/10-yellowgreen.svg
74+
.. |pylint| image:: https://img.shields.io/badge/Pylint-9.0/10-yellowgreen.svg
7575
:target: #
7676
:alt: Pylint Score
7777

78-
.. |flake8| image:: https://img.shields.io/badge/flake8-1-green.svg
78+
.. |flake8| image:: https://img.shields.io/badge/flake8-0-brightgreen.svg
7979
:target: #
8080
:alt: flake8 Errors
8181

8282
.. |pydocstyle| image:: https://img.shields.io/badge/pydocstyle-0-brightgreen.svg
8383
:target: #
8484
:alt: pydocstyle Errors
8585

86-
.. |sloccount| image:: https://img.shields.io/badge/SLOCCount-42,187-blue.svg
86+
.. |sloccount| image:: https://img.shields.io/badge/SLOCCount-43,113-blue.svg
8787
:target: #
8888
:alt: SLOCCount
8989

@@ -107,8 +107,8 @@ Abydos
107107
:target: https://libraries.io/pypi/abydos
108108
:alt: Libraries.io SourceRank
109109

110-
.. |zenodo| image:: https://zenodo.org/badge/DOI/10.5281/zenodo.3235034.svg
111-
:target: https://doi.org/10.5281/zenodo.3235034
110+
.. |zenodo| image:: https://zenodo.org/badge/DOI/10.5281/zenodo.3600548
111+
:target: https://doi.org/10.5281/zenodo.3600548
112112
:alt: Zenodo
113113

114114
.. |cii| image:: https://bestpractices.coreinfrastructure.org/projects/1598/badge
@@ -164,7 +164,7 @@ Abydos
164164

165165
|
166166
| `Abydos NLP/IR library <https://github.com/chrislit/abydos>`_
167-
| Copyright 2014-2019 by Christopher C. Little
167+
| Copyright 2014-2020 by Christopher C. Little
168168
169169
Abydos is a library of phonetic algorithms, string distance measures & metrics,
170170
stemmers, and string fingerprinters including:
@@ -315,7 +315,7 @@ To install from `conda-forge <https://anaconda.org/conda-forge/abydos>`_::
315315

316316
conda install abydos
317317

318-
It should run on Python 2.7 and Python 3.5-3.7.
318+
It should run on Python 2.7 and Python 3.5-3.8.
319319

320320
Testing & Contributing
321321
======================
@@ -324,10 +324,10 @@ To run the whole test-suite just call tox::
324324

325325
tox
326326

327-
The tox setup has the following environments: black, py36, py27, doctest,
328-
py36-regression, py27-regression, py36-fuzz, py27-fuzz, pylint, pycodestyle,
329-
pydocstyle, flake8, doc8, badges, docs, & dist. So if you only want to generate
330-
documentation (in HTML, EPUB, & PDF formats), just call::
327+
The tox setup has the following environments: black, py37, py27, doctest,
328+
py37-regression, py27-regression, py37-fuzz, py27-fuzz, pylint, pydocstyle,
329+
flake8, doc8, docs, sloccount, badges, & build. So if you only want to
330+
generate documentation (in HTML, EPUB, & PDF formats), just call::
331331

332332
tox -e docs
333333

abydos/distance/_token_distance.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# -*- coding: utf-8 -*-
22

3-
# Copyright 2018-2019 by Christopher C. Little.
3+
# Copyright 2018-2020 by Christopher C. Little.
44
# This file is part of Abydos.
55
#
66
# Abydos is free software: you can redistribute it and/or modify

abydos/fingerprint/_extract.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# -*- coding: utf-8 -*-
22

3-
# Copyright 2019 by Christopher C. Little.
3+
# Copyright 2019-2020 by Christopher C. Little.
44
# This file is part of Abydos.
55
#
66
# Abydos is free software: you can redistribute it and/or modify

abydos/phones/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# -*- coding: utf-8 -*-
22

3-
# Copyright 2014-2018 by Christopher C. Little.
3+
# Copyright 2014-2020 by Christopher C. Little.
44
# This file is part of Abydos.
55
#
66
# Abydos is free software: you can redistribute it and/or modify

abydos/phones/_phones.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# -*- coding: utf-8 -*-
22

3-
# Copyright 2014-2019 by Christopher C. Little.
3+
# Copyright 2014-2020 by Christopher C. Little.
44
# This file is part of Abydos.
55
#
66
# Abydos is free software: you can redistribute it and/or modify

azure-pipelines.yml

Lines changed: 76 additions & 101 deletions
Original file line numberDiff line numberDiff line change
@@ -5,113 +5,102 @@
55

66
jobs:
77

8-
- job: 'Test_Linux'
9-
pool:
10-
vmImage: 'ubuntu-16.04'
8+
- job: 'Test'
9+
1110
strategy:
1211
matrix:
13-
Python27:
12+
Python27Linux:
1413
python.version: '2.7'
15-
Python35:
14+
imageName: 'ubuntu-latest'
15+
architecture: 'x64'
16+
Python35Linux:
1617
python.version: '3.5'
17-
Python36:
18+
imageName: 'ubuntu-latest'
19+
architecture: 'x64'
20+
Python36Linux:
1821
python.version: '3.6'
19-
Python37:
22+
imageName: 'ubuntu-latest'
23+
architecture: 'x64'
24+
Python37Linux:
2025
python.version: '3.7'
21-
maxParallel: 4
22-
23-
steps:
24-
- task: UsePythonVersion@0
25-
inputs:
26-
versionSpec: '$(python.version)'
27-
architecture: 'x64'
28-
29-
- script: python -m pip install --upgrade pip && pip install -r requirements.txt && pip install -r requirements-dev.txt
30-
displayName: 'Install dependencies'
31-
32-
- script: |
33-
pip install pytest
34-
pip install pytest-cov
35-
pytest tests --doctest-modules --junitxml=junit/test-results.xml --cov=abydos --cov-report=xml --cov-report=html
36-
displayName: 'pytest'
37-
38-
- task: PublishTestResults@2
39-
inputs:
40-
testResultsFiles: '**/test-results.xml'
41-
testRunTitle: 'Python $(python.version)'
42-
condition: succeededOrFailed()
43-
44-
- task: PublishCodeCoverageResults@1
45-
inputs:
46-
codeCoverageTool: Cobertura
47-
summaryFileLocation: '$(System.DefaultWorkingDirectory)/**/coverage.xml'
48-
reportDirectory: '$(System.DefaultWorkingDirectory)/**/htmlcov'
49-
50-
- job: 'Test_Windows'
51-
pool:
52-
vmImage: 'vs2017-win2016'
53-
strategy:
54-
matrix:
55-
Python27:
26+
imageName: 'ubuntu-latest'
27+
architecture: 'x64'
28+
Python38Linux:
29+
python.version: '3.8'
30+
imageName: 'ubuntu-latest'
31+
architecture: 'x64'
32+
Python27Windows:
5633
python.version: '2.7'
57-
Python35:
34+
imageName: 'windows-latest'
35+
architecture: 'x64'
36+
Python35Windows:
5837
python.version: '3.5'
59-
Python36:
38+
imageName: 'windows-latest'
39+
architecture: 'x64'
40+
Python36Windows:
6041
python.version: '3.6'
61-
Python37:
42+
imageName: 'windows-latest'
43+
architecture: 'x64'
44+
Python37Windows:
6245
python.version: '3.7'
63-
maxParallel: 4
64-
65-
steps:
66-
- task: UsePythonVersion@0
67-
inputs:
68-
versionSpec: '$(python.version)'
69-
architecture: 'x64'
70-
71-
- script: python -m pip install --upgrade pip && pip install -r requirements.txt && pip install -r requirements-dev.txt
72-
displayName: 'Install dependencies'
73-
74-
- script: |
75-
pip install pytest
76-
pip install pytest-cov
77-
pytest tests --doctest-modules --junitxml=junit/test-results.xml --cov=abydos --cov-report=xml --cov-report=html
78-
displayName: 'pytest'
79-
80-
- task: PublishTestResults@2
81-
inputs:
82-
testResultsFiles: '**/test-results.xml'
83-
testRunTitle: 'Python $(python.version)'
84-
condition: succeededOrFailed()
85-
86-
- task: PublishCodeCoverageResults@1
87-
inputs:
88-
codeCoverageTool: Cobertura
89-
summaryFileLocation: '$(System.DefaultWorkingDirectory)/**/coverage.xml'
90-
reportDirectory: '$(System.DefaultWorkingDirectory)/**/htmlcov'
91-
92-
93-
- job: 'Test_MacOS'
94-
pool:
95-
vmImage: 'macOS-10.13'
96-
strategy:
97-
matrix:
98-
Python27:
46+
imageName: 'windows-latest'
47+
architecture: 'x64'
48+
Python38Windows:
49+
python.version: '3.8'
50+
imageName: 'windows-latest'
51+
architecture: 'x64'
52+
Python27Windowsx86:
53+
python.version: '2.7'
54+
imageName: 'windows-latest'
55+
architecture: 'x86'
56+
Python35Windowsx86:
57+
python.version: '3.5'
58+
imageName: 'windows-latest'
59+
architecture: 'x86'
60+
Python36Windowsx86:
61+
python.version: '3.6'
62+
imageName: 'windows-latest'
63+
architecture: 'x86'
64+
Python37Windowsx86:
65+
python.version: '3.7'
66+
imageName: 'windows-latest'
67+
architecture: 'x86'
68+
Python38Windowsx86:
69+
python.version: '3.8'
70+
imageName: 'windows-latest'
71+
architecture: 'x86'
72+
Python27MacOS:
9973
python.version: '2.7'
100-
Python35:
74+
imageName: 'macOS-latest'
75+
architecture: 'x64'
76+
Python35MacOS:
10177
python.version: '3.5'
102-
Python36:
78+
imageName: 'macOS-latest'
79+
architecture: 'x64'
80+
Python36MacOS:
10381
python.version: '3.6'
104-
Python37:
82+
imageName: 'macOS-latest'
83+
architecture: 'x64'
84+
Python37MacOS:
10585
python.version: '3.7'
106-
maxParallel: 4
86+
imageName: 'macOS-latest'
87+
architecture: 'x64'
88+
Python38MacOS:
89+
python.version: '3.8'
90+
imageName: 'macOS-latest'
91+
architecture: 'x64'
92+
maxParallel: 10
93+
94+
pool:
95+
vmImage: $(imageName)
10796

10897
steps:
10998
- task: UsePythonVersion@0
11099
inputs:
111100
versionSpec: '$(python.version)'
112-
architecture: 'x64'
101+
architecture: '$(architecture)'
113102

114-
- script: python -m pip install --upgrade pip && pip install -r requirements.txt && pip install -r requirements-dev.txt
103+
- script: python -m pip install --upgrade pip && pip install -r requirements.txt && pip install -r requirements-test.txt
115104
displayName: 'Install dependencies'
116105

117106
- script: |
@@ -131,17 +120,3 @@ jobs:
131120
codeCoverageTool: Cobertura
132121
summaryFileLocation: '$(System.DefaultWorkingDirectory)/**/coverage.xml'
133122
reportDirectory: '$(System.DefaultWorkingDirectory)/**/htmlcov'
134-
135-
- job: 'Publish'
136-
dependsOn: 'Test_Linux'
137-
pool:
138-
vmImage: 'Ubuntu 16.04'
139-
140-
steps:
141-
- task: UsePythonVersion@0
142-
inputs:
143-
versionSpec: '3.x'
144-
architecture: 'x64'
145-
146-
- script: python setup.py sdist
147-
displayName: 'Build sdist'

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ classifiers = [
5858
]
5959

6060
[tool.poetry.dependencies]
61-
python = "~2.7 || ^3.4"
61+
python = "~2.7 || ^3.5"
6262

6363
numpy = ">=1.7"
6464
six = ">=1.3"

requirements-test.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Library dependencies for the Python code. You need to install these with
2+
# `pip install -r requirements-test.txt` before you can run this.
3+
4+
nltk
5+
syllabipy

0 commit comments

Comments
 (0)