From 4062b759547ab1cdb309e5e259bb03126ff5630f Mon Sep 17 00:00:00 2001 From: rdobuilder Date: Feb 19 2024 10:27:56 +0000 Subject: Update to 2.0.1 Related-to: https://review.rdoproject.org/r/q/I381d7774a9d1b7b72cc5e091434d7e696a4d5534 --- diff --git a/.python-warlock.metadata b/.python-warlock.metadata new file mode 100644 index 0000000..cb21eb9 --- /dev/null +++ b/.python-warlock.metadata @@ -0,0 +1 @@ +595ec5bb8358c9a592e0c6be4764dc2483055f27 SOURCES/warlock-2.0.1.tar.gz diff --git a/SOURCES/.gitignore b/SOURCES/.gitignore new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/SOURCES/.gitignore diff --git a/SOURCES/tox.ini b/SOURCES/tox.ini new file mode 100644 index 0000000..e816245 --- /dev/null +++ b/SOURCES/tox.ini @@ -0,0 +1,10 @@ +[tox] +skipsdist = True +envlist = py37,py38,py39,py310 + +[testenv] +skip_install = true +deps = + pytest +commands = + pytest diff --git a/SPECS/python-warlock.spec b/SPECS/python-warlock.spec new file mode 100644 index 0000000..6ee5f88 --- /dev/null +++ b/SPECS/python-warlock.spec @@ -0,0 +1,169 @@ +%global github_name warlock + +Name: python-warlock +Version: 2.0.1 +Release: 3%{?dist} +Summary: Python object model built on top of JSON schema + +License: Apache-2.0 +URL: http://pypi.python.org/pypi/warlock +Source0: %{pypi_source %{github_name}} +# tox.ini is not included in pypi tarball +Source1: tox.ini +BuildArch: noarch + +BuildRequires: python3-devel +BuildRequires: pyproject-rpm-macros + +%global _description %{expand: +Build self-validating python objects using JSON schemas} + +%description %_description + +%package -n python3-%{github_name} +Summary: Python object model built on top of JSON schema +%{?python_provide:%python_provide python3-%{github_name}} + +%description -n python3-%{github_name} %_description + +%prep +%autosetup -n %{github_name}-%{version} +cp %SOURCE1 . + +sed -i 's/\(jsonschema\).*"^\(.*\)"/\1 = ">= \2"/' pyproject.toml +sed -i 's/\(jsonpatch\).*"^\(.*\)"/\1 = ">= \2"/' pyproject.toml +cat pyproject.toml | grep -e json + +%generate_buildrequires +%pyproject_buildrequires -t + +%build +%pyproject_wheel + +%install +%pyproject_install +%pyproject_save_files warlock + +%check +# Tarball does not include tests we can not run them +#%%tox + +%files -n python3-%{github_name} -f %{pyproject_files} +%doc README.md +%license LICENSE + +%changelog +* Fri Jul 21 2023 Fedora Release Engineering - 2.0.1-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Thu Jun 15 2023 Python Maint - 2.0.1-2 +- Rebuilt for Python 3.12 + +* Thu Jun 08 2023 Joel Capitao - 2.0.1-1 +- Update to 2.0.1 (#1711642) +- Switch to pyproject macros +- Switch to SPDX identifier + +* Fri Jan 20 2023 Fedora Release Engineering - 1.3.3-11 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Fri Jul 22 2022 Fedora Release Engineering - 1.3.3-10 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Mon Jun 13 2022 Python Maint - 1.3.3-9 +- Rebuilt for Python 3.11 + +* Fri Jan 21 2022 Fedora Release Engineering - 1.3.3-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Tue Jul 27 2021 Fedora Release Engineering - 1.3.3-7 +- Second attempt - Rebuilt for + https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Fri Jun 04 2021 Python Maint - 1.3.3-6 +- Rebuilt for Python 3.10 + +* Wed Jan 27 2021 Fedora Release Engineering - 1.3.3-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Wed Jul 29 2020 Fedora Release Engineering - 1.3.3-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Tue May 26 2020 Miro Hrončok - 1.3.3-3 +- Rebuilt for Python 3.9 + +* Thu Jan 30 2020 Fedora Release Engineering - 1.3.3-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Tue Sep 10 2019 Yatin Karel - 1.3.3-1 +- Update to 1.3.3 + +* Mon Aug 19 2019 Miro Hrončok - 1.3.0-12 +- Rebuilt for Python 3.8 + +* Fri Jul 26 2019 Fedora Release Engineering - 1.3.0-11 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Mon Feb 11 2019 Miro Hrončok - 1.3.0-10 +- Subpackage python2-warlock has been removed + See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal + +* Sat Feb 02 2019 Fedora Release Engineering - 1.3.0-9 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Sat Jul 14 2018 Fedora Release Engineering - 1.3.0-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Tue Jun 19 2018 Miro Hrončok - 1.3.0-7 +- Rebuilt for Python 3.7 + +* Fri Feb 09 2018 Fedora Release Engineering - 1.3.0-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Wed Jan 31 2018 Iryna Shcherbina - 1.3.0-5 +- Update Python 2 dependency declarations to new packaging standards + (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3) + +* Thu Jul 27 2017 Fedora Release Engineering - 1.3.0-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Sat Feb 11 2017 Fedora Release Engineering - 1.3.0-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + +* Mon Dec 19 2016 Miro Hrončok - 1.3.0-2 +- Rebuild for Python 3.6 + +* Wed Jul 27 2016 Charalampos Stratakis - 1.3.0-1 +- Update to 1.3.0 +- Provide a python 3 subpackage +- Modernize SPEC + +* Tue Jul 19 2016 Fedora Release Engineering - 1.0.1-5 +- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages + +* Thu Feb 04 2016 Fedora Release Engineering - 1.0.1-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild + +* Thu Jun 18 2015 Fedora Release Engineering - 1.0.1-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild + +* Sun Jun 08 2014 Fedora Release Engineering - 1.0.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild + +* Thu Oct 10 2013 Alan Pevec 1.0.1-1 +- update to 1.0.1 + +* Tue Aug 13 2013 Alan Pevec 0.4.0-5 +- fix FTBFS in rawhide rhbz#993177 + +* Sun Aug 04 2013 Fedora Release Engineering - 0.4.0-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild + +* Thu Feb 14 2013 Fedora Release Engineering - 0.4.0-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild + +* Wed Aug 22 2012 Alan Pevec 0.4.0-2 +- Add missing build requirements + +* Fri Aug 10 2012 Dan Prince - 0.4.0-1 +- Initial package.