From 10c332b7138d9c9aeffcf6dd886e00cf576dcf9f Mon Sep 17 00:00:00 2001 From: Mukundan Ragavan Date: Jul 09 2021 15:30:51 +0000 Subject: Initial import (#1979316) --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..d75dd30 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/python-lsp-black-1.0.0.tar.gz diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..f67ba84 --- /dev/null +++ b/LICENSE @@ -0,0 +1,22 @@ +MIT License + +Copyright (c) 2018-2020 Rupert Bedford +Copyright (c) 2021 Python LSP contributors + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/python-lsp-black.spec b/python-lsp-black.spec new file mode 100644 index 0000000..8e06d2d --- /dev/null +++ b/python-lsp-black.spec @@ -0,0 +1,57 @@ +%global short_name lsp-black + +%global _description %{expand: +lsp-black is a python-lsp-server plugin that adds support to black +autoformatter. This is forked from pyls-black to be compatible wth +community maintained language-server (python-lsp-server). +} + +Name: python-%{short_name} +Version: 1.0.0 +Release: 2%{?dist} +Summary: A python-lsp-server plugin that adds support to black autoformatter + +License: MIT +URL: https://github.com/python-lsp/%{name} +Source0: %{pypi_source} +Source1: LICENSE + +BuildArch: noarch + +BuildRequires: python3-devel +BuildRequires: pyproject-rpm-macros + +%description %_description + +%package -n python3-%{short_name} +Summary: %{summary} + +Supplements: python3dist(python-lsp-server) + +%description -n python3-%{short_name} %_description + +%prep +%autosetup -n %{name}-%{version} +cp %{SOURCE1} LICENSE + +%generate_buildrequires +%pyproject_buildrequires -r + +%build +%pyproject_wheel + +%install +%pyproject_install + +%pyproject_save_files pylsp_black + +%files -n python3-%{short_name} -f %{pyproject_files} +%license LICENSE +%doc README.md + +%changelog +* Wed Jul 07 2021 Mukundan Ragavan - 1.0.0-2 +- Spec cleanup + +* Mon Jul 05 2021 Mukundan Ragavan - 1.0.0-1 +- Initial package. diff --git a/sources b/sources new file mode 100644 index 0000000..988a3d0 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (python-lsp-black-1.0.0.tar.gz) = eca159f1f0d1dff39008b99708b77e89830525a79641fab5463319e1b2fbb9dfa981bffbb3a3b6f2628dec9ec0930aa3c18f992d6ea4e0c6949fe699ddb5beb7