Skip to content

Commit

Permalink
Merge pull request #4 from gandersen101/develop
Browse files Browse the repository at this point in the history
Read the docs
  • Loading branch information
gandersen101 authored Jul 6, 2020
2 parents 4bda325 + 54f4e06 commit 239107d
Show file tree
Hide file tree
Showing 10 changed files with 69 additions and 7 deletions.
27 changes: 27 additions & 0 deletions .github/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
categories:
- title: ':boom: Breaking Changes'
label: 'breaking'
- title: ':package: Build System'
label: 'build'
- title: ':construction_worker: Continuous Integration'
label: 'ci'
- title: ':books: Documentation'
label: 'documentation'
- title: ':rocket: Features'
label: 'enhancement'
- title: ':beetle: Fixes'
label: 'bug'
- title: ':racehorse: Performance'
label: 'performance'
- title: ':hammer: Refactoring'
label: 'refactoring'
- title: ':fire: Removals and Deprecations'
label: 'removal'
- title: ':lipstick: Style'
label: 'style'
- title: ':rotating_light: Testing'
label: 'testing'
template: |
## What’s Changed
$CHANGES
12 changes: 12 additions & 0 deletions .github/workflows/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: Release Drafter
on:
push:
branches:
- master
jobs:
draft_release:
runs-on: ubuntu-latest
steps:
- uses: release-drafter/release-drafter@v5.6.1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: Tests
on: [push, pull_request]
on: push
jobs:
tests:
runs-on: ${{matrix.os}}
Expand Down
9 changes: 9 additions & 0 deletions .readthedocs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
version: 2
sphinx:
configuration: docs/conf.py
formats: all
python:
version: 3.7
install:
- requirements: docs/requirements.txt
- path: .
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
[![Tests](https://github.com/gandersen101/spaczz/workflows/Tests/badge.svg)](https://github.com/gandersen101/spaczz/actions?workflow=Tests)
[![Codecov](https://codecov.io/gh/gandersen101/spaczz/branch/master/graph/badge.svg)](https://codecov.io/gh/gandersen101/spaczz)
[![PyPI](https://img.shields.io/pypi/v/spaczz.svg)](https://pypi.org/project/spaczz/)
[![Read the Docs](https://readthedocs.org/projects/spaczz/badge/)](https://spaczz.readthedocs.io/)

# spaczz: Fuzzy matching and more for spaCy

Expand Down
4 changes: 2 additions & 2 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Spaczz can be installed using pip. It is strongly recommended that the
“fast” extra is installed. This installs the optional python-Levenshtein
package which speeds up fuzzywuzzy’s fuzzy matching by 4-10x.

.. code:: ipython3
.. code:: Python
# Basic Install
pip install spaczz
Expand All @@ -35,6 +35,6 @@ package which speeds up fuzzywuzzy’s fuzzy matching by 4-10x.
If you decide to install the optional python-Levenshtein package later
simply pip install it when desired.

.. code:: ipython3
.. code:: Python
pip install python-Levenshtein
2 changes: 2 additions & 0 deletions docs/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
sphinx==3.1.1
sphinx-autodoc-typehints==1.11.0
2 changes: 1 addition & 1 deletion poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 4 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,20 +1,22 @@
[tool.poetry]
name = "spaczz"
version = "0.1.0"
version = "0.1.1"
description = "Adds fuzzy matching and additional regex matching support to spaCy."
license = "MIT"
readme = "README.md"
homepage = "https://github.com/<gandersen101/spaczz"
homepage = "https://github.com/gandersen101/spaczz"
repository = "https://github.com/gandersen101/spaczz"
keywords = ["fuzzy matching", "spacy", "fuzzywuzzy"]
authors = ["Grant Andersen <gandersen.codes@gmail.com>"]
documentation = "https://spaczz.readthedocs.io"

[tool.poetry.dependencies]
python = "^3.7"
spacy = "^2.2.0"
fuzzywuzzy = "^0.18.0"
python-Levenshtein = {version = "^0.12.0", optional = true}
regex = "^2020.6.8"
importlib_metadata = {version = "^1.7.0", python = "<3.8"}

[tool.poetry.dev-dependencies]
flake8 = "^3.8.3"
Expand Down
11 changes: 10 additions & 1 deletion src/spaczz/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,11 @@
"""spaczz library for fuzzy matching and extended regex functionality with spaCy."""
__version__ = "0.1.0"
try:
from importlib.metadata import version, PackageNotFoundError # type: ignore
except ImportError: # pragma: no cover
from importlib_metadata import version, PackageNotFoundError # type: ignore


try:
__version__ = version(__name__)
except PackageNotFoundError: # pragma: no cover
__version__ = "unknown"

0 comments on commit 239107d

Please sign in to comment.