forked from pool/python-py-partiql-parser
- Initial release of 0.3.4
- Add patch correct-packages-decl.patch: * Specify all packages in pyproject.toml. - Add patch correct-version-to-tag.patch: * Version is tagged, but pyproject.toml was not updated. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-py-partiql-parser?expand=0&rev=1
This commit is contained in:
64
python-py-partiql-parser.spec
Normal file
64
python-py-partiql-parser.spec
Normal file
@@ -0,0 +1,64 @@
|
||||
#
|
||||
# spec file for package python-py-partiql-parser
|
||||
#
|
||||
# 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-py-partiql-parser
|
||||
Version: 0.3.4
|
||||
Release: 0
|
||||
Summary: Pure Python PartiQL Parser
|
||||
License: MIT
|
||||
URL: https://github.com/getmoto/py-partiql-parser
|
||||
Source: https://github.com/getmoto/py-partiql-parser/archive/refs/tags/%{version}.tar.gz#/py-partiql-parser-%{version}.tar.gz
|
||||
# PATCH-FIX-UPSTREAM gh#getmoto/py-partiql-parser#3
|
||||
Patch0: correct-packages-decl.patch
|
||||
# PATCH-FIX-OPENSUSE https://github.com/getmoto/py-partiql-parser/issues/4
|
||||
Patch1: correct-version-to-tag.patch
|
||||
BuildRequires: %{python_module pip}
|
||||
BuildRequires: %{python_module pytest}
|
||||
BuildRequires: %{python_module setuptools >= 59.0.0}
|
||||
BuildRequires: %{python_module sure}
|
||||
BuildRequires: %{python_module wheel}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
BuildArch: noarch
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
Pure Python PartiQL Parser
|
||||
|
||||
%prep
|
||||
%autosetup -p1 -n py-partiql-parser-%{version}
|
||||
|
||||
%build
|
||||
%pyproject_wheel
|
||||
|
||||
%install
|
||||
%pyproject_install
|
||||
# tests are also installed, and we do not want that
|
||||
%python_expand rm -r %{buildroot}%{$python_sitelib}/tests
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%check
|
||||
%pytest
|
||||
|
||||
%files %{python_files}
|
||||
%doc README.md
|
||||
%license LICENSE
|
||||
%{python_sitelib}/py_partiql_parser
|
||||
%{python_sitelib}/py_partiql_parser-%{version}.dist-info
|
||||
|
||||
%changelog
|
Reference in New Issue
Block a user