commit 10d59da4628f991ceaa273718484630ca0e0a063fc42348bb700fade35e2262f Author: Matej Cepl Date: Mon Nov 6 14:48:25 2023 +0000 - Initial attempt to package pygls 1.1.2. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pygls?expand=0&rev=1 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/pygls-1.1.2.tar.gz b/pygls-1.1.2.tar.gz new file mode 100644 index 0000000..03ddb8c --- /dev/null +++ b/pygls-1.1.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:53d06205e71049c96abc89e2ff43f0493690bd48585f817980510d2ee3208df9 +size 199370 diff --git a/python-pygls.changes b/python-pygls.changes new file mode 100644 index 0000000..6b7d36f --- /dev/null +++ b/python-pygls.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Mon Nov 6 13:04:42 UTC 2023 - Matej Cepl + +- Initial attempt to package pygls 1.1.2. diff --git a/python-pygls.spec b/python-pygls.spec new file mode 100644 index 0000000..07b6b99 --- /dev/null +++ b/python-pygls.spec @@ -0,0 +1,70 @@ +# +# spec file for package python-pygls +# +# 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 +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +Name: python-pygls +Version: 1.1.2 +Release: 0 +Summary: A pythonic generic language server +License: Apache-2.0 +URL: https://github.com/openlawlibrary/pygls +# Source: https://files.pythonhosted.org/packages/source/p/pygls/pygls-%%{version}.tar.gz +Source: https://github.com/openlawlibrary/pygls/archive/refs/tags/v%{version}.tar.gz#/pygls-%{version}.tar.gz +BuildRequires: %{python_module base >= 3.7} +BuildRequires: %{python_module pip} +BuildRequires: %{python_module poetry-core} +BuildRequires: %{python_module wheel} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +# For testing +BuildRequires: %{python_module lsprotocol} +BuildRequires: %{python_module typeguard} +# BuildRequires: %%{python_module websockets} +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module pytest-asyncio} +# Endif +Requires: python-lsprotocol +Requires: python-typeguard +BuildArch: noarch +%python_subpackages + +%description +pygls (pronounced like "pie glass") is a pythonic generic +implementation of the Language Server Protocol for use as a +foundation for writing your own Language Servers in just a few +lines of code. + +%prep +%autosetup -p1 -n pygls-%{version} + +%build +%pyproject_wheel + +%install +%pyproject_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +%pytest + +%files %{python_files} +%doc README.md +%license LICENSE.txt +%{python_sitelib}/pygls +%{python_sitelib}/pygls-%{version}*-info + +%changelog