You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
105 lines
2.9 KiB
105 lines
2.9 KiB
3 years ago
|
%bcond_without check
|
||
|
|
||
3 years ago
|
Name: python-tomli-w
|
||
2 weeks ago
|
Version: 1.0.0
|
||
|
Release: 6%{?dist}
|
||
3 years ago
|
Summary: A Python library for writing TOML
|
||
|
|
||
2 weeks ago
|
# SPDX
|
||
3 years ago
|
License: MIT
|
||
|
URL: https://github.com/hukkin/tomli-w
|
||
|
Source0: %{url}/archive/%{version}/tomli-w-%{version}.tar.gz
|
||
|
|
||
|
BuildArch: noarch
|
||
|
BuildRequires: python3-devel
|
||
|
|
||
|
%global _description %{expand:
|
||
|
Tomli-W is a Python library for writing TOML. It is a write-only counterpart
|
||
|
to Tomli, which is a read-only TOML parser. Tomli-W is fully compatible
|
||
|
with TOML v1.0.0.}
|
||
|
|
||
|
%description %_description
|
||
|
|
||
|
%package -n python3-tomli-w
|
||
|
Summary: %{summary}
|
||
|
|
||
|
%description -n python3-tomli-w %_description
|
||
|
|
||
|
|
||
|
%prep
|
||
|
%autosetup -p1 -n tomli-w-%{version}
|
||
3 years ago
|
# Measuring coverage is discouraged in Python packaging guidelines:
|
||
|
sed -i '/pytest-cov/d' tests/requirements.txt
|
||
2 weeks ago
|
# 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
|
||
3 years ago
|
# 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}
|
||
|
sed -i '/pytest-randomly/d' tests/requirements.txt
|
||
|
%endif
|
||
3 years ago
|
|
||
|
|
||
|
%generate_buildrequires
|
||
2 weeks ago
|
# 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}
|
||
3 years ago
|
|
||
|
|
||
|
%build
|
||
|
%pyproject_wheel
|
||
|
|
||
|
|
||
|
%install
|
||
|
%pyproject_install
|
||
3 years ago
|
%pyproject_save_files tomli_w
|
||
3 years ago
|
|
||
|
|
||
|
%check
|
||
3 years ago
|
%pyproject_check_import tomli_w
|
||
3 years ago
|
%if %{with check}
|
||
2 weeks ago
|
%pytest -v
|
||
3 years ago
|
%endif
|
||
3 years ago
|
|
||
|
|
||
|
%files -n python3-tomli-w -f %{pyproject_files}
|
||
|
%doc README.md
|
||
|
%doc CHANGELOG.md
|
||
|
%license LICENSE
|
||
|
|
||
|
|
||
|
%changelog
|
||
2 weeks ago
|
* Mon Dec 30 2024 Arkady L. Shane <tigro@msvsphere-os.ru> - 1.0.0-6
|
||
|
- Rebuilt for MSVSphere 10
|
||
|
|
||
|
* Wed May 31 2023 Miro Hrončok <mhroncok@redhat.com> - 1.0.0-6
|
||
|
- On Python 3.11+, do not BuildRequire python3-tomli for tests
|
||
|
|
||
|
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.0-5
|
||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
||
|
|
||
|
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.0-4
|
||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
||
|
|
||
|
* Tue Jun 14 2022 Python Maint <python-maint@redhat.com> - 1.0.0-3
|
||
|
- Rebuilt for Python 3.11
|
||
|
|
||
|
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 1.0.0-2
|
||
|
- Bootstrap for Python 3.11
|
||
|
|
||
|
* Tue Feb 22 2022 Tomáš Hrnčiar <thrnciar@redhat.com> - 1.0.0-1
|
||
|
- Update to 1.0
|
||
|
- Fixes: rhbz#2053820
|
||
|
|
||
3 years ago
|
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.0-3
|
||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
||
|
|
||
3 years ago
|
* Thu Jan 20 2022 Michel Alexandre Salim <salimma@fedoraproject.org> - 0.4.0-2
|
||
|
- Add boostrap and check toggles to ease bootstrapping new EPEL releases
|
||
|
|
||
3 years ago
|
* Wed Oct 27 2021 Tomáš Hrnčiar <thrnciar@redhat.com> - 0.4.0-1
|
||
|
- Initial package
|