diff --git a/.gitignore b/.gitignore index 417fcae..8f493cc 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1 @@ -/tomli-w-0.4.0.tar.gz +SOURCES/tomli-w-1.0.0.tar.gz diff --git a/.python-tomli-w.metadata b/.python-tomli-w.metadata new file mode 100644 index 0000000..23ba4b8 --- /dev/null +++ b/.python-tomli-w.metadata @@ -0,0 +1 @@ +b079399b4b2bf0fa2a0c0c0dcdb0d398c84534f6 SOURCES/tomli-w-1.0.0.tar.gz diff --git a/python-tomli-w.spec b/SPECS/python-tomli-w.spec similarity index 56% rename from python-tomli-w.spec rename to SPECS/python-tomli-w.spec index 71860b8..f11db54 100644 --- a/python-tomli-w.spec +++ b/SPECS/python-tomli-w.spec @@ -1,10 +1,11 @@ %bcond_without check Name: python-tomli-w -Version: 0.4.0 -Release: 3%{?dist} +Version: 1.0.0 +Release: 6%{?dist} Summary: A Python library for writing TOML +# SPDX License: MIT URL: https://github.com/hukkin/tomli-w Source0: %{url}/archive/%{version}/tomli-w-%{version}.tar.gz @@ -29,6 +30,11 @@ Summary: %{summary} %autosetup -p1 -n tomli-w-%{version} # Measuring coverage is discouraged in Python packaging guidelines: sed -i '/pytest-cov/d' tests/requirements.txt +# We don't need tomli on Python 3.11+ +%if v"%{python3_version}" >= v"3.11" +sed -i '/tomli/d' tests/requirements.txt +sed -Ei 's/tomli(\.|$)/tomllib\1/' tests/*.py +%endif # This testing dependency is optional and we don't have it in (EP)EL, # it has many missing transitive dependencies that we don't want to maintain %if 0%{?rhel} @@ -37,7 +43,10 @@ sed -i '/pytest-randomly/d' tests/requirements.txt %generate_buildrequires -%pyproject_buildrequires %{?with_check:-t} +# We intentionally don't use tox here to avoid a dependency on it in ELN/RHEL, +# the tox deps only list -r tests/requirements.txt anyway and sometimes +# did not run any tests at all. +%pyproject_buildrequires %{?with_check:tests/requirements.txt} %build @@ -52,7 +61,7 @@ sed -i '/pytest-randomly/d' tests/requirements.txt %check %pyproject_check_import tomli_w %if %{with check} -%tox +%pytest -v %endif @@ -63,6 +72,28 @@ sed -i '/pytest-randomly/d' tests/requirements.txt %changelog +* Mon Dec 30 2024 Arkady L. Shane - 1.0.0-6 +- Rebuilt for MSVSphere 10 + +* Wed May 31 2023 Miro Hrončok - 1.0.0-6 +- On Python 3.11+, do not BuildRequire python3-tomli for tests + +* Fri Jan 20 2023 Fedora Release Engineering - 1.0.0-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Fri Jul 22 2022 Fedora Release Engineering - 1.0.0-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Tue Jun 14 2022 Python Maint - 1.0.0-3 +- Rebuilt for Python 3.11 + +* Mon Jun 13 2022 Python Maint - 1.0.0-2 +- Bootstrap for Python 3.11 + +* Tue Feb 22 2022 Tomáš Hrnčiar - 1.0.0-1 +- Update to 1.0 +- Fixes: rhbz#2053820 + * Fri Jan 21 2022 Fedora Release Engineering - 0.4.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild diff --git a/sources b/sources deleted file mode 100644 index 30b938d..0000000 --- a/sources +++ /dev/null @@ -1 +0,0 @@ -SHA512 (tomli-w-0.4.0.tar.gz) = 0a3940fd738aa62c9409cf33c515c33e232796374c10a7d0b0a7fcaf2d39e846cc1cf87700b5e8d5601e4bd02e76f5ee322c9d5fb37d4706670d34d8313fd19d