1
0

Compare commits

4 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
ab3f4e8ca9 Accepting request 1299141 from devel:languages:python
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/1299141
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-rpm-spec-language-server?expand=0&rev=2
2025-08-13 14:30:49 +00:00
ff4988c4be - Update to version 0.0.1+git.1754294706.19064e2:
* Correct postgresql package name to not install in Fedora container
  * drop packages which no longer exist from installing them
  * Remove Leap 15.5 from the container builds
  * Fix container build for Fedora 41
  * Require at least rpm-ship 0.2.0
  * Add elixir115 to the packages to filter out
  * Ignore more files in the extension
  * Add dummy publisher
  * Add BCI based container
  * Improve expansion of macros like %name, %version in specfiles on Hover
  * Add tests for TEXT_DOCUMENT_HOVER
  * Add a workaround for vscode needing completions without % in certain spec sections
  * [leap container] add a workaround for rpm shim not working correctly
  * [leap container] Use the correct python interpreter for launching the lang server
  * Properly quote $IMAGE variable in LABEL
  * Add documentation for the container mode
  * Add containers for Tumbleweed, Leap, Fedora & CentOS
  * Make sleep timeout in tests configurable via environment variable
  * Update ignore files
  * Lower python version requiremt to ^3.9
  * Add support for an experimental container mode
  * Add missing note that the server downloads spec.md
  * Add documentation how to use the server with eglot
  * Unquote paths in case they contain special characters
  * Make parsing of markdown more robust
  * Use specfile.constants to augment the autocompletion data
  * Unify AutoCompleteDoc.{preamble,dependencies} into tags
  * Don't try to read spec.md from the rpm package if it is not there
  * Add tests for documentation extraction

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-rpm-spec-language-server?expand=0&rev=6
2025-08-05 18:09:36 +00:00
7 changed files with 119 additions and 18 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="buildtime" name="tar"/>
<service mode="buildtime" 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">4c775f5b6e79fd657b96f0d2afef3e57f01c7f66</param></service></servicedata>
<param name="changesrevision">f64d20da0c90bf1027bb704036795466f1c53c56</param></service></servicedata>

View File

@@ -1,3 +1,92 @@
-------------------------------------------------------------------
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
- Update to version 0.0.1+git.1754294706.19064e2:
* Correct postgresql package name to not install in Fedora container
* drop packages which no longer exist from installing them
* Remove Leap 15.5 from the container builds
* Fix container build for Fedora 41
* Require at least rpm-ship 0.2.0
* Add elixir115 to the packages to filter out
* Ignore more files in the extension
* Add dummy publisher
* Add BCI based container
* Improve expansion of macros like %name, %version in specfiles on Hover
* Add tests for TEXT_DOCUMENT_HOVER
* Add a workaround for vscode needing completions without % in certain spec sections
* [leap container] add a workaround for rpm shim not working correctly
* [leap container] Use the correct python interpreter for launching the lang server
* Properly quote $IMAGE variable in LABEL
* Add documentation for the container mode
* Add containers for Tumbleweed, Leap, Fedora & CentOS
* Make sleep timeout in tests configurable via environment variable
* Update ignore files
* Lower python version requiremt to ^3.9
* Add support for an experimental container mode
* Add missing note that the server downloads spec.md
* Add documentation how to use the server with eglot
* Unquote paths in case they contain special characters
* Make parsing of markdown more robust
* Use specfile.constants to augment the autocompletion data
* Unify AutoCompleteDoc.{preamble,dependencies} into tags
* Don't try to read spec.md from the rpm package if it is not there
* Add tests for documentation extraction
* Extend documentation, add explicit types & use kw arguments
* Strip out trailing whitespaces in spec.md extraction
* Fetch spec.md from upstream if not in cache or on the system
* Add documentation how to use the server with lsp-mode in Emacs
* Fix codecov upload (git is missing in CI image)
-------------------------------------------------------------------
Mon Feb 12 21:58:26 UTC 2024 - mcepl@cepl.eu

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-rpm-spec-language-server
#
# Copyright (c) 2024 SUSE LLC
# 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
@@ -24,20 +24,28 @@
%bcond_with libalternatives
%endif
Name: python-rpm-spec-language-server
Version: 0.0.1+git.1707722214.4c775f5
Version: 0.0.2
Release: 0
Summary: Language Server for RPM spec files
License: GPL-2.0-or-later
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.11}
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
@@ -60,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
@@ -74,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:3e3d50cca64740c40e14b5c27ec5c96cf643189e116e704afe24b36129de252a
size 235531

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.1707722214.4c775f5
mtime: 1707722214
commit: 4c775f5b6e79fd657b96f0d2afef3e57f01c7f66
version: 0.0.2
mtime: 1760976648
commit: f64d20da0c90bf1027bb704036795466f1c53c56