commit da3c514c6ae219d594e13eae448b93484057aa7e4a8f2287ee718b6dd3430f95 Author: Steve Kowalik Date: Fri Oct 11 05:12:03 2024 +0000 - Initial release of 2.6.1. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-legacy-cgi?expand=0&rev=1 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/python-legacy-cgi.changes b/python-legacy-cgi.changes new file mode 100644 index 0000000..b5dca8f --- /dev/null +++ b/python-legacy-cgi.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +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..14007a5 --- /dev/null +++ b/python-legacy-cgi.spec @@ -0,0 +1,65 @@ +# +# spec file for package python-legacy-cgi +# +# Copyright (c) 2024 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-legacy-cgi +Version: 2.6.1 +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 pip} +BuildRequires: %{python_module poetry-core >= 1.0.0} +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