Skip to content

Commit

Permalink
allow Python 3.6 but require dataclasses as extra dep then
Browse files Browse the repository at this point in the history
  • Loading branch information
Bram Vanroy authored and Bram Vanroy committed Jul 8, 2021
1 parent 0ae055d commit dec979d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
1 change: 0 additions & 1 deletion HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ History
3.0.0 TBD
*********
* **[general]** Breaking change: spaCy v3 required (closes `#8`_)
* **[general]** Now requires at least Python 3.7 or higher
* **[init_parser]** Breaking change: in all cases, :code:`is_tokenized` now disables sentence segmentation
* **[init_parser]** Breaking change: no more default values for parser or model anywhere. Important to note here that
spaCy does not work with short-hand codes such as ``en`` any more. You have to provide the full model name, e.g.
Expand Down
7 changes: 4 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

setup(
name="spacy_conll",
version="3.0.0-rc2",
version="3.0.0-rc3",
description="A custom pipeline component for spaCy that can convert any parsed Doc"
" and its sentences into CoNLL-U format. Also provides a command line entry point.",
long_description=Path("README.rst").read_text(encoding="utf-8"),
Expand All @@ -38,9 +38,10 @@
"Bug Reports": "https://github.com/BramVanroy/spacy_conll/issues",
"Source": "https://github.com/BramVanroy/spacy_conll",
},
python_requires=">=3.7",
python_requires=">=3.6",
install_requires=[
"spacy>=3.0.1"
"spacy>=3.0.1",
"dataclasses;python_version<'3.7'"
],
extras_require=extras,
entry_points={
Expand Down
2 changes: 1 addition & 1 deletion spacy_conll/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__ = "3.0.0-rc2"
__version__ = "3.0.0-rc3"

from .formatter import ConllFormatter
from .utils import init_parser

0 comments on commit dec979d

Please sign in to comment.