From 4c3712c5dc67b418b900355e1903dd077b43ef4c Mon Sep 17 00:00:00 2001 From: MatejKastak Date: Fri, 3 Nov 2023 08:57:07 +0100 Subject: [PATCH] Release v1.4.0 --- CHANGELOG.md | 10 ++++ editors/vscode/package.json | 2 +- plugins/yls-yara/poetry.lock | 98 ++++++++++++++++++++++++--------- plugins/yls-yara/pyproject.toml | 4 +- pyproject.toml | 2 +- pytest-yls/pyproject.toml | 2 +- yls/version.py | 2 +- 7 files changed, 88 insertions(+), 32 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 518d014..229e037 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,16 @@ # Changelog All notable changes to this project will be documented in this file. +# 1.4.0 (2023-11-03) + +* feat(debugger): Select hash for context and SHA1 & MD5 (#137) +* feat(debugger): Enable debug hovers in strings section (#138) +* feat(debugger): Normalize the `samples_dir` path (#139) +* fix(syntax): Incorrect syntax on regexp end +* fix(utils): Return range for first line on exception in range_from_line +* chore(deps): Update pygls to v1.1.2 +* chore(deps): Remove unused bandit dependency + # 1.3.4 (2023-06-21) * chore(deps): Update yaramod to v3.20.1 diff --git a/editors/vscode/package.json b/editors/vscode/package.json index 88d68c4..cfa5421 100644 --- a/editors/vscode/package.json +++ b/editors/vscode/package.json @@ -4,7 +4,7 @@ "description": "A Visual Studio Code extension for YARA based on YLS (Yara Language Server).", "author": "Matej Kastak", "license": "MIT", - "version": "1.3.4", + "version": "1.4.0", "repository": { "type": "git", "url": "https://github.com/avast/yls" diff --git a/plugins/yls-yara/poetry.lock b/plugins/yls-yara/poetry.lock index 17622e7..268c10f 100644 --- a/plugins/yls-yara/poetry.lock +++ b/plugins/yls-yara/poetry.lock @@ -57,6 +57,25 @@ files = [ [package.extras] test = ["pytest (>=6)"] +[[package]] +name = "importlib-metadata" +version = "6.8.0" +description = "Read metadata from Python packages" +optional = false +python-versions = ">=3.8" +files = [ + {file = "importlib_metadata-6.8.0-py3-none-any.whl", hash = "sha256:3ebb78df84a805d7698245025b975d9d67053cd94c79245ba4b3eb694abe68bb"}, + {file = "importlib_metadata-6.8.0.tar.gz", hash = "sha256:dbace7892d8c0c4ac1ad096662232f831d4e64f4c4545bd53016a3e9d4654743"}, +] + +[package.dependencies] +zipp = ">=0.5" + +[package.extras] +docs = ["furo", "jaraco.packaging (>=9)", "jaraco.tidelift (>=1.4)", "rst.linker (>=1.9)", "sphinx (>=3.5)", "sphinx-lint"] +perf = ["ipython"] +testing = ["flufl.flake8", "importlib-resources (>=1.3)", "packaging", "pyfakefs", "pytest (>=6)", "pytest-black (>=0.3.7)", "pytest-checkdocs (>=2.4)", "pytest-cov", "pytest-enabler (>=2.2)", "pytest-mypy (>=0.9.1)", "pytest-perf (>=0.9.2)", "pytest-ruff"] + [[package]] name = "iniconfig" version = "1.1.1" @@ -70,17 +89,17 @@ files = [ [[package]] name = "lsprotocol" -version = "2022.0.0a10" +version = "2023.0.0b1" description = "Python implementation of the Language Server Protocol." optional = false python-versions = ">=3.7" files = [ - {file = "lsprotocol-2022.0.0a10-py3-none-any.whl", hash = "sha256:ef516aec43c2b3c8debc06e84558ea9a64c36d635422d1614fd7fd2a45b1d291"}, - {file = "lsprotocol-2022.0.0a10.tar.gz", hash = "sha256:2cd78770b7a4ec979f3ee3761265effd50ea0f5e858ce21bf2fba972e1783c50"}, + {file = "lsprotocol-2023.0.0b1-py3-none-any.whl", hash = "sha256:ade2cd0fa0ede7965698cb59cd05d3adbd19178fd73e83f72ef57a032fbb9d62"}, + {file = "lsprotocol-2023.0.0b1.tar.gz", hash = "sha256:f7a2d4655cbd5639f373ddd1789807450c543341fa0a32b064ad30dbb9f510d4"}, ] [package.dependencies] -attrs = "*" +attrs = ">=21.3.0" cattrs = "*" [[package]] @@ -114,24 +133,21 @@ testing = ["pytest", "pytest-benchmark"] [[package]] name = "pygls" -version = "1.0.1" -description = "a pythonic generic language server (pronounced like \"pie glass\")." +version = "1.1.2" +description = "A pythonic generic language server (pronounced like 'pie glass')" optional = false -python-versions = "<4,>=3.7" +python-versions = ">=3.7.9,<4" files = [ - {file = "pygls-1.0.1-py3-none-any.whl", hash = "sha256:adacc96da77598c70f46acfdfd1481d3da90cd54f639f7eee52eb6e4dbd57b55"}, - {file = "pygls-1.0.1.tar.gz", hash = "sha256:f3ee98ddbb4690eb5c755bc32ba7e129607f14cbd313575f33d0cea443b78cb2"}, + {file = "pygls-1.1.2-py3-none-any.whl", hash = "sha256:783d29c93679bb6756772f2de9b9f53b1a6fdf3fba66aeca23e87aa8aab20ecf"}, + {file = "pygls-1.1.2.tar.gz", hash = "sha256:93fe17c01fd03307774290e685e7fa25bc1411cd72f243ff33eef21927fd0ad5"}, ] [package.dependencies] -lsprotocol = "*" -typeguard = ">=2.10.0,<3" +lsprotocol = "2023.0.0b1" +typeguard = ">=3.0.0,<5" [package.extras] -dev = ["bandit (==1.7.4)", "flake8 (==4.0.1)", "mypy (==0.961)"] -docs = ["sphinx (==5.0.1)", "sphinx-rtd-theme (==1.0.0)"] -test = ["mock (==4.0.3)", "pytest (==7.1.2)", "pytest-asyncio (==0.18.3)"] -ws = ["websockets (==10.*)"] +ws = ["websockets (>=11.0.3,<12.0.0)"] [[package]] name = "pyparsing" @@ -182,18 +198,33 @@ files = [ [[package]] name = "typeguard" -version = "2.13.3" +version = "4.1.5" description = "Run-time type checker for Python" optional = false -python-versions = ">=3.5.3" +python-versions = ">=3.8" files = [ - {file = "typeguard-2.13.3-py3-none-any.whl", hash = "sha256:5e3e3be01e887e7eafae5af63d1f36c849aaa94e3a0112097312aabfa16284f1"}, - {file = "typeguard-2.13.3.tar.gz", hash = "sha256:00edaa8da3a133674796cf5ea87d9f4b4c367d77476e185e80251cc13dfbb8c4"}, + {file = "typeguard-4.1.5-py3-none-any.whl", hash = "sha256:8923e55f8873caec136c892c3bed1f676eae7be57cdb94819281b3d3bc9c0953"}, + {file = "typeguard-4.1.5.tar.gz", hash = "sha256:ea0a113bbc111bcffc90789ebb215625c963411f7096a7e9062d4e4630c155fd"}, ] +[package.dependencies] +importlib-metadata = {version = ">=3.6", markers = "python_version < \"3.10\""} +typing-extensions = {version = ">=4.7.0", markers = "python_version < \"3.12\""} + [package.extras] -doc = ["sphinx-autodoc-typehints (>=1.2.0)", "sphinx-rtd-theme"] -test = ["mypy", "pytest", "typing-extensions"] +doc = ["Sphinx (>=7)", "packaging", "sphinx-autodoc-typehints (>=1.2.0)"] +test = ["coverage[toml] (>=7)", "mypy (>=1.2.0)", "pytest (>=7)"] + +[[package]] +name = "typing-extensions" +version = "4.8.0" +description = "Backported and Experimental Type Hints for Python 3.8+" +optional = false +python-versions = ">=3.8" +files = [ + {file = "typing_extensions-4.8.0-py3-none-any.whl", hash = "sha256:8f92fc8806f9a6b641eaa5318da32b44d401efaac0f6678c9bc448ba3605faa0"}, + {file = "typing_extensions-4.8.0.tar.gz", hash = "sha256:df8e4339e9cb77357558cbdbceca33c303714cf861d1eef15e1070055ae8b7ef"}, +] [[package]] name = "yara-python" @@ -254,22 +285,37 @@ files = [ [[package]] name = "yls" -version = "1.3.4" +version = "1.4.0" description = "YARA Language Server" optional = false python-versions = ">=3.8,<3.12" files = [ - {file = "yls-1.3.4-py3-none-any.whl", hash = "sha256:e7a64f56392e604cf3c55dc3b987232d4bdc8d7756a56ee987859e38e9427373"}, - {file = "yls-1.3.4.tar.gz", hash = "sha256:2a4672b0bcf745df35962a5389cd1c1443db65e80997f2ecaf3e446cab7a4ef5"}, + {file = "yls-1.4.0-py3-none-any.whl", hash = "sha256:d55a154ade51a2f13821e9d87a7f9d3a69571a3b0b7adc9a3727fb4ff609d5f1"}, + {file = "yls-1.4.0.tar.gz", hash = "sha256:d4d93cd380db29fc45db1fadace106b79e79716dc6f8e584036d3380d9c43612"}, ] [package.dependencies] pluggy = ">=1.0.0,<2.0.0" -pygls = ">=1.0.1,<2.0.0" +pygls = ">=1.1.2,<2.0.0" yaramod = ">=3.20.1,<4.0.0" yari-py = ">=0.1.6,<0.2.0" +[[package]] +name = "zipp" +version = "3.17.0" +description = "Backport of pathlib-compatible object wrapper for zip files" +optional = false +python-versions = ">=3.8" +files = [ + {file = "zipp-3.17.0-py3-none-any.whl", hash = "sha256:0e923e726174922dce09c53c59ad483ff7bbb8e572e00c7f7c46b88556409f31"}, + {file = "zipp-3.17.0.tar.gz", hash = "sha256:84e64a1c28cf7e91ed2078bb8cc8c259cb19b76942096c8d7b84947690cabaf0"}, +] + +[package.extras] +docs = ["furo", "jaraco.packaging (>=9.3)", "jaraco.tidelift (>=1.4)", "rst.linker (>=1.9)", "sphinx (<7.2.5)", "sphinx (>=3.5)", "sphinx-lint"] +testing = ["big-O", "jaraco.functools", "jaraco.itertools", "more-itertools", "pytest (>=6)", "pytest-black (>=0.3.7)", "pytest-checkdocs (>=2.4)", "pytest-cov", "pytest-enabler (>=2.2)", "pytest-ignore-flaky", "pytest-mypy (>=0.9.1)", "pytest-ruff"] + [metadata] lock-version = "2.0" python-versions = ">=3.8,<3.12" -content-hash = "163345b7992dc6a6acb75f6b9ce38d31b5b3ba8f411fc85e7e909312e160c878" +content-hash = "ee0d15f709cc7d039a51fb33d8ff5e58132e3fb7f25aa2687858686be80b3b2c" diff --git a/plugins/yls-yara/pyproject.toml b/plugins/yls-yara/pyproject.toml index 16c8c33..d86e953 100644 --- a/plugins/yls-yara/pyproject.toml +++ b/plugins/yls-yara/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "yls-yara" -version = "1.3.4" +version = "1.4.0" description = "YLS plugin adding linting using yara-python." authors = ["Matej Kastak "] maintainers = ["Matej Kašťák "] @@ -11,7 +11,7 @@ include = ["py.typed", "LICENSE"] [tool.poetry.dependencies] python = ">=3.8,<3.12" yara-python = "^4.2.0" -yls = "^1.3.4" +yls = "^1.4.0" [tool.poetry.group.dev.dependencies] pytest = "^7.2.2" diff --git a/pyproject.toml b/pyproject.toml index 73d2721..4718113 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "yls" -version = "1.3.4" +version = "1.4.0" description = "YARA Language Server" authors = ["Matej Kašťák "] maintainers = ["Matej Kašťák "] diff --git a/pytest-yls/pyproject.toml b/pytest-yls/pyproject.toml index 725539a..03744e8 100644 --- a/pytest-yls/pyproject.toml +++ b/pytest-yls/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "pytest-yls" -version = "1.3.4" +version = "1.4.0" description = "Pytest plugin to test the YLS as a whole." authors = ["Matej Kastak "] maintainers = ["Matej Kašťák "] diff --git a/yls/version.py b/yls/version.py index f9e47b6..3e8d9f9 100644 --- a/yls/version.py +++ b/yls/version.py @@ -1 +1 @@ -__version__ = "1.3.4" +__version__ = "1.4.0"