From d38a3b1ec42747894b5259304d37f3414363ecf5 Mon Sep 17 00:00:00 2001 From: Caralyn Reisle Date: Thu, 18 Jan 2024 12:42:01 -0800 Subject: [PATCH 1/5] Fix install issue related to cython3.0 for pyyaml --- poetry.lock | 248 +++++++++++++------------------------------------ pyproject.toml | 1 + 2 files changed, 65 insertions(+), 184 deletions(-) diff --git a/poetry.lock b/poetry.lock index ff8f18a..b13877c 100644 --- a/poetry.lock +++ b/poetry.lock @@ -1,10 +1,9 @@ -# This file is automatically @generated by Poetry and should not be changed by hand. +# This file is automatically @generated by Poetry 1.7.1 and should not be changed by hand. [[package]] name = "attrs" version = "22.1.0" description = "Classes Without Boilerplate" -category = "dev" optional = false python-versions = ">=3.5" files = [ @@ -22,7 +21,6 @@ tests-no-zope = ["cloudpickle", "coverage[toml] (>=5.0.2)", "hypothesis", "mypy name = "black" version = "22.8.0" description = "The uncompromising code formatter." -category = "dev" optional = false python-versions = ">=3.6.2" files = [ @@ -69,7 +67,6 @@ uvloop = ["uvloop (>=0.15.2)"] name = "blis" version = "0.9.1" description = "The Blis BLAS-like linear algebra library, as a self-contained C-extension." -category = "main" optional = true python-versions = "*" files = [ @@ -106,7 +103,6 @@ numpy = ">=1.15.0" name = "bpemb" version = "0.3.4" description = "Byte-pair embeddings in 275 languages" -category = "main" optional = true python-versions = "*" files = [ @@ -125,7 +121,6 @@ tqdm = "*" name = "cached-property" version = "1.5.2" description = "A decorator for caching properties in classes." -category = "dev" optional = false python-versions = "*" files = [ @@ -137,7 +132,6 @@ files = [ name = "catalogue" version = "2.0.8" description = "Super lightweight function registries for your library" -category = "main" optional = true python-versions = ">=3.6" files = [ @@ -149,7 +143,6 @@ files = [ name = "certifi" version = "2022.12.7" description = "Python package for providing Mozilla's CA Bundle." -category = "main" optional = false python-versions = ">=3.6" files = [ @@ -161,7 +154,6 @@ files = [ name = "charset-normalizer" version = "2.1.1" description = "The Real First Universal Charset Detector. Open, modern and actively maintained alternative to Chardet." -category = "main" optional = false python-versions = ">=3.6.0" files = [ @@ -176,7 +168,6 @@ unicode-backport = ["unicodedata2"] name = "click" version = "8.1.3" description = "Composable command line interface toolkit" -category = "main" optional = false python-versions = ">=3.7" files = [ @@ -191,7 +182,6 @@ colorama = {version = "*", markers = "platform_system == \"Windows\""} name = "colorama" version = "0.4.5" description = "Cross-platform colored terminal text." -category = "main" optional = false python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*" files = [ @@ -203,7 +193,6 @@ files = [ name = "confection" version = "0.0.1" description = "The sweetest config system for Python" -category = "main" optional = true python-versions = ">=3.6" files = [ @@ -219,7 +208,6 @@ srsly = ">=2.4.0,<3.0.0" name = "conllu" version = "4.5.2" description = "CoNLL-U Parser parses a CoNLL-U formatted string into a nested python dictionary" -category = "main" optional = true python-versions = ">=3.6" files = [ @@ -231,7 +219,6 @@ files = [ name = "contourpy" version = "1.0.5" description = "Python library for calculating contours of 2D quadrilateral grids" -category = "main" optional = true python-versions = ">=3.7" files = [ @@ -320,7 +307,6 @@ test-no-codebase = ["Pillow", "matplotlib", "pytest"] name = "cycler" version = "0.11.0" description = "Composable style cycles" -category = "main" optional = true python-versions = ">=3.6" files = [ @@ -332,7 +318,6 @@ files = [ name = "cymem" version = "2.0.6" description = "Manage calls to calloc/free through Cython" -category = "main" optional = true python-versions = "*" files = [ @@ -366,7 +351,6 @@ files = [ name = "darglint" version = "1.8.1" description = "A utility for ensuring Google-style docstrings stay up to date with the source code." -category = "dev" optional = false python-versions = ">=3.6,<4.0" files = [ @@ -378,7 +362,6 @@ files = [ name = "dataclasses-json" version = "0.5.7" description = "Easily serialize dataclasses to and from JSON" -category = "main" optional = false python-versions = ">=3.6" files = [ @@ -398,7 +381,6 @@ dev = ["flake8", "hypothesis", "ipython", "mypy (>=0.710)", "portray", "pytest ( name = "deprecated" version = "1.2.13" description = "Python @deprecated decorator to deprecate old python classes, functions or methods." -category = "main" optional = true python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*" files = [ @@ -416,7 +398,6 @@ dev = ["PyTest", "PyTest (<5)", "PyTest-Cov", "PyTest-Cov (<2.6)", "bump2version name = "ffmpeg-python" version = "0.2.0" description = "Python bindings for FFmpeg - with complex filtering support" -category = "main" optional = true python-versions = "*" files = [ @@ -434,7 +415,6 @@ dev = ["Sphinx (==2.1.0)", "future (==0.17.1)", "numpy (==1.16.4)", "pytest (==4 name = "filelock" version = "3.8.0" description = "A platform independent file lock." -category = "main" optional = true python-versions = ">=3.7" files = [ @@ -450,7 +430,6 @@ testing = ["covdefaults (>=2.2)", "coverage (>=6.4.2)", "pytest (>=7.1.2)", "pyt name = "flair" version = "0.10" description = "A very simple framework for state-of-the-art NLP" -category = "main" optional = true python-versions = ">=3.6" files = [ @@ -489,7 +468,6 @@ wikipedia-api = "*" name = "flake8" version = "5.0.4" description = "the modular source code checker: pep8 pyflakes and co" -category = "dev" optional = false python-versions = ">=3.6.1" files = [ @@ -506,7 +484,6 @@ pyflakes = ">=2.5.0,<2.6.0" name = "fonttools" version = "4.37.4" description = "Tools to manipulate font files" -category = "main" optional = true python-versions = ">=3.7" files = [ @@ -532,7 +509,6 @@ woff = ["brotli (>=1.0.1)", "brotlicffi (>=0.8.0)", "zopfli (>=0.1.4)"] name = "ftfy" version = "6.1.1" description = "Fixes mojibake and other problems with Unicode, after the fact" -category = "main" optional = true python-versions = ">=3.7,<4" files = [ @@ -547,7 +523,6 @@ wcwidth = ">=0.2.5" name = "future" version = "0.18.3" description = "Clean single-source support for Python 3 and 2" -category = "main" optional = true python-versions = ">=2.6, !=3.0.*, !=3.1.*, !=3.2.*" files = [ @@ -558,7 +533,6 @@ files = [ name = "gdown" version = "3.12.2" description = "Google Drive direct download of big files." -category = "main" optional = true python-versions = "*" files = [ @@ -575,7 +549,6 @@ tqdm = "*" name = "gensim" version = "4.2.0" description = "Python framework for fast Vector Space Modelling" -category = "main" optional = true python-versions = ">=3.6" files = [ @@ -612,7 +585,6 @@ test-win = ["cython", "mock", "nmslib", "pyemd", "pytest", "pytest-cov", "testfi name = "ghp-import" version = "2.1.0" description = "Copy your docs directly to the gh-pages branch." -category = "dev" optional = false python-versions = "*" files = [ @@ -630,7 +602,6 @@ dev = ["flake8", "markdown", "twine", "wheel"] name = "griffe" version = "0.22.2" description = "Signatures for entire Python programs. Extract the structure, the frame, the skeleton of your project, to generate API documentation or find breaking changes in your API." -category = "dev" optional = false python-versions = ">=3.7" files = [ @@ -645,7 +616,6 @@ async = ["aiofiles (>=0.7,<1.0)"] name = "huggingface-hub" version = "0.9.1" description = "Client library to download and publish models, datasets and other repos on the huggingface.co hub" -category = "main" optional = true python-versions = ">=3.7.0" files = [ @@ -674,7 +644,6 @@ torch = ["torch"] name = "idna" version = "3.4" description = "Internationalized Domain Names in Applications (IDNA)" -category = "main" optional = false python-versions = ">=3.5" files = [ @@ -686,7 +655,6 @@ files = [ name = "importlib-metadata" version = "4.12.0" description = "Read metadata from Python packages" -category = "dev" optional = false python-versions = ">=3.7" files = [ @@ -706,7 +674,6 @@ testing = ["flufl.flake8", "importlib-resources (>=1.3)", "packaging", "pyfakefs name = "iniconfig" version = "1.1.1" description = "iniconfig: brain-dead simple config-ini parsing" -category = "dev" optional = false python-versions = "*" files = [ @@ -718,7 +685,6 @@ files = [ name = "isort" version = "5.10.1" description = "A Python utility / library to sort Python imports." -category = "dev" optional = false python-versions = ">=3.6.1,<4.0" files = [ @@ -736,7 +702,6 @@ requirements-deprecated-finder = ["pip-api", "pipreqs"] name = "janome" version = "0.4.2" description = "Japanese morphological analysis engine." -category = "main" optional = true python-versions = "*" files = [ @@ -748,7 +713,6 @@ files = [ name = "jinja2" version = "3.1.2" description = "A very fast and expressive template engine." -category = "main" optional = false python-versions = ">=3.7" files = [ @@ -766,7 +730,6 @@ i18n = ["Babel (>=2.7)"] name = "joblib" version = "1.2.0" description = "Lightweight pipelining with Python functions" -category = "main" optional = true python-versions = ">=3.7" files = [ @@ -778,7 +741,6 @@ files = [ name = "kiwisolver" version = "1.4.4" description = "A fast implementation of the Cassowary constraint solver" -category = "main" optional = true python-versions = ">=3.7" files = [ @@ -856,7 +818,6 @@ files = [ name = "konoha" version = "4.6.3" description = "A tiny sentence/word tokenizer for Japanese text written in Python" -category = "main" optional = true python-versions = ">=3.6.1,<4.0.0" files = [ @@ -885,7 +846,6 @@ sudachi = ["sudachidict-core (>=20200330,<20200331)", "sudachipy (==0.4.9)"] name = "langcodes" version = "3.3.0" description = "Tools for labeling human languages with IETF language tags" -category = "main" optional = true python-versions = ">=3.6" files = [ @@ -900,7 +860,6 @@ data = ["language-data (>=1.1,<2.0)"] name = "langdetect" version = "1.0.9" description = "Language detection library ported from Google's language-detection." -category = "main" optional = true python-versions = "*" files = [ @@ -915,7 +874,6 @@ six = "*" name = "lxml" version = "4.9.1" description = "Powerful and Pythonic XML processing library combining libxml2/libxslt with the ElementTree API." -category = "main" optional = true python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, != 3.4.*" files = [ @@ -1001,7 +959,6 @@ source = ["Cython (>=0.29.7)"] name = "markdown" version = "3.3.7" description = "Python implementation of Markdown." -category = "dev" optional = false python-versions = ">=3.6" files = [ @@ -1019,7 +976,6 @@ testing = ["coverage", "pyyaml"] name = "markdown-callouts" version = "0.3.0" description = "Markdown extension: a classier syntax for admonitions" -category = "dev" optional = false python-versions = ">=3.6,<4.0" files = [ @@ -1034,7 +990,6 @@ Markdown = ">=3.3.3,<4.0.0" name = "markupsafe" version = "2.1.1" description = "Safely add untrusted strings to HTML/XML markup." -category = "main" optional = false python-versions = ">=3.7" files = [ @@ -1084,7 +1039,6 @@ files = [ name = "marshmallow" version = "3.18.0" description = "A lightweight library for converting complex datatypes to and from native Python datatypes." -category = "main" optional = false python-versions = ">=3.7" files = [ @@ -1105,7 +1059,6 @@ tests = ["pytest", "pytz", "simplejson"] name = "marshmallow-enum" version = "1.5.1" description = "Enum field for Marshmallow" -category = "main" optional = false python-versions = "*" files = [ @@ -1120,7 +1073,6 @@ marshmallow = ">=2.0.0" name = "matplotlib" version = "3.6.1" description = "Python plotting package" -category = "main" optional = true python-versions = ">=3.8" files = [ @@ -1182,7 +1134,6 @@ python-dateutil = ">=2.7" name = "mccabe" version = "0.7.0" description = "McCabe checker, plugin for flake8" -category = "dev" optional = false python-versions = ">=3.6" files = [ @@ -1194,7 +1145,6 @@ files = [ name = "mergedeep" version = "1.3.4" description = "A deep merge function for 🐍." -category = "dev" optional = false python-versions = ">=3.6" files = [ @@ -1206,7 +1156,6 @@ files = [ name = "mkdocs" version = "1.3.1" description = "Project documentation with Markdown." -category = "dev" optional = false python-versions = ">=3.6" files = [ @@ -1233,7 +1182,6 @@ i18n = ["babel (>=2.9.0)"] name = "mkdocs-autorefs" version = "0.4.1" description = "Automatically link across pages in MkDocs." -category = "dev" optional = false python-versions = ">=3.7" files = [ @@ -1249,7 +1197,6 @@ mkdocs = ">=1.1" name = "mkdocs-material" version = "8.5.3" description = "Documentation that simply works" -category = "dev" optional = false python-versions = ">=3.7" files = [ @@ -1270,7 +1217,6 @@ requests = ">=2.26" name = "mkdocs-material-extensions" version = "1.0.3" description = "Extension pack for Python Markdown." -category = "dev" optional = false python-versions = ">=3.6" files = [ @@ -1282,7 +1228,6 @@ files = [ name = "mkdocs-same-dir" version = "0.1.1" description = "MkDocs plugin to allow placing mkdocs.yml in the same directory as documentation" -category = "dev" optional = false python-versions = ">=3.6,<4.0" files = [ @@ -1297,7 +1242,6 @@ mkdocs = ">=1.0.3,<2.0.0" name = "mkdocstrings" version = "0.19.0" description = "Automatic documentation from sources, for MkDocs." -category = "dev" optional = false python-versions = ">=3.7" files = [ @@ -1324,7 +1268,6 @@ python-legacy = ["mkdocstrings-python-legacy (>=0.2.1)"] name = "mkdocstrings-crystal" version = "0.3.5" description = "Crystal language doc generator for mkdocstrings" -category = "dev" optional = false python-versions = ">=3.7,<4.0" files = [ @@ -1344,7 +1287,6 @@ mkdocstrings = ">=0.15.1" name = "mkdocstrings-python" version = "0.7.1" description = "A Python handler for mkdocstrings." -category = "dev" optional = false python-versions = ">=3.7" files = [ @@ -1360,7 +1302,6 @@ mkdocstrings = ">=0.19" name = "more-itertools" version = "8.8.0" description = "More routines for operating on iterables, beyond itertools" -category = "main" optional = true python-versions = ">=3.5" files = [ @@ -1372,7 +1313,6 @@ files = [ name = "mpld3" version = "0.3" description = "D3 Viewer for Matplotlib" -category = "main" optional = true python-versions = "*" files = [ @@ -1383,7 +1323,6 @@ files = [ name = "mslex" version = "0.3.0" description = "shlex for windows" -category = "dev" optional = false python-versions = ">=3.5" files = [ @@ -1395,7 +1334,6 @@ files = [ name = "multidict" version = "6.0.2" description = "multidict implementation" -category = "dev" optional = false python-versions = ">=3.7" files = [ @@ -1464,7 +1402,6 @@ files = [ name = "murmurhash" version = "1.0.8" description = "Cython bindings for MurmurHash" -category = "main" optional = true python-versions = ">=3.6" files = [ @@ -1499,7 +1436,6 @@ files = [ name = "mypy" version = "0.971" description = "Optional static typing for Python" -category = "dev" optional = false python-versions = ">=3.6" files = [ @@ -1542,7 +1478,6 @@ reports = ["lxml"] name = "mypy-extensions" version = "0.4.3" description = "Experimental type system extensions for programs checked with the mypy typechecker." -category = "main" optional = false python-versions = "*" files = [ @@ -1554,7 +1489,6 @@ files = [ name = "numpy" version = "1.23.3" description = "NumPy is the fundamental package for array computing with Python." -category = "main" optional = true python-versions = ">=3.8" files = [ @@ -1592,7 +1526,6 @@ files = [ name = "nvidia-cublas-cu11" version = "11.10.3.66" description = "CUBLAS native runtime libraries" -category = "main" optional = true python-versions = ">=3" files = [ @@ -1608,7 +1541,6 @@ wheel = "*" name = "nvidia-cuda-nvrtc-cu11" version = "11.7.99" description = "NVRTC native runtime libraries" -category = "main" optional = true python-versions = ">=3" files = [ @@ -1625,7 +1557,6 @@ wheel = "*" name = "nvidia-cuda-runtime-cu11" version = "11.7.99" description = "CUDA Runtime native Libraries" -category = "main" optional = true python-versions = ">=3" files = [ @@ -1641,7 +1572,6 @@ wheel = "*" name = "nvidia-cudnn-cu11" version = "8.5.0.96" description = "cuDNN runtime libraries" -category = "main" optional = true python-versions = ">=3" files = [ @@ -1657,7 +1587,6 @@ wheel = "*" name = "overrides" version = "3.1.0" description = "A decorator to automatically detect mismatch when overriding a method." -category = "main" optional = true python-versions = "*" files = [ @@ -1668,7 +1597,6 @@ files = [ name = "packaging" version = "21.3" description = "Core utilities for Python packages" -category = "main" optional = false python-versions = ">=3.6" files = [ @@ -1683,7 +1611,6 @@ pyparsing = ">=2.0.2,<3.0.5 || >3.0.5" name = "pandas" version = "1.5.1" description = "Powerful data structures for data analysis, time series, and statistics" -category = "main" optional = true python-versions = ">=3.8" files = [ @@ -1731,7 +1658,6 @@ test = ["hypothesis (>=5.5.3)", "pytest (>=6.0)", "pytest-xdist (>=1.31)"] name = "partial-tagger" version = "0.6.1" description = "Sequence Tagger for Partially Annotated Dataset in PyTorch" -category = "main" optional = true python-versions = ">=3.8,<4.0" files = [ @@ -1746,7 +1672,6 @@ torch = ">=1.11.0,<2.0.0" name = "pathspec" version = "0.10.1" description = "Utility library for gitignore style pattern matching of file paths." -category = "dev" optional = false python-versions = ">=3.7" files = [ @@ -1758,7 +1683,6 @@ files = [ name = "pathy" version = "0.6.2" description = "pathlib.Path subclasses for local and cloud bucket storage" -category = "main" optional = true python-versions = ">= 3.6" files = [ @@ -1780,7 +1704,6 @@ test = ["mock", "pytest", "pytest-coverage", "typer-cli"] name = "pillow" version = "9.3.0" description = "Python Imaging Library (Fork)" -category = "main" optional = true python-versions = ">=3.7" files = [ @@ -1855,7 +1778,6 @@ tests = ["check-manifest", "coverage", "defusedxml", "markdown2", "olefile", "pa name = "platformdirs" version = "2.5.2" description = "A small Python module for determining appropriate platform-specific dirs, e.g. a \"user data dir\"." -category = "dev" optional = false python-versions = ">=3.7" files = [ @@ -1871,7 +1793,6 @@ test = ["appdirs (==1.4.4)", "pytest (>=6)", "pytest-cov (>=2.7)", "pytest-mock name = "pluggy" version = "1.0.0" description = "plugin and hook calling mechanisms for python" -category = "dev" optional = false python-versions = ">=3.6" files = [ @@ -1887,7 +1808,6 @@ testing = ["pytest", "pytest-benchmark"] name = "preshed" version = "3.0.7" description = "Cython hash table that trusts the keys are pre-hashed" -category = "main" optional = true python-versions = ">=3.6" files = [ @@ -1926,7 +1846,6 @@ murmurhash = ">=0.28.0,<1.1.0" name = "psutil" version = "5.9.2" description = "Cross-platform lib for process and system monitoring in Python." -category = "dev" optional = false python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*" files = [ @@ -1971,7 +1890,6 @@ test = ["enum34", "ipaddress", "mock", "pywin32", "wmi"] name = "py" version = "1.11.0" description = "library with cross-python path, ini-parsing, io, code, log facilities" -category = "dev" optional = false python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*" files = [ @@ -1983,7 +1901,6 @@ files = [ name = "pycodestyle" version = "2.9.1" description = "Python style guide checker" -category = "dev" optional = false python-versions = ">=3.6" files = [ @@ -1995,7 +1912,6 @@ files = [ name = "pydantic" version = "1.9.2" description = "Data validation and settings management using python type hints" -category = "main" optional = false python-versions = ">=3.6.1" files = [ @@ -2047,7 +1963,6 @@ email = ["email-validator (>=1.0.3)"] name = "pyflakes" version = "2.5.0" description = "passive checker of Python programs" -category = "dev" optional = false python-versions = ">=3.6" files = [ @@ -2059,7 +1974,6 @@ files = [ name = "pygments" version = "2.13.0" description = "Pygments is a syntax highlighting package written in Python." -category = "dev" optional = false python-versions = ">=3.6" files = [ @@ -2074,7 +1988,6 @@ plugins = ["importlib-metadata"] name = "pymdown-extensions" version = "9.5" description = "Extension pack for Python Markdown." -category = "dev" optional = false python-versions = ">=3.7" files = [ @@ -2089,7 +2002,6 @@ markdown = ">=3.2" name = "pyparsing" version = "3.0.9" description = "pyparsing module - Classes and methods to define and execute parsing grammars" -category = "main" optional = false python-versions = ">=3.6.8" files = [ @@ -2104,7 +2016,6 @@ diagrams = ["jinja2", "railroad-diagrams"] name = "pyproject-flake8" version = "5.0.4.post1" description = "pyproject-flake8 (`pflake8`), a monkey patching wrapper to connect flake8 with pyproject.toml configuration" -category = "dev" optional = false python-versions = "*" files = [ @@ -2120,7 +2031,6 @@ tomli = {version = "*", markers = "python_version < \"3.11\""} name = "pysocks" version = "1.7.1" description = "A Python SOCKS client module. See https://github.com/Anorov/PySocks for more information." -category = "main" optional = true python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*" files = [ @@ -2133,7 +2043,6 @@ files = [ name = "pytest" version = "7.1.3" description = "pytest: simple powerful testing with Python" -category = "dev" optional = false python-versions = ">=3.7" files = [ @@ -2157,7 +2066,6 @@ testing = ["argcomplete", "hypothesis (>=3.56)", "mock", "nose", "pygments (>=2. name = "python-dateutil" version = "2.8.2" description = "Extensions to the standard Python datetime module" -category = "main" optional = false python-versions = "!=3.0.*,!=3.1.*,!=3.2.*,>=2.7" files = [ @@ -2172,7 +2080,6 @@ six = ">=1.5" name = "pytokenizations" version = "0.8.4" description = "" -category = "main" optional = true python-versions = "*" files = [ @@ -2194,7 +2101,6 @@ files = [ name = "pytz" version = "2022.5" description = "World timezone definitions, modern and historical" -category = "main" optional = true python-versions = "*" files = [ @@ -2204,59 +2110,67 @@ files = [ [[package]] name = "pyyaml" -version = "6.0" +version = "6.0.1" description = "YAML parser and emitter for Python" -category = "main" optional = false python-versions = ">=3.6" files = [ - {file = "PyYAML-6.0-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:d4db7c7aef085872ef65a8fd7d6d09a14ae91f691dec3e87ee5ee0539d516f53"}, - {file = "PyYAML-6.0-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:9df7ed3b3d2e0ecfe09e14741b857df43adb5a3ddadc919a2d94fbdf78fea53c"}, - {file = "PyYAML-6.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:77f396e6ef4c73fdc33a9157446466f1cff553d979bd00ecb64385760c6babdc"}, - {file = "PyYAML-6.0-cp310-cp310-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:a80a78046a72361de73f8f395f1f1e49f956c6be882eed58505a15f3e430962b"}, - {file = "PyYAML-6.0-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl", hash = "sha256:f84fbc98b019fef2ee9a1cb3ce93e3187a6df0b2538a651bfb890254ba9f90b5"}, - {file = "PyYAML-6.0-cp310-cp310-win32.whl", hash = "sha256:2cd5df3de48857ed0544b34e2d40e9fac445930039f3cfe4bcc592a1f836d513"}, - {file = "PyYAML-6.0-cp310-cp310-win_amd64.whl", hash = "sha256:daf496c58a8c52083df09b80c860005194014c3698698d1a57cbcfa182142a3a"}, - {file = "PyYAML-6.0-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:d4b0ba9512519522b118090257be113b9468d804b19d63c71dbcf4a48fa32358"}, - {file = "PyYAML-6.0-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:81957921f441d50af23654aa6c5e5eaf9b06aba7f0a19c18a538dc7ef291c5a1"}, - {file = "PyYAML-6.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:afa17f5bc4d1b10afd4466fd3a44dc0e245382deca5b3c353d8b757f9e3ecb8d"}, - {file = "PyYAML-6.0-cp311-cp311-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:dbad0e9d368bb989f4515da330b88a057617d16b6a8245084f1b05400f24609f"}, - {file = "PyYAML-6.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:432557aa2c09802be39460360ddffd48156e30721f5e8d917f01d31694216782"}, - {file = "PyYAML-6.0-cp311-cp311-win32.whl", hash = "sha256:bfaef573a63ba8923503d27530362590ff4f576c626d86a9fed95822a8255fd7"}, - {file = "PyYAML-6.0-cp311-cp311-win_amd64.whl", hash = "sha256:01b45c0191e6d66c470b6cf1b9531a771a83c1c4208272ead47a3ae4f2f603bf"}, - {file = "PyYAML-6.0-cp36-cp36m-macosx_10_9_x86_64.whl", hash = "sha256:897b80890765f037df3403d22bab41627ca8811ae55e9a722fd0392850ec4d86"}, - {file = "PyYAML-6.0-cp36-cp36m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:50602afada6d6cbfad699b0c7bb50d5ccffa7e46a3d738092afddc1f9758427f"}, - {file = "PyYAML-6.0-cp36-cp36m-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:48c346915c114f5fdb3ead70312bd042a953a8ce5c7106d5bfb1a5254e47da92"}, - {file = "PyYAML-6.0-cp36-cp36m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl", hash = "sha256:98c4d36e99714e55cfbaaee6dd5badbc9a1ec339ebfc3b1f52e293aee6bb71a4"}, - {file = "PyYAML-6.0-cp36-cp36m-win32.whl", hash = "sha256:0283c35a6a9fbf047493e3a0ce8d79ef5030852c51e9d911a27badfde0605293"}, - {file = "PyYAML-6.0-cp36-cp36m-win_amd64.whl", hash = "sha256:07751360502caac1c067a8132d150cf3d61339af5691fe9e87803040dbc5db57"}, - {file = "PyYAML-6.0-cp37-cp37m-macosx_10_9_x86_64.whl", hash = "sha256:819b3830a1543db06c4d4b865e70ded25be52a2e0631ccd2f6a47a2822f2fd7c"}, - {file = "PyYAML-6.0-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:473f9edb243cb1935ab5a084eb238d842fb8f404ed2193a915d1784b5a6b5fc0"}, - {file = "PyYAML-6.0-cp37-cp37m-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:0ce82d761c532fe4ec3f87fc45688bdd3a4c1dc5e0b4a19814b9009a29baefd4"}, - {file = "PyYAML-6.0-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl", hash = "sha256:231710d57adfd809ef5d34183b8ed1eeae3f76459c18fb4a0b373ad56bedcdd9"}, - {file = "PyYAML-6.0-cp37-cp37m-win32.whl", hash = "sha256:c5687b8d43cf58545ade1fe3e055f70eac7a5a1a0bf42824308d868289a95737"}, - {file = "PyYAML-6.0-cp37-cp37m-win_amd64.whl", hash = "sha256:d15a181d1ecd0d4270dc32edb46f7cb7733c7c508857278d3d378d14d606db2d"}, - {file = "PyYAML-6.0-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:0b4624f379dab24d3725ffde76559cff63d9ec94e1736b556dacdfebe5ab6d4b"}, - {file = "PyYAML-6.0-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:213c60cd50106436cc818accf5baa1aba61c0189ff610f64f4a3e8c6726218ba"}, - {file = "PyYAML-6.0-cp38-cp38-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:9fa600030013c4de8165339db93d182b9431076eb98eb40ee068700c9c813e34"}, - {file = "PyYAML-6.0-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl", hash = "sha256:277a0ef2981ca40581a47093e9e2d13b3f1fbbeffae064c1d21bfceba2030287"}, - {file = "PyYAML-6.0-cp38-cp38-win32.whl", hash = "sha256:d4eccecf9adf6fbcc6861a38015c2a64f38b9d94838ac1810a9023a0609e1b78"}, - {file = "PyYAML-6.0-cp38-cp38-win_amd64.whl", hash = "sha256:1e4747bc279b4f613a09eb64bba2ba602d8a6664c6ce6396a4d0cd413a50ce07"}, - {file = "PyYAML-6.0-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:055d937d65826939cb044fc8c9b08889e8c743fdc6a32b33e2390f66013e449b"}, - {file = "PyYAML-6.0-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:e61ceaab6f49fb8bdfaa0f92c4b57bcfbea54c09277b1b4f7ac376bfb7a7c174"}, - {file = "PyYAML-6.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:d67d839ede4ed1b28a4e8909735fc992a923cdb84e618544973d7dfc71540803"}, - {file = "PyYAML-6.0-cp39-cp39-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:cba8c411ef271aa037d7357a2bc8f9ee8b58b9965831d9e51baf703280dc73d3"}, - {file = "PyYAML-6.0-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl", hash = "sha256:40527857252b61eacd1d9af500c3337ba8deb8fc298940291486c465c8b46ec0"}, - {file = "PyYAML-6.0-cp39-cp39-win32.whl", hash = "sha256:b5b9eccad747aabaaffbc6064800670f0c297e52c12754eb1d976c57e4f74dcb"}, - {file = "PyYAML-6.0-cp39-cp39-win_amd64.whl", hash = "sha256:b3d267842bf12586ba6c734f89d1f5b871df0273157918b0ccefa29deb05c21c"}, - {file = "PyYAML-6.0.tar.gz", hash = "sha256:68fb519c14306fec9720a2a5b45bc9f0c8d1b9c72adf45c37baedfcd949c35a2"}, + {file = "PyYAML-6.0.1-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:d858aa552c999bc8a8d57426ed01e40bef403cd8ccdd0fc5f6f04a00414cac2a"}, + {file = "PyYAML-6.0.1-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:fd66fc5d0da6d9815ba2cebeb4205f95818ff4b79c3ebe268e75d961704af52f"}, + {file = "PyYAML-6.0.1-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:69b023b2b4daa7548bcfbd4aa3da05b3a74b772db9e23b982788168117739938"}, + {file = "PyYAML-6.0.1-cp310-cp310-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:81e0b275a9ecc9c0c0c07b4b90ba548307583c125f54d5b6946cfee6360c733d"}, + {file = "PyYAML-6.0.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:ba336e390cd8e4d1739f42dfe9bb83a3cc2e80f567d8805e11b46f4a943f5515"}, + {file = "PyYAML-6.0.1-cp310-cp310-musllinux_1_1_x86_64.whl", hash = "sha256:326c013efe8048858a6d312ddd31d56e468118ad4cdeda36c719bf5bb6192290"}, + {file = "PyYAML-6.0.1-cp310-cp310-win32.whl", hash = "sha256:bd4af7373a854424dabd882decdc5579653d7868b8fb26dc7d0e99f823aa5924"}, + {file = "PyYAML-6.0.1-cp310-cp310-win_amd64.whl", hash = "sha256:fd1592b3fdf65fff2ad0004b5e363300ef59ced41c2e6b3a99d4089fa8c5435d"}, + {file = "PyYAML-6.0.1-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:6965a7bc3cf88e5a1c3bd2e0b5c22f8d677dc88a455344035f03399034eb3007"}, + {file = "PyYAML-6.0.1-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:f003ed9ad21d6a4713f0a9b5a7a0a79e08dd0f221aff4525a2be4c346ee60aab"}, + {file = "PyYAML-6.0.1-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:42f8152b8dbc4fe7d96729ec2b99c7097d656dc1213a3229ca5383f973a5ed6d"}, + {file = "PyYAML-6.0.1-cp311-cp311-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:062582fca9fabdd2c8b54a3ef1c978d786e0f6b3a1510e0ac93ef59e0ddae2bc"}, + {file = "PyYAML-6.0.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:d2b04aac4d386b172d5b9692e2d2da8de7bfb6c387fa4f801fbf6fb2e6ba4673"}, + {file = "PyYAML-6.0.1-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:e7d73685e87afe9f3b36c799222440d6cf362062f78be1013661b00c5c6f678b"}, + {file = "PyYAML-6.0.1-cp311-cp311-win32.whl", hash = "sha256:1635fd110e8d85d55237ab316b5b011de701ea0f29d07611174a1b42f1444741"}, + {file = "PyYAML-6.0.1-cp311-cp311-win_amd64.whl", hash = "sha256:bf07ee2fef7014951eeb99f56f39c9bb4af143d8aa3c21b1677805985307da34"}, + {file = "PyYAML-6.0.1-cp312-cp312-macosx_10_9_x86_64.whl", hash = "sha256:855fb52b0dc35af121542a76b9a84f8d1cd886ea97c84703eaa6d88e37a2ad28"}, + {file = "PyYAML-6.0.1-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:40df9b996c2b73138957fe23a16a4f0ba614f4c0efce1e9406a184b6d07fa3a9"}, + {file = "PyYAML-6.0.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:6c22bec3fbe2524cde73d7ada88f6566758a8f7227bfbf93a408a9d86bcc12a0"}, + {file = "PyYAML-6.0.1-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:8d4e9c88387b0f5c7d5f281e55304de64cf7f9c0021a3525bd3b1c542da3b0e4"}, + {file = "PyYAML-6.0.1-cp312-cp312-win32.whl", hash = "sha256:d483d2cdf104e7c9fa60c544d92981f12ad66a457afae824d146093b8c294c54"}, + {file = "PyYAML-6.0.1-cp312-cp312-win_amd64.whl", hash = "sha256:0d3304d8c0adc42be59c5f8a4d9e3d7379e6955ad754aa9d6ab7a398b59dd1df"}, + {file = "PyYAML-6.0.1-cp36-cp36m-macosx_10_9_x86_64.whl", hash = "sha256:50550eb667afee136e9a77d6dc71ae76a44df8b3e51e41b77f6de2932bfe0f47"}, + {file = "PyYAML-6.0.1-cp36-cp36m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:1fe35611261b29bd1de0070f0b2f47cb6ff71fa6595c077e42bd0c419fa27b98"}, + {file = "PyYAML-6.0.1-cp36-cp36m-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:704219a11b772aea0d8ecd7058d0082713c3562b4e271b849ad7dc4a5c90c13c"}, + {file = "PyYAML-6.0.1-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:afd7e57eddb1a54f0f1a974bc4391af8bcce0b444685d936840f125cf046d5bd"}, + {file = "PyYAML-6.0.1-cp36-cp36m-win32.whl", hash = "sha256:fca0e3a251908a499833aa292323f32437106001d436eca0e6e7833256674585"}, + {file = "PyYAML-6.0.1-cp36-cp36m-win_amd64.whl", hash = "sha256:f22ac1c3cac4dbc50079e965eba2c1058622631e526bd9afd45fedd49ba781fa"}, + {file = "PyYAML-6.0.1-cp37-cp37m-macosx_10_9_x86_64.whl", hash = "sha256:b1275ad35a5d18c62a7220633c913e1b42d44b46ee12554e5fd39c70a243d6a3"}, + {file = "PyYAML-6.0.1-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:18aeb1bf9a78867dc38b259769503436b7c72f7a1f1f4c93ff9a17de54319b27"}, + {file = "PyYAML-6.0.1-cp37-cp37m-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:596106435fa6ad000c2991a98fa58eeb8656ef2325d7e158344fb33864ed87e3"}, + {file = "PyYAML-6.0.1-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:baa90d3f661d43131ca170712d903e6295d1f7a0f595074f151c0aed377c9b9c"}, + {file = "PyYAML-6.0.1-cp37-cp37m-win32.whl", hash = "sha256:9046c58c4395dff28dd494285c82ba00b546adfc7ef001486fbf0324bc174fba"}, + {file = "PyYAML-6.0.1-cp37-cp37m-win_amd64.whl", hash = "sha256:4fb147e7a67ef577a588a0e2c17b6db51dda102c71de36f8549b6816a96e1867"}, + {file = "PyYAML-6.0.1-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:1d4c7e777c441b20e32f52bd377e0c409713e8bb1386e1099c2415f26e479595"}, + {file = "PyYAML-6.0.1-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:a0cd17c15d3bb3fa06978b4e8958dcdc6e0174ccea823003a106c7d4d7899ac5"}, + {file = "PyYAML-6.0.1-cp38-cp38-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:28c119d996beec18c05208a8bd78cbe4007878c6dd15091efb73a30e90539696"}, + {file = "PyYAML-6.0.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:7e07cbde391ba96ab58e532ff4803f79c4129397514e1413a7dc761ccd755735"}, + {file = "PyYAML-6.0.1-cp38-cp38-musllinux_1_1_x86_64.whl", hash = "sha256:49a183be227561de579b4a36efbb21b3eab9651dd81b1858589f796549873dd6"}, + {file = "PyYAML-6.0.1-cp38-cp38-win32.whl", hash = "sha256:184c5108a2aca3c5b3d3bf9395d50893a7ab82a38004c8f61c258d4428e80206"}, + {file = "PyYAML-6.0.1-cp38-cp38-win_amd64.whl", hash = "sha256:1e2722cc9fbb45d9b87631ac70924c11d3a401b2d7f410cc0e3bbf249f2dca62"}, + {file = "PyYAML-6.0.1-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:9eb6caa9a297fc2c2fb8862bc5370d0303ddba53ba97e71f08023b6cd73d16a8"}, + {file = "PyYAML-6.0.1-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:c8098ddcc2a85b61647b2590f825f3db38891662cfc2fc776415143f599bb859"}, + {file = "PyYAML-6.0.1-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:5773183b6446b2c99bb77e77595dd486303b4faab2b086e7b17bc6bef28865f6"}, + {file = "PyYAML-6.0.1-cp39-cp39-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:b786eecbdf8499b9ca1d697215862083bd6d2a99965554781d0d8d1ad31e13a0"}, + {file = "PyYAML-6.0.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:bc1bf2925a1ecd43da378f4db9e4f799775d6367bdb94671027b73b393a7c42c"}, + {file = "PyYAML-6.0.1-cp39-cp39-musllinux_1_1_x86_64.whl", hash = "sha256:04ac92ad1925b2cff1db0cfebffb6ffc43457495c9b3c39d3fcae417d7125dc5"}, + {file = "PyYAML-6.0.1-cp39-cp39-win32.whl", hash = "sha256:faca3bdcf85b2fc05d06ff3fbc1f83e1391b3e724afa3feba7d13eeab355484c"}, + {file = "PyYAML-6.0.1-cp39-cp39-win_amd64.whl", hash = "sha256:510c9deebc5c0225e8c96813043e62b680ba2f9c50a08d3724c7f28a747d1486"}, + {file = "PyYAML-6.0.1.tar.gz", hash = "sha256:bfdf460b1736c775f2ba9f6a92bca30bc2095067b8a9d77876d1fad6cc3b4a43"}, ] [[package]] name = "pyyaml-env-tag" version = "0.1" description = "A custom YAML tag for referencing environment variables in YAML files. " -category = "dev" optional = false python-versions = ">=3.6" files = [ @@ -2271,7 +2185,6 @@ pyyaml = "*" name = "regex" version = "2022.9.13" description = "Alternative regular expression module, to replace re." -category = "main" optional = true python-versions = ">=3.6" files = [ @@ -2369,7 +2282,6 @@ files = [ name = "requests" version = "2.31.0" description = "Python HTTP for Humans." -category = "main" optional = false python-versions = ">=3.7" files = [ @@ -2392,7 +2304,6 @@ use-chardet-on-py3 = ["chardet (>=3.0.2,<6)"] name = "requests-toolbelt" version = "0.9.1" description = "A utility belt for advanced users of python-requests" -category = "main" optional = false python-versions = "*" files = [ @@ -2407,7 +2318,6 @@ requests = ">=2.0.1,<3.0.0" name = "responses" version = "0.21.0" description = "A utility library for mocking out the `requests` Python library." -category = "dev" optional = false python-versions = ">=3.7" files = [ @@ -2426,7 +2336,6 @@ tests = ["coverage (>=6.0.0)", "flake8", "mypy", "pytest (>=7.0.0)", "pytest-asy name = "scikit-learn" version = "1.1.2" description = "A set of python modules for machine learning and data mining" -category = "main" optional = true python-versions = ">=3.8" files = [ @@ -2466,7 +2375,6 @@ tests = ["black (>=22.3.0)", "flake8 (>=3.8.2)", "matplotlib (>=3.1.2)", "mypy ( name = "scipy" version = "1.9.2" description = "Fundamental algorithms for scientific computing in Python" -category = "main" optional = true python-versions = ">=3.8" files = [ @@ -2505,7 +2413,6 @@ test = ["asv", "gmpy2", "mpmath", "pytest", "pytest-cov", "pytest-xdist", "sciki name = "segtok" version = "1.5.11" description = "sentence segmentation and word tokenization tools" -category = "main" optional = true python-versions = "*" files = [ @@ -2520,7 +2427,6 @@ regex = "*" name = "sentencepiece" version = "0.1.95" description = "SentencePiece python wrapper" -category = "main" optional = true python-versions = "*" files = [ @@ -2569,7 +2475,6 @@ files = [ name = "seqal" version = "0.3.4" description = "Sequence labeling active learning framework for Python" -category = "main" optional = true python-versions = ">=3.8,<4.0" files = [ @@ -2587,7 +2492,6 @@ torch = ">=1.10.0,<2.0.0" name = "setuptools" version = "67.2.0" description = "Easily download, build, install, upgrade, and uninstall Python packages" -category = "main" optional = true python-versions = ">=3.7" files = [ @@ -2604,7 +2508,6 @@ testing-integration = ["build[virtualenv]", "filelock (>=3.4.0)", "jaraco.envs ( name = "six" version = "1.16.0" description = "Python 2 and 3 compatibility utilities" -category = "main" optional = false python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*" files = [ @@ -2616,7 +2519,6 @@ files = [ name = "smart-open" version = "5.2.1" description = "Utils for streaming large files (S3, HDFS, GCS, Azure Blob Storage, gzip, bz2...)" -category = "main" optional = true python-versions = ">=3.6,<4.0" files = [ @@ -2637,7 +2539,6 @@ webhdfs = ["requests"] name = "spacy" version = "3.4.1" description = "Industrial-strength Natural Language Processing (NLP) in Python" -category = "main" optional = true python-versions = ">=3.6" files = [ @@ -2718,7 +2619,6 @@ transformers = ["spacy-transformers (>=1.1.2,<1.2.0)"] name = "spacy-alignments" version = "0.8.5" description = "A spaCy package for the Rust tokenizations library" -category = "main" optional = true python-versions = ">=3.6" files = [ @@ -2752,7 +2652,6 @@ files = [ name = "spacy-legacy" version = "3.0.10" description = "Legacy registered functions for spaCy backwards compatibility" -category = "main" optional = true python-versions = ">=3.6" files = [ @@ -2764,7 +2663,6 @@ files = [ name = "spacy-loggers" version = "1.0.3" description = "Logging utilities for SpaCy" -category = "main" optional = true python-versions = ">=3.6" files = [ @@ -2779,7 +2677,6 @@ wasabi = ">=0.8.1,<1.1.0" name = "spacy-partial-tagger" version = "0.9.1" description = "Sequence Tagger for Partially Annotated Dataset in spaCy" -category = "main" optional = true python-versions = ">=3.8,<4.0" files = [ @@ -2799,7 +2696,6 @@ transformers = ">=4.19.4,<5.0.0" name = "spacy-transformers" version = "1.1.8" description = "spaCy pipelines for pre-trained BERT and other transformers" -category = "main" optional = true python-versions = ">=3.6" files = [ @@ -2831,7 +2727,6 @@ cuda92 = ["cupy-cuda92 (>=5.0.0b4)"] name = "sqlitedict" version = "2.0.0" description = "Persistent dict in Python, backed up by sqlite3 and pickle, multithread-safe." -category = "main" optional = true python-versions = "*" files = [ @@ -2842,7 +2737,6 @@ files = [ name = "srsly" version = "2.4.4" description = "Modern high-performance serialization utilities for Python" -category = "main" optional = true python-versions = ">=3.6" files = [ @@ -2879,7 +2773,6 @@ catalogue = ">=2.0.3,<2.1.0" name = "tabulate" version = "0.9.0" description = "Pretty-print tabular data" -category = "main" optional = true python-versions = ">=3.7" files = [ @@ -2894,7 +2787,6 @@ widechars = ["wcwidth"] name = "taskipy" version = "1.10.3" description = "tasks runner for python projects" -category = "dev" optional = false python-versions = ">=3.6,<4.0" files = [ @@ -2912,7 +2804,6 @@ tomli = {version = ">=2.0.1,<3.0.0", markers = "python_version >= \"3.7\" and py name = "thinc" version = "8.1.1" description = "A refreshing functional take on deep learning, compatible with your favorite libraries" -category = "main" optional = true python-versions = ">=3.6" files = [ @@ -2978,7 +2869,6 @@ torch = ["torch (>=1.6.0)"] name = "threadpoolctl" version = "3.1.0" description = "threadpoolctl" -category = "main" optional = true python-versions = ">=3.6" files = [ @@ -2990,7 +2880,6 @@ files = [ name = "tokenizers" version = "0.12.1" description = "Fast and Customizable Tokenizers" -category = "main" optional = true python-versions = "*" files = [ @@ -3037,7 +2926,6 @@ testing = ["datasets", "numpy", "pytest", "requests"] name = "tomli" version = "2.0.1" description = "A lil' TOML parser" -category = "dev" optional = false python-versions = ">=3.7" files = [ @@ -3049,7 +2937,6 @@ files = [ name = "torch" version = "1.13.1" description = "Tensors and Dynamic neural networks in Python with strong GPU acceleration" -category = "main" optional = true python-versions = ">=3.7.0" files = [ @@ -3090,7 +2977,6 @@ opt-einsum = ["opt-einsum (>=3.3)"] name = "tqdm" version = "4.64.1" description = "Fast, Extensible Progress Meter" -category = "main" optional = true python-versions = "!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,>=2.7" files = [ @@ -3111,7 +2997,6 @@ telegram = ["requests"] name = "transformers" version = "4.21.3" description = "State-of-the-art Machine Learning for JAX, PyTorch and TensorFlow" -category = "main" optional = true python-versions = ">=3.7.0" files = [ @@ -3176,7 +3061,6 @@ vision = ["Pillow"] name = "typer" version = "0.4.2" description = "Typer, build great CLIs. Easy to code. Based on Python type hints." -category = "main" optional = true python-versions = ">=3.6" files = [ @@ -3197,7 +3081,6 @@ test = ["black (>=22.3.0,<23.0.0)", "coverage (>=5.2,<6.0)", "isort (>=5.0.6,<6. name = "types-requests" version = "2.28.11" description = "Typing stubs for requests" -category = "dev" optional = false python-versions = "*" files = [ @@ -3212,7 +3095,6 @@ types-urllib3 = "<1.27" name = "types-urllib3" version = "1.26.24" description = "Typing stubs for urllib3" -category = "dev" optional = false python-versions = "*" files = [ @@ -3224,7 +3106,6 @@ files = [ name = "typing-extensions" version = "4.3.0" description = "Backported and Experimental Type Hints for Python 3.7+" -category = "main" optional = false python-versions = ">=3.7" files = [ @@ -3236,7 +3117,6 @@ files = [ name = "typing-inspect" version = "0.8.0" description = "Runtime inspection utilities for typing module." -category = "main" optional = false python-versions = "*" files = [ @@ -3252,7 +3132,6 @@ typing-extensions = ">=3.7.4" name = "urllib3" version = "1.26.12" description = "HTTP library with thread-safe connection pooling, file post, and more." -category = "main" optional = false python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, !=3.5.*, <4" files = [ @@ -3269,7 +3148,6 @@ socks = ["PySocks (>=1.5.6,!=1.5.7,<2.0)"] name = "vcrpy" version = "4.2.1" description = "Automatically mock your HTTP interactions to simplify and speed up testing" -category = "dev" optional = false python-versions = ">=3.7" files = [ @@ -3287,7 +3165,6 @@ yarl = "*" name = "wasabi" version = "0.10.1" description = "A lightweight console printing and formatting toolkit" -category = "main" optional = true python-versions = "*" files = [ @@ -3299,7 +3176,6 @@ files = [ name = "watchdog" version = "2.1.9" description = "Filesystem events monitoring" -category = "dev" optional = false python-versions = ">=3.6" files = [ @@ -3337,7 +3213,6 @@ watchmedo = ["PyYAML (>=3.10)"] name = "wcwidth" version = "0.2.5" description = "Measures the displayed width of unicode strings in a terminal" -category = "main" optional = true python-versions = "*" files = [ @@ -3349,7 +3224,6 @@ files = [ name = "wheel" version = "0.38.4" description = "A built-package format for Python" -category = "main" optional = true python-versions = ">=3.7" files = [ @@ -3364,7 +3238,6 @@ test = ["pytest (>=3.0.0)"] name = "wikipedia-api" version = "0.5.4" description = "Python Wrapper for Wikipedia" -category = "main" optional = true python-versions = "*" files = [ @@ -3378,7 +3251,6 @@ requests = "*" name = "wrapt" version = "1.14.1" description = "Module for decorators, wrappers and monkey patching." -category = "main" optional = false python-versions = "!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,>=2.7" files = [ @@ -3401,6 +3273,16 @@ files = [ {file = "wrapt-1.14.1-cp310-cp310-musllinux_1_1_x86_64.whl", hash = "sha256:8ad85f7f4e20964db4daadcab70b47ab05c7c1cf2a7c1e51087bfaa83831854c"}, {file = "wrapt-1.14.1-cp310-cp310-win32.whl", hash = "sha256:a9a52172be0b5aae932bef82a79ec0a0ce87288c7d132946d645eba03f0ad8a8"}, {file = "wrapt-1.14.1-cp310-cp310-win_amd64.whl", hash = "sha256:6d323e1554b3d22cfc03cd3243b5bb815a51f5249fdcbb86fda4bf62bab9e164"}, + {file = "wrapt-1.14.1-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:ecee4132c6cd2ce5308e21672015ddfed1ff975ad0ac8d27168ea82e71413f55"}, + {file = "wrapt-1.14.1-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:2020f391008ef874c6d9e208b24f28e31bcb85ccff4f335f15a3251d222b92d9"}, + {file = "wrapt-1.14.1-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:2feecf86e1f7a86517cab34ae6c2f081fd2d0dac860cb0c0ded96d799d20b335"}, + {file = "wrapt-1.14.1-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:240b1686f38ae665d1b15475966fe0472f78e71b1b4903c143a842659c8e4cb9"}, + {file = "wrapt-1.14.1-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:a9008dad07d71f68487c91e96579c8567c98ca4c3881b9b113bc7b33e9fd78b8"}, + {file = "wrapt-1.14.1-cp311-cp311-musllinux_1_1_aarch64.whl", hash = "sha256:6447e9f3ba72f8e2b985a1da758767698efa72723d5b59accefd716e9e8272bf"}, + {file = "wrapt-1.14.1-cp311-cp311-musllinux_1_1_i686.whl", hash = "sha256:acae32e13a4153809db37405f5eba5bac5fbe2e2ba61ab227926a22901051c0a"}, + {file = "wrapt-1.14.1-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:49ef582b7a1152ae2766557f0550a9fcbf7bbd76f43fbdc94dd3bf07cc7168be"}, + {file = "wrapt-1.14.1-cp311-cp311-win32.whl", hash = "sha256:358fe87cc899c6bb0ddc185bf3dbfa4ba646f05b1b0b9b5a27c2cb92c2cea204"}, + {file = "wrapt-1.14.1-cp311-cp311-win_amd64.whl", hash = "sha256:26046cd03936ae745a502abf44dac702a5e6880b2b01c29aea8ddf3353b68224"}, {file = "wrapt-1.14.1-cp35-cp35m-manylinux1_i686.whl", hash = "sha256:43ca3bbbe97af00f49efb06e352eae40434ca9d915906f77def219b88e85d907"}, {file = "wrapt-1.14.1-cp35-cp35m-manylinux1_x86_64.whl", hash = "sha256:6b1a564e6cb69922c7fe3a678b9f9a3c54e72b469875aa8018f18b4d1dd1adf3"}, {file = "wrapt-1.14.1-cp35-cp35m-manylinux2010_i686.whl", hash = "sha256:00b6d4ea20a906c0ca56d84f93065b398ab74b927a7a3dbd470f6fc503f95dc3"}, @@ -3452,7 +3334,6 @@ files = [ name = "yarl" version = "1.8.1" description = "Yet another URL library" -category = "dev" optional = false python-versions = ">=3.7" files = [ @@ -3525,7 +3406,6 @@ multidict = ">=4.0" name = "zipp" version = "3.8.1" description = "Backport of pathlib-compatible object wrapper for zip files" -category = "dev" optional = false python-versions = ">=3.7" files = [ @@ -3538,11 +3418,11 @@ docs = ["jaraco.packaging (>=9)", "jaraco.tidelift (>=1.4)", "rst.linker (>=1.9) testing = ["func-timeout", "jaraco.itertools", "pytest (>=6)", "pytest-black (>=0.3.7)", "pytest-checkdocs (>=2.4)", "pytest-cov", "pytest-enabler (>=1.3)", "pytest-flake8", "pytest-mypy (>=0.9.1)"] [extras] -al = ["spacy", "seqal", "pandas"] +al = ["pandas", "seqal", "spacy"] spacy = ["spacy", "spacy-partial-tagger", "tqdm"] whisper = ["ffmpeg-python", "tqdm"] [metadata] lock-version = "2.0" python-versions = "^3.8" -content-hash = "69236952504fe3d042e1767f28577992abf14113e8b41f6944bae43fdaabe566" +content-hash = "0aed4b1fd081b4aa3654e458ac14901125feb45929814743d1e6670c0bd77e1b" diff --git a/pyproject.toml b/pyproject.toml index 0b4c7ba..f37b923 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -29,6 +29,7 @@ requests-toolbelt = "^0.9.1" ffmpeg-python = { version = "^0.2.0", optional = true } seqal = { version = "^0.3.4", optional = true } pandas = { version = "^1.5.1", optional = true } +pyyaml = "<5.4.0 || >5.4.0,<5.4.1 || >5.4.1,<6.0.0 || >6.0.0" [tool.poetry.dev-dependencies] flake8 = "^5.0.4" From a65fd7d22c358270ff3776f35dfb018ce392b6a2 Mon Sep 17 00:00:00 2001 From: Caralyn Reisle Date: Thu, 18 Jan 2024 12:43:03 -0800 Subject: [PATCH 2/5] Modify returned next page url to use original base_url fixes doccano/doccano-client#146 --- doccano_client/repositories/base.py | 22 +++++++++++++++ doccano_client/repositories/project.py | 9 ++++-- tests/unit/repositories/test_base.py | 39 ++++++++++++++++++++++++++ 3 files changed, 67 insertions(+), 3 deletions(-) create mode 100644 tests/unit/repositories/test_base.py diff --git a/doccano_client/repositories/base.py b/doccano_client/repositories/base.py index 17df683..dc9d594 100644 --- a/doccano_client/repositories/base.py +++ b/doccano_client/repositories/base.py @@ -8,6 +8,28 @@ from doccano_client.exceptions import DoccanoAPIError +def get_next_url(base_url: str, initial_url: str, response_data: dict) -> Optional[str]: + """ + Get the "next" url from the response object correcting for issues when the API is running + at the non-default ports + + Args: + base_url: the base url of the doccano instance which is passed when creating the doccano client + initial_url: the url which was used for the first non-paged request + response_data: the json payload from the reponse + + Returns: + The adjusted url to get the next page or None when no next page is available + + """ + if response_data.get('next') is None: + return None + next_url = response_data['next'] + resource = initial_url[len(base_url) :] + _, next_suffix = next_url.split(resource) + return base_url + resource + next_suffix + + def verbose_raise_for_status(response: Response) -> Response: """Output a bad response's text before raising for verbosity, return response otherwise. diff --git a/doccano_client/repositories/project.py b/doccano_client/repositories/project.py index 8fc7210..ecac053 100644 --- a/doccano_client/repositories/project.py +++ b/doccano_client/repositories/project.py @@ -3,7 +3,7 @@ from typing import Any, Dict, Iterator from doccano_client.models.project import Project -from doccano_client.repositories.base import BaseRepository +from doccano_client.repositories.base import BaseRepository, get_next_url class ProjectRepository: @@ -56,16 +56,19 @@ def list(self) -> Iterator[Project]: Project: The next project. """ response = self._client.get("projects") + initial_url = response.url while True: projects = response.json() for project in projects["results"]: yield self._to_domain(project) - if projects["next"] is None: + next_page = get_next_url(self._client.api_url, initial_url, projects) + + if next_page is None: break else: - response = self._client.get(projects["next"]) + response = self._client.get(next_page) def create(self, project: Project) -> Project: """Create a new project diff --git a/tests/unit/repositories/test_base.py b/tests/unit/repositories/test_base.py new file mode 100644 index 0000000..443a8b5 --- /dev/null +++ b/tests/unit/repositories/test_base.py @@ -0,0 +1,39 @@ +from unittest.mock import MagicMock + +import pytest + +from doccano_client.repositories.base import get_next_url + + +@pytest.mark.parametrize( + 'base_url,initial_request_url,response_url,next_url', + [ + ( + 'https://hostname.ca', + 'https://hostname.ca/projects', + 'http://hostname.ca/projects?limit=5&offset=5', + 'https://hostname.ca/projects?limit=5&offset=5', + ), + ( + 'https://hostname.ca', + 'https://hostname.ca/projects', + 'http://localhost:3000/projects?limit=5&offset=5', + 'https://hostname.ca/projects?limit=5&offset=5', + ), + ( + 'https://hostname.ca', + 'https://hostname.ca/projects', + 'http://localhost:3000/projects?limit=5&offset=5', + 'https://hostname.ca/projects?limit=5&offset=5', + ), + ( + 'https://hostname.ca', + 'https://hostname.ca/projects', + 'https://hostname.ca/projects?limit=5&offset=5', + 'https://hostname.ca/projects?limit=5&offset=5', + ), + ], +) +def test_get_next_url(base_url, initial_request_url, response_url, next_url): + url = get_next_url(base_url, initial_request_url, {'next': response_url}) + assert url == next_url From c7273dfb400f53a615618ad4ef9022a1f9686fe7 Mon Sep 17 00:00:00 2001 From: Caralyn Reisle Date: Thu, 18 Jan 2024 12:49:39 -0800 Subject: [PATCH 3/5] Fallback to returning the unmodified next url --- doccano_client/repositories/base.py | 10 +++++++--- tests/unit/repositories/test_base.py | 16 ++++++++++++++++ 2 files changed, 23 insertions(+), 3 deletions(-) diff --git a/doccano_client/repositories/base.py b/doccano_client/repositories/base.py index dc9d594..7f3760a 100644 --- a/doccano_client/repositories/base.py +++ b/doccano_client/repositories/base.py @@ -25,9 +25,13 @@ def get_next_url(base_url: str, initial_url: str, response_data: dict) -> Option if response_data.get('next') is None: return None next_url = response_data['next'] - resource = initial_url[len(base_url) :] - _, next_suffix = next_url.split(resource) - return base_url + resource + next_suffix + try: + resource = initial_url[len(base_url) :] + _, next_suffix = next_url.split(resource) + return base_url + resource + next_suffix + except ValueError: + # fallback to returning the unmodified next url + return next_url def verbose_raise_for_status(response: Response) -> Response: diff --git a/tests/unit/repositories/test_base.py b/tests/unit/repositories/test_base.py index 443a8b5..200f213 100644 --- a/tests/unit/repositories/test_base.py +++ b/tests/unit/repositories/test_base.py @@ -37,3 +37,19 @@ def test_get_next_url(base_url, initial_request_url, response_url, next_url): url = get_next_url(base_url, initial_request_url, {'next': response_url}) assert url == next_url + + +@pytest.mark.parametrize( + 'base_url,initial_request_url,response_url', + [ + ( + 'https://hostname.ca', + 'https://hostname.ca/projects', + 'http://hostname.ca/things?limit=5&offset=5', + ), + ], +) +def test_get_next_url_error(base_url, initial_request_url, response_url): + # should return the unmodified url when in doubt + url = get_next_url(base_url, initial_request_url, {'next': response_url}) + assert url == response_url From 310df1c23a22ca46c23c3eb555b47d48f1e17b5c Mon Sep 17 00:00:00 2001 From: Caralyn Reisle Date: Thu, 18 Jan 2024 12:53:59 -0800 Subject: [PATCH 4/5] Run black --- doccano_client/repositories/base.py | 4 +-- tests/unit/repositories/test_base.py | 46 ++++++++++++++-------------- 2 files changed, 25 insertions(+), 25 deletions(-) diff --git a/doccano_client/repositories/base.py b/doccano_client/repositories/base.py index 7f3760a..20a9ea9 100644 --- a/doccano_client/repositories/base.py +++ b/doccano_client/repositories/base.py @@ -22,9 +22,9 @@ def get_next_url(base_url: str, initial_url: str, response_data: dict) -> Option The adjusted url to get the next page or None when no next page is available """ - if response_data.get('next') is None: + if response_data.get("next") is None: return None - next_url = response_data['next'] + next_url = response_data["next"] try: resource = initial_url[len(base_url) :] _, next_suffix = next_url.split(resource) diff --git a/tests/unit/repositories/test_base.py b/tests/unit/repositories/test_base.py index 200f213..6ee426d 100644 --- a/tests/unit/repositories/test_base.py +++ b/tests/unit/repositories/test_base.py @@ -6,50 +6,50 @@ @pytest.mark.parametrize( - 'base_url,initial_request_url,response_url,next_url', + "base_url,initial_request_url,response_url,next_url", [ ( - 'https://hostname.ca', - 'https://hostname.ca/projects', - 'http://hostname.ca/projects?limit=5&offset=5', - 'https://hostname.ca/projects?limit=5&offset=5', + "https://hostname.ca", + "https://hostname.ca/projects", + "http://hostname.ca/projects?limit=5&offset=5", + "https://hostname.ca/projects?limit=5&offset=5", ), ( - 'https://hostname.ca', - 'https://hostname.ca/projects', - 'http://localhost:3000/projects?limit=5&offset=5', - 'https://hostname.ca/projects?limit=5&offset=5', + "https://hostname.ca", + "https://hostname.ca/projects", + "http://localhost:3000/projects?limit=5&offset=5", + "https://hostname.ca/projects?limit=5&offset=5", ), ( - 'https://hostname.ca', - 'https://hostname.ca/projects', - 'http://localhost:3000/projects?limit=5&offset=5', - 'https://hostname.ca/projects?limit=5&offset=5', + "https://hostname.ca", + "https://hostname.ca/projects", + "http://localhost:3000/projects?limit=5&offset=5", + "https://hostname.ca/projects?limit=5&offset=5", ), ( - 'https://hostname.ca', - 'https://hostname.ca/projects', - 'https://hostname.ca/projects?limit=5&offset=5', - 'https://hostname.ca/projects?limit=5&offset=5', + "https://hostname.ca", + "https://hostname.ca/projects", + "https://hostname.ca/projects?limit=5&offset=5", + "https://hostname.ca/projects?limit=5&offset=5", ), ], ) def test_get_next_url(base_url, initial_request_url, response_url, next_url): - url = get_next_url(base_url, initial_request_url, {'next': response_url}) + url = get_next_url(base_url, initial_request_url, {"next": response_url}) assert url == next_url @pytest.mark.parametrize( - 'base_url,initial_request_url,response_url', + "base_url,initial_request_url,response_url", [ ( - 'https://hostname.ca', - 'https://hostname.ca/projects', - 'http://hostname.ca/things?limit=5&offset=5', + "https://hostname.ca", + "https://hostname.ca/projects", + "http://hostname.ca/things?limit=5&offset=5", ), ], ) def test_get_next_url_error(base_url, initial_request_url, response_url): # should return the unmodified url when in doubt - url = get_next_url(base_url, initial_request_url, {'next': response_url}) + url = get_next_url(base_url, initial_request_url, {"next": response_url}) assert url == response_url From 60b95a3566cecc1042868209c360c488cb257a67 Mon Sep 17 00:00:00 2001 From: Caralyn Reisle Date: Thu, 18 Jan 2024 12:59:56 -0800 Subject: [PATCH 5/5] Remove unused import --- tests/unit/repositories/test_base.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/tests/unit/repositories/test_base.py b/tests/unit/repositories/test_base.py index 6ee426d..38d9514 100644 --- a/tests/unit/repositories/test_base.py +++ b/tests/unit/repositories/test_base.py @@ -1,5 +1,3 @@ -from unittest.mock import MagicMock - import pytest from doccano_client.repositories.base import get_next_url