14
0

- 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:
2023-07-17 05:27:11 +00:00
committed by Git OBS Bridge
commit c82216d569
7 changed files with 137 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@@ -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

1
.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
.osc

View File

@@ -0,0 +1,26 @@
From 7138237cdb51fae238067166bd765f900e68eb7d Mon Sep 17 00:00:00 2001
From: Steve Kowalik <steven@wedontsleep.org>
Date: Mon, 17 Jul 2023 13:22:22 +1000
Subject: [PATCH] Add py_partiql_parser to packages list
setuptools traverses the packages list when deciding what to populate
the sdist and wheels with, and as it stands, only the tests are shipped
in them. Include both py_partiql_parser and the _internal module, so
they are shipped as well.
---
pyproject.toml | 2 ++
1 file changed, 2 insertions(+)
diff --git a/pyproject.toml b/pyproject.toml
index 80675cc..5ebda0d 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -16,6 +16,8 @@ dependencies = []
[tool.setuptools]
packages = [
+ "py_partiql_parser",
+ "py_partiql_parser._internal",
"tests"
]

View File

@@ -0,0 +1,12 @@
Index: py-partiql-parser-0.3.4/pyproject.toml
===================================================================
--- py-partiql-parser-0.3.4.orig/pyproject.toml
+++ py-partiql-parser-0.3.4/pyproject.toml
@@ -1,6 +1,6 @@
[project]
name = "py-partiql-parser"
-version = "0.3.3"
+version = "0.3.4"
description = "Pure Python PartiQL Parser"
readme = "README.md"
keywords = ["pypartiql", "parser"]

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:bf5c28eda680377689550bf7b80a96a5a3f460b57bc0dc47b0e7125260d084b6
size 16561

View File

@@ -0,0 +1,8 @@
-------------------------------------------------------------------
Mon Jul 17 05:23:17 UTC 2023 - Steve Kowalik <steven.kowalik@suse.com>
- 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.

View 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