From c82216d569e55a2f41d16e63a7fdf6d6b0764aa34759fe871ce887b83924e234 Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Mon, 17 Jul 2023 05:27:11 +0000 Subject: [PATCH] - 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 --- .gitattributes | 23 ++++++++++++ .gitignore | 1 + correct-packages-decl.patch | 26 +++++++++++++ correct-version-to-tag.patch | 12 ++++++ py-partiql-parser-0.3.4.tar.gz | 3 ++ python-py-partiql-parser.changes | 8 ++++ python-py-partiql-parser.spec | 64 ++++++++++++++++++++++++++++++++ 7 files changed, 137 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 correct-packages-decl.patch create mode 100644 correct-version-to-tag.patch create mode 100644 py-partiql-parser-0.3.4.tar.gz create mode 100644 python-py-partiql-parser.changes create mode 100644 python-py-partiql-parser.spec 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/correct-packages-decl.patch b/correct-packages-decl.patch new file mode 100644 index 0000000..4091a00 --- /dev/null +++ b/correct-packages-decl.patch @@ -0,0 +1,26 @@ +From 7138237cdb51fae238067166bd765f900e68eb7d Mon Sep 17 00:00:00 2001 +From: Steve Kowalik +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" + ] + diff --git a/correct-version-to-tag.patch b/correct-version-to-tag.patch new file mode 100644 index 0000000..aa15754 --- /dev/null +++ b/correct-version-to-tag.patch @@ -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"] diff --git a/py-partiql-parser-0.3.4.tar.gz b/py-partiql-parser-0.3.4.tar.gz new file mode 100644 index 0000000..9a47e60 --- /dev/null +++ b/py-partiql-parser-0.3.4.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:bf5c28eda680377689550bf7b80a96a5a3f460b57bc0dc47b0e7125260d084b6 +size 16561 diff --git a/python-py-partiql-parser.changes b/python-py-partiql-parser.changes new file mode 100644 index 0000000..9c770ba --- /dev/null +++ b/python-py-partiql-parser.changes @@ -0,0 +1,8 @@ +------------------------------------------------------------------- +Mon Jul 17 05:23:17 UTC 2023 - Steve Kowalik + +- 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. diff --git a/python-py-partiql-parser.spec b/python-py-partiql-parser.spec new file mode 100644 index 0000000..4d93412 --- /dev/null +++ b/python-py-partiql-parser.spec @@ -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