commit 7f7b62513648b6ea61e87419cb49f4cd6ad87124 Author: tigro Date: Wed Jan 1 22:35:41 2025 +0300 import python-atpublic-4.1.0-3.el10 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..93a141a --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/atpublic-4.1.0.tar.gz diff --git a/.python-atpublic.metadata b/.python-atpublic.metadata new file mode 100644 index 0000000..78a3d83 --- /dev/null +++ b/.python-atpublic.metadata @@ -0,0 +1 @@ +b4f708f520ebd0160744e22df4bb7ae75732ed4c SOURCES/atpublic-4.1.0.tar.gz diff --git a/SOURCES/disable_cov.patch b/SOURCES/disable_cov.patch new file mode 100644 index 0000000..fa4dbf2 --- /dev/null +++ b/SOURCES/disable_cov.patch @@ -0,0 +1,33 @@ +diff --git a/pyproject.toml b/pyproject.toml +index af29ca7..7f75769 100644 +--- a/pyproject.toml ++++ b/pyproject.toml +@@ -67,10 +67,8 @@ python = ['3.8', '3.9', '3.10', '3.11', '3.12'] + + [tool.hatch.envs.test] + dependencies = [ +- 'coverage[toml]', + 'diff-cover', + 'pytest', +- 'pytest-cov', + 'sybil', + ] + +@@ -112,17 +110,8 @@ docs = [ + ] + + [tool.pytest.ini_options] +-addopts = '--cov=public --cov-report=term --cov-report=xml -p no:doctest' + testpaths = 'test docs' + +-[tool.coverage.report] +-fail_under = 100 +-show_missing = true +- +-[tool.coverage.run] +-branch = true +-parallel = true +- + [tool.ruff] + line-length = 79 + src = ['src'] diff --git a/SPECS/python-atpublic.spec b/SPECS/python-atpublic.spec new file mode 100644 index 0000000..a49f1e8 --- /dev/null +++ b/SPECS/python-atpublic.spec @@ -0,0 +1,155 @@ +%global debug_package %{nil} +%global _description \ +This is a very simple decorator and function which populates a \ +module's __all__ and optionally the module globals. \ +This provides both a pure-Python implementation and a C implementation. \ +It is proposed that the C implementation be added to built-ins for \ +Python 3.6. + + +Name: python-atpublic +Version: 4.1.0 +Release: 3%{?dist} +Summary: Decorator for populating a Python module's __all__ + +License: Apache-2.0 +URL: https://gitlab.com/warsaw/public +Source: %pypi_source atpublic + +Patch: disable_cov.patch + +BuildRequires: gcc +BuildRequires: python3-devel +# for tests +BuildRequires: python3-pytest +BuildRequires: python3-sybil + +%description %{_description} + + +%package -n python3-atpublic +Summary: %{summary} +Requires: python3-setuptools + +%description -n python3-atpublic %{_description} + + +%prep +%autosetup -n atpublic-%{version} + + +%generate_buildrequires +%pyproject_buildrequires + + +%build +export ATPUBLIC_BUILD_EXTENSION=1 +%pyproject_wheel + + +%install +export ATPUBLIC_BUILD_EXTENSION=1 +%pyproject_install +%pyproject_save_files public + + +%check +%pytest + + +%files -n python3-atpublic -f %{pyproject_files} +%license LICENSE +%doc README.rst docs/ + + +%changelog +* Wed Jan 01 2025 Arkady L. Shane - 4.1.0-3 +- Rebuilt for MSVSphere 10 + +* Fri Jul 19 2024 Fedora Release Engineering - 4.1.0-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild + +* Fri Jun 07 2024 Python Maint - 4.1.0-2 +- Rebuilt for Python 3.13 + +* Fri Apr 05 2024 Tomáš Hrnčiar - 4.1.0-1 +- Update to 4.1.0 +- Fixes: rhbz#2211562 + +* Fri Jan 26 2024 Fedora Release Engineering - 3.1.1-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Sun Jan 21 2024 Fedora Release Engineering - 3.1.1-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Fri Jul 21 2023 Fedora Release Engineering - 3.1.1-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Tue Jun 13 2023 Python Maint - 3.1.1-3 +- Rebuilt for Python 3.12 + +* Fri Jan 20 2023 Fedora Release Engineering - 3.1.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Fri Oct 28 2022 Jonathan Wright - 3.1.1-1 +- Update to 3.1.1 rhbz#1861230 + +* Fri Jul 22 2022 Fedora Release Engineering - 1.0-11 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Mon Jun 13 2022 Python Maint - 1.0-10 +- Rebuilt for Python 3.11 + +* Wed Mar 30 2022 Aurélien Bompard - 1.0-9 +- rebuilt + +* Fri Jan 21 2022 Fedora Release Engineering - 1.0-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Fri Jul 23 2021 Fedora Release Engineering - 1.0-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Fri Jun 04 2021 Python Maint - 1.0-6 +- Rebuilt for Python 3.10 + +* Wed Jan 27 2021 Fedora Release Engineering - 1.0-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Tue Jul 28 2020 Fedora Release Engineering - 1.0-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Tue May 26 2020 Miro Hrončok - 1.0-3 +- Rebuilt for Python 3.9 + +* Thu Jan 30 2020 Fedora Release Engineering - 1.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Mon Sep 30 2019 Aurelien Bompard - 1.0-1 +- Version 1.0 + +* Mon Aug 19 2019 Miro Hrončok - 0.5-9 +- Rebuilt for Python 3.8 + +* Fri Jul 26 2019 Fedora Release Engineering - 0.5-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Sat Feb 02 2019 Fedora Release Engineering - 0.5-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Fri Jul 13 2018 Fedora Release Engineering - 0.5-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Tue Jun 19 2018 Miro Hrončok - 0.5-5 +- Rebuilt for Python 3.7 + +* Fri Feb 09 2018 Fedora Release Engineering - 0.5-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Thu Aug 03 2017 Fedora Release Engineering - 0.5-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild + +* Thu Jul 27 2017 Fedora Release Engineering - 0.5-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Mon Dec 05 2016 Aurelien Bompard - 0.4-1 +- Initial package.