From 48c6d6236445f437a820ba9511d379e9c60fe61c34b57c0877b1532ad8a57180 Mon Sep 17 00:00:00 2001 From: Nico Krapp Date: Tue, 3 Jun 2025 14:12:49 +0000 Subject: [PATCH] - Update to 2.6.3 * README updated * Switched build system uv (hatchling is the PEP-517 backend) * Supports back to Python 3.8 (not that this is useful, see the README for information on recommended markers) - Update BuildRequires from pyproject.toml OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-legacy-cgi?expand=0&rev=7 --- .gitattributes | 23 ++++++++++++++ .gitignore | 1 + legacy_cgi-2.6.1.tar.gz | 3 ++ legacy_cgi-2.6.2.tar.gz | 3 ++ legacy_cgi-2.6.3.tar.gz | 3 ++ python-legacy-cgi.changes | 25 +++++++++++++++ python-legacy-cgi.spec | 66 +++++++++++++++++++++++++++++++++++++++ 7 files changed, 124 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 legacy_cgi-2.6.1.tar.gz create mode 100644 legacy_cgi-2.6.2.tar.gz create mode 100644 legacy_cgi-2.6.3.tar.gz create mode 100644 python-legacy-cgi.changes create mode 100644 python-legacy-cgi.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/legacy_cgi-2.6.1.tar.gz b/legacy_cgi-2.6.1.tar.gz new file mode 100644 index 0000000..b33d0b8 --- /dev/null +++ b/legacy_cgi-2.6.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f2ada99c747c3d72a473a6aaff6259a61f226b06fe9f3106e495ab83fd8f7a42 +size 24782 diff --git a/legacy_cgi-2.6.2.tar.gz b/legacy_cgi-2.6.2.tar.gz new file mode 100644 index 0000000..15d1175 --- /dev/null +++ b/legacy_cgi-2.6.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9952471ceb304043b104c22d00b4f333cac27a6abe446d8a528fc437cf13c85f +size 24794 diff --git a/legacy_cgi-2.6.3.tar.gz b/legacy_cgi-2.6.3.tar.gz new file mode 100644 index 0000000..316b5a4 --- /dev/null +++ b/legacy_cgi-2.6.3.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4c119d6cb8e9d8b6ad7cc0ddad880552c62df4029622835d06dfd18f438a8154 +size 24401 diff --git a/python-legacy-cgi.changes b/python-legacy-cgi.changes new file mode 100644 index 0000000..24a2443 --- /dev/null +++ b/python-legacy-cgi.changes @@ -0,0 +1,25 @@ +------------------------------------------------------------------- +Tue Jun 3 08:19:37 UTC 2025 - John Paul Adrian Glaubitz + +- Update to 2.6.3 + * README updated + * Switched build system uv (hatchling is the PEP-517 backend) + * Supports back to Python 3.8 (not that this is useful, see + the README for information on recommended markers) +- Update BuildRequires from pyproject.toml + +------------------------------------------------------------------- +Wed Feb 5 08:08:47 UTC 2025 - John Paul Adrian Glaubitz + +- Update to 2.6.2 + * Remove the <4 Python requirement + +------------------------------------------------------------------- +Sun Nov 3 14:53:59 UTC 2024 - eccsos + +- Add %{?sle15_python_module_pythons} + +------------------------------------------------------------------- +Fri Oct 11 05:09:53 UTC 2024 - Steve Kowalik + +- Initial release of 2.6.1. diff --git a/python-legacy-cgi.spec b/python-legacy-cgi.spec new file mode 100644 index 0000000..4332d94 --- /dev/null +++ b/python-legacy-cgi.spec @@ -0,0 +1,66 @@ +# +# spec file for package python-legacy-cgi +# +# Copyright (c) 2025 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/ +# + + +%{?sle15_python_module_pythons} +Name: python-legacy-cgi +Version: 2.6.3 +Release: 0 +Summary: Fork of the standard library cgi and cgitb modules +License: Python-2.0 +URL: https://github.com/jackrosenthal/legacy-cgi +Source: https://files.pythonhosted.org/packages/source/l/legacy-cgi/legacy_cgi-%{version}.tar.gz +BuildRequires: %{python_module base >= 3.10} +BuildRequires: %{python_module hatchling} +BuildRequires: %{python_module pip} +BuildRequires: %{python_module pytest} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +BuildArch: noarch +%python_subpackages + +%description +This is a fork of the standard library modules ``cgi`` and ``cgitb``. +They are slated to be removed from the Python standard libary in +Python 3.13 by PEP-594_. + +%prep +%autosetup -p1 -n legacy_cgi-%{version} +# We don't want or a need a shebang +sed -i '1,11d' cgi.py +chmod -x cgi.py + +%build +%pyproject_wheel + +%install +%pyproject_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +%pytest + +%files %{python_files} +%license LICENSE +%doc README.rst +%{python_sitelib}/cgi.py +%{python_sitelib}/cgitb.py +%pycache_only %{python_sitelib}/__pycache__/cgi.*.pyc +%pycache_only %{python_sitelib}/__pycache__/cgitb.*.pyc +%{python_sitelib}/legacy_cgi-%{version}.dist-info + +%changelog