Compare commits

2 Commits

Author SHA256 Message Date
bdb00d68b3 Accepting request 1313193 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1313193
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-rpm-spec-language-server?expand=0&rev=3
2025-10-23 14:38:21 +00:00
b27eca5668 - Add %check section and run pytest
- Update to version 0.0.2:
  * Bump version to 0.0.2
  * use LABEL $name=$value instead of LABEL $name $value
  * use consistent capitalization: FROM $url as $name => FROM $url AS $name
  * ci: drop eol node versions, add supported versions
  * Bump locked dependencies
  * fix: don't hardcode the server version
  * Fix Tumbleweed container image build
  * Add pygls v2 support
  * Bump ruff from 0.13.3 to 0.14.1
  * Bump actions/setup-node from 5.0.0 to 6.0.0
  * Bump ruff from 0.13.2 to 0.13.3
  * Bump specfile from 0.37.0 to 0.37.1
  * Bump @vscode/vsce from 3.6.0 to 3.6.2
  * Bump ruff from 0.13.1 to 0.13.2
  * Bump locked dependencies
  * Bump mypy from 1.17.1 to 1.18.1
  * Bump ruff from 0.12.12 to 0.13.0
  * Bump specfile from 0.36.0 to 0.37.0
  * Bump @types/node from 24.3.0 to 24.3.1
  * Bump pytest from 8.4.1 to 8.4.2
  * Bump twine from 6.1.0 to 6.2.0
  * Bump ruff from 0.12.11 to 0.12.12
  * Bump actions/setup-python from 5 to 6
  * Bump actions/setup-node from 4.4.0 to 5.0.0
  * Bump coverage from 7.10.5 to 7.10.6
  * Bump ruff from 0.12.10 to 0.12.11
  * Bump coverage from 7.10.4 to 7.10.5
  * Bump ruff from 0.12.9 to 0.12.10
  * Bump requests from 2.32.4 to 2.32.5
  * Bump coverage from 7.10.3 to 7.10.4
  * Bump @types/node from 24.2.1 to 24.3.0
  * Bump ruff from 0.12.8 to 0.12.9
  * Bump actions/checkout from 4 to 5
  * Bump types-requests from 2.32.4.20250611 to 2.32.4.20250809
  * Bump @types/node from 24.1.0 to 24.2.1
  * Bump coverage from 7.10.2 to 7.10.3
  * Bump ruff from 0.12.7 to 0.12.8
  * Bump actions/download-artifact from 4 to 5
- Rework services configuration in _service
- Add missing Require: requests

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-rpm-spec-language-server?expand=0&rev=8
2025-10-23 10:08:30 +00:00
7 changed files with 78 additions and 19 deletions

View File

@@ -1,15 +1,15 @@
<services>
<service name="obs_scm" mode="manual">
<param name="url">https://github.com/dcermak/rpm-spec-language-server.git</param>
<param name="versionprefix">0.0.1+git</param>
<param name="revision">main</param>
<param name="scm">git</param>
<param name="url">https://github.com/dcermak/rpm-spec-language-server.git</param>
<param name="revision">0.0.2</param>
<param name="versionformat">@PARENT_TAG@</param>
<param name="changesgenerate">enable</param>
<param name="changesauthor">mcepl@cepl.eu</param>
</service>
<service mode="manual" name="set_version"/>
<service mode="manual" name="tar"/>
<service mode="manual" name="recompress">
<service name="set_version" mode="manual"/>
<service name="format_spec_file" mode="manual"/>
<service name="tar" mode="buildtime"/>
<service name="recompress" mode="buildtime">
<param name="compression">gz</param>
<param name="file">*.tar</param>
</service>

View File

@@ -1,4 +1,4 @@
<servicedata>
<service name="tar_scm">
<param name="url">https://github.com/dcermak/rpm-spec-language-server.git</param>
<param name="changesrevision">19064e2ea4b6fc8d0096b7807edc19f6c02d57e7</param></service></servicedata>
<param name="changesrevision">f64d20da0c90bf1027bb704036795466f1c53c56</param></service></servicedata>

View File

@@ -1,3 +1,53 @@
-------------------------------------------------------------------
Wed Oct 22 09:37:26 UTC 2025 - Filippo Bonazzi <filippo.bonazzi@suse.com>
- Add %check section and run pytest
-------------------------------------------------------------------
Wed Oct 22 08:30:34 UTC 2025 - Filippo Bonazzi <filippo.bonazzi@suse.com>
- Update to version 0.0.2:
* Bump version to 0.0.2
* use LABEL $name=$value instead of LABEL $name $value
* use consistent capitalization: FROM $url as $name => FROM $url AS $name
* ci: drop eol node versions, add supported versions
* Bump locked dependencies
* fix: don't hardcode the server version
* Fix Tumbleweed container image build
* Add pygls v2 support
* Bump ruff from 0.13.3 to 0.14.1
* Bump actions/setup-node from 5.0.0 to 6.0.0
* Bump ruff from 0.13.2 to 0.13.3
* Bump specfile from 0.37.0 to 0.37.1
* Bump @vscode/vsce from 3.6.0 to 3.6.2
* Bump ruff from 0.13.1 to 0.13.2
* Bump locked dependencies
* Bump mypy from 1.17.1 to 1.18.1
* Bump ruff from 0.12.12 to 0.13.0
* Bump specfile from 0.36.0 to 0.37.0
* Bump @types/node from 24.3.0 to 24.3.1
* Bump pytest from 8.4.1 to 8.4.2
* Bump twine from 6.1.0 to 6.2.0
* Bump ruff from 0.12.11 to 0.12.12
* Bump actions/setup-python from 5 to 6
* Bump actions/setup-node from 4.4.0 to 5.0.0
* Bump coverage from 7.10.5 to 7.10.6
* Bump ruff from 0.12.10 to 0.12.11
* Bump coverage from 7.10.4 to 7.10.5
* Bump ruff from 0.12.9 to 0.12.10
* Bump requests from 2.32.4 to 2.32.5
* Bump coverage from 7.10.3 to 7.10.4
* Bump @types/node from 24.2.1 to 24.3.0
* Bump ruff from 0.12.8 to 0.12.9
* Bump actions/checkout from 4 to 5
* Bump types-requests from 2.32.4.20250611 to 2.32.4.20250809
* Bump @types/node from 24.1.0 to 24.2.1
* Bump coverage from 7.10.2 to 7.10.3
* Bump ruff from 0.12.7 to 0.12.8
* Bump actions/download-artifact from 4 to 5
- Rework services configuration in _service
- Add missing Require: requests
-------------------------------------------------------------------
Tue Aug 05 18:06:21 UTC 2025 - mcepl@cepl.eu

View File

@@ -2,9 +2,6 @@
# spec file for package python-rpm-spec-language-server
#
# Copyright (c) 2025 SUSE LLC and contributors
# Copyright (c) 2025 SUSE LLC and contributors
# Copyright (c) 2025 SUSE LLC and contributors
# Copyright (c) 2025 SUSE LLC and contributors
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -27,7 +24,7 @@
%bcond_with libalternatives
%endif
Name: python-rpm-spec-language-server
Version: 0.0.1+git.1754294706.19064e2
Version: 0.0.2
Release: 0
Summary: Language Server for RPM spec files
License: GPL-2.0-or-later
@@ -35,12 +32,20 @@ URL: https://github.com/dcermak/rpm-spec-language-server
# Source: https://files.pythonhosted.org/packages/source/r/rpm-spec-language-server/rpm_spec_language_server-%%{version}.tar.gz
Source: rpm-spec-language-server-%{version}.tar.gz
BuildRequires: %{python_module base >= 3.9}
# SECTION test requirements
BuildRequires: %{python_module lsprotocol}
BuildRequires: %{python_module pygls}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module specfile}
BuildRequires: %{python_module typeguard}
# /SECTION
BuildRequires: %{python_module pip}
BuildRequires: %{python_module poetry-core}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-pygls
Requires: python-requests
Requires: python-specfile
Requires: rpm
BuildArch: noarch
@@ -63,6 +68,10 @@ implementing the Language Server Protocol for RPM Spec files.
%build
%pyproject_wheel
%check
# Skip tests which require an internet connection
%pytest -k "not (upstream or test_cache_creation)"
%install
%pyproject_install
%python_clone -a %{buildroot}%{_bindir}/rpm_lsp_server
@@ -77,6 +86,6 @@ implementing the Language Server Protocol for RPM Spec files.
%files %{python_files}
%python_alternative %{_bindir}/rpm_lsp_server
%{python_sitelib}/rpm_spec_language_server
%{python_sitelib}/rpm_spec_language_server-0.0.1*-info
%{python_sitelib}/rpm_spec_language_server-%{version}.dist-info
%changelog

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:8ad1b485c0d5a0830239e8ff0452819893f51cb5f085d5a1e42d73685b6dc834
size 107459

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:d463f7767512f276f872bd6ede384f39d8cedf110c3ac4065f72e00d5c50edff
size 445963

View File

@@ -1,4 +1,4 @@
name: rpm-spec-language-server
version: 0.0.1+git.1754294706.19064e2
mtime: 1754294706
commit: 19064e2ea4b6fc8d0096b7807edc19f6c02d57e7
version: 0.0.2
mtime: 1760976648
commit: f64d20da0c90bf1027bb704036795466f1c53c56