## START: Set by rpmautospec ## (rpmautospec version 0.8.4) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 2; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec Name: python-lsp-server Version: 1.14.0 Release: %autorelease Summary: Python implementation of language server protocol %global forgeurl https://github.com/python-lsp/python-lsp-server %global tag v%{version} %forgemeta # SPDX License: MIT URL: %{forgeurl} Source: %{forgesource} # Fixes one test with jedi 0.20.0 Patch: https://github.com/python-lsp/python-lsp-server/pull/709.patch BuildArch: noarch BuildRequires: python3-devel BuildRequires: tomcli %global _description %{expand: A python implementation of language server protocol. pylsp provides for auto-completion, code linting (via pycodestyle and pyflakes) and other features. This package provides the python-language-server package maintained by spyder-IDE maintainers.} %description %_description %package -n python3-lsp-server Summary: %{summary} Provides: pylsp = %{version}-%{release} %description -n python3-lsp-server %_description %pyproject_extras_subpkg -n python3-lsp-server all %prep %forgeautosetup -p1 # Remove version pinning from linters. # Do this inline instead of a patch for automatic updates using Packit. tomcli set pyproject.toml arrays replace \ project.dependencies '(.+)>=+[0-9.]+.*' '\1' tomcli set pyproject.toml arrays replace \ project.optional-dependencies.all '(.+)>=+[0-9.]+.*' '\1' # Remove linters from test extra and pytest options tomcli set pyproject.toml arrays delitem --type fnmatch \ project.optional-dependencies.test '*cov*' tomcli set pyproject.toml arrays delitem --type fnmatch \ project.optional-dependencies.test '*lint*' tomcli set pyproject.toml del tool.pytest.ini_options.addopts %generate_buildrequires export SETUPTOOLS_SCM_PRETEND_VERSION="%{version}" %pyproject_buildrequires -x test,all %build export SETUPTOOLS_SCM_PRETEND_VERSION="%{version}" %pyproject_wheel %install %pyproject_install %pyproject_save_files -l pylsp %check k="${k:-}${k:+ and }not test_missing_message" export RUNNING_IN_CI="True" %pytest -r fEs "${k:+-k ${k:-}}" %files -n python3-lsp-server -f %{pyproject_files} %doc README.md %{_bindir}/pylsp %changelog ## START: Generated by rpmautospec * Fri Jan 21 2022 Fedora Release Engineering - 1.3.3-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Tue Jan 18 2022 Mukundan Ragavan - 1.3.3-2 - Add requires on py3-docstyle * Sat Jan 15 2022 Mukundan Ragavan - 1.3.3-1 - Update to 1.3.3 - Add explicit requires (needed for spyder) * Sun Sep 05 2021 Mukundan Ragavan - 1.2.2-1 - Update to 1.2.2 * Sat Aug 14 2021 Mukundan Ragavan - 1.2.1-1 - Update to 1.2.1 * Fri Jul 23 2021 Fedora Release Engineering - 1.1.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Wed Jul 07 2021 Mukundan Ragavan - 1.0.0-2 - Spec cleanup - Improve description * Mon Jul 05 2021 Mukundan Ragavan - 1.0.0-1 - Initial package. ## END: Generated by rpmautospec