From f04d54462c9d66eb141e58fae364168853bb574c9389d335b6314dbb9fff38d9 Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Wed, 1 Nov 2023 06:14:44 +0000 Subject: [PATCH 1/2] - Update to 1.1.2: * Fix tests so they're compatible with both ujson and pure json library * Remove redundant wheel dep from pyproject.toml * Add license trove classifier * Drop support for Python 3.7 and 3.6 * Allow method handlers to return json rpc errors * Migrate metadata from `setup.cfg` to PEP 621-compliant `pyproject.toml` * Use f-strings wherever possible - Switch to pyproject macros. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-lsp-jsonrpc?expand=0&rev=3 --- python-lsp-jsonrpc-1.0.0.tar.gz | 3 --- python-lsp-jsonrpc-1.1.2.tar.gz | 3 +++ python-python-lsp-jsonrpc.changes | 13 +++++++++++++ python-python-lsp-jsonrpc.spec | 18 +++++++++--------- 4 files changed, 25 insertions(+), 12 deletions(-) delete mode 100644 python-lsp-jsonrpc-1.0.0.tar.gz create mode 100644 python-lsp-jsonrpc-1.1.2.tar.gz diff --git a/python-lsp-jsonrpc-1.0.0.tar.gz b/python-lsp-jsonrpc-1.0.0.tar.gz deleted file mode 100644 index 9585e15..0000000 --- a/python-lsp-jsonrpc-1.0.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:7bec170733db628d3506ea3a5288ff76aa33c70215ed223abdb0d95e957660bd -size 10011 diff --git a/python-lsp-jsonrpc-1.1.2.tar.gz b/python-lsp-jsonrpc-1.1.2.tar.gz new file mode 100644 index 0000000..7de0a6d --- /dev/null +++ b/python-lsp-jsonrpc-1.1.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4688e453eef55cd952bff762c705cedefa12055c0aec17a06f595bcc002cc912 +size 15298 diff --git a/python-python-lsp-jsonrpc.changes b/python-python-lsp-jsonrpc.changes index 442d10e..cb1b7ba 100644 --- a/python-python-lsp-jsonrpc.changes +++ b/python-python-lsp-jsonrpc.changes @@ -1,3 +1,16 @@ +------------------------------------------------------------------- +Wed Nov 1 06:10:09 UTC 2023 - Steve Kowalik + +- Update to 1.1.2: + * Fix tests so they're compatible with both ujson and pure json library + * Remove redundant wheel dep from pyproject.toml + * Add license trove classifier + * Drop support for Python 3.7 and 3.6 + * Allow method handlers to return json rpc errors + * Migrate metadata from `setup.cfg` to PEP 621-compliant `pyproject.toml` + * Use f-strings wherever possible +- Switch to pyproject macros. + ------------------------------------------------------------------- Tue Jul 13 12:44:24 UTC 2021 - Ben Greiner diff --git a/python-python-lsp-jsonrpc.spec b/python-python-lsp-jsonrpc.spec index 8c4e111..b1348ef 100644 --- a/python-python-lsp-jsonrpc.spec +++ b/python-python-lsp-jsonrpc.spec @@ -1,7 +1,7 @@ # # spec file for package python-python-lsp-jsonrpc # -# Copyright (c) 2021 SUSE LLC +# Copyright (c) 2023 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,19 +16,20 @@ # -%{?!python_module:%define python_module() python3-%{**}} -%define skip_python2 1 Name: python-python-lsp-jsonrpc -Version: 1.0.0 +Version: 1.1.2 Release: 0 Summary: JSON RPC 2.0 server library License: MIT URL: https://github.com/python-lsp/python-lsp-jsonrpc Source: https://files.pythonhosted.org/packages/source/p/python-lsp-jsonrpc/python-lsp-jsonrpc-%{version}.tar.gz +BuildRequires: %{python_module pip} +BuildRequires: %{python_module setuptools_scm} +BuildRequires: %{python_module wheel} BuildRequires: python-rpm-macros -BuildRequires: %{python_module setuptools} # SECTION test requirements BuildRequires: %{python_module ujson >= 3.0.0} +BuildRequires: %{python_module pytest-cov} BuildRequires: %{python_module pytest} # /SECTION BuildRequires: fdupes @@ -40,15 +41,14 @@ BuildArch: noarch A Python 3.6+ server implementation of the JSON RPC 2.0 protocol. This library has been pulled out of the Python Language Server project. - %prep %setup -q -n python-lsp-jsonrpc-%{version} %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %check @@ -60,6 +60,6 @@ rm setup.cfg %doc README.md %license LICENSE %{python_sitelib}/pylsp_jsonrpc -%{python_sitelib}/python_lsp_jsonrpc-%{version}*-info +%{python_sitelib}/python_lsp_jsonrpc-%{version}.dist-info %changelog From 65adbe28343a22eea0b02c8804d2743e97d93d2c1eb4fc157fc6e2f67d79d588 Mon Sep 17 00:00:00 2001 From: Benjamin Greiner Date: Wed, 1 Nov 2023 16:49:59 +0000 Subject: [PATCH 2/2] Accepting request 1121663 from home:bnavigator:branches:devel:languages:python - Fix requirements - Don't check coverage OBS-URL: https://build.opensuse.org/request/show/1121663 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-lsp-jsonrpc?expand=0&rev=4 --- python-python-lsp-jsonrpc.changes | 6 ++++++ python-python-lsp-jsonrpc.spec | 8 ++++---- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/python-python-lsp-jsonrpc.changes b/python-python-lsp-jsonrpc.changes index cb1b7ba..59f91f1 100644 --- a/python-python-lsp-jsonrpc.changes +++ b/python-python-lsp-jsonrpc.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Wed Nov 1 16:48:02 UTC 2023 - Ben Greiner + +- Fix requirements +- Don't check coverage + ------------------------------------------------------------------- Wed Nov 1 06:10:09 UTC 2023 - Steve Kowalik diff --git a/python-python-lsp-jsonrpc.spec b/python-python-lsp-jsonrpc.spec index b1348ef..491dce7 100644 --- a/python-python-lsp-jsonrpc.spec +++ b/python-python-lsp-jsonrpc.spec @@ -23,13 +23,14 @@ Summary: JSON RPC 2.0 server library License: MIT URL: https://github.com/python-lsp/python-lsp-jsonrpc Source: https://files.pythonhosted.org/packages/source/p/python-lsp-jsonrpc/python-lsp-jsonrpc-%{version}.tar.gz +BuildRequires: %{python_module base >= 3.8} BuildRequires: %{python_module pip} -BuildRequires: %{python_module setuptools_scm} +BuildRequires: %{python_module setuptools >= 61.2} +BuildRequires: %{python_module setuptools_scm >= 3.4.3} BuildRequires: %{python_module wheel} BuildRequires: python-rpm-macros # SECTION test requirements BuildRequires: %{python_module ujson >= 3.0.0} -BuildRequires: %{python_module pytest-cov} BuildRequires: %{python_module pytest} # /SECTION BuildRequires: fdupes @@ -43,6 +44,7 @@ This library has been pulled out of the Python Language Server project. %prep %setup -q -n python-lsp-jsonrpc-%{version} +sed -i /addopts/d pyproject.toml %build %pyproject_wheel @@ -52,8 +54,6 @@ This library has been pulled out of the Python Language Server project. %python_expand %fdupes %{buildroot}%{$python_sitelib} %check -# Remove pytest addopts -rm setup.cfg %pytest %files %{python_files}