Update to 2.0.1

This commit is contained in:
starlet-dx 2022-10-25 16:08:16 +08:00
parent 90439702e4
commit 3dc6415d50
3 changed files with 9 additions and 3 deletions

Binary file not shown.

BIN
python-tomli-2.0.1.tar.gz Normal file

Binary file not shown.

View File

@ -1,10 +1,10 @@
Name: python-tomli
Version: 2.0.0
Version: 2.0.1
Release: 1
Summary: A little TOML parser for Python
License: MIT
URL: https://pypi.org/project/tomli/
Source0: https://github.com/hukkin/tomli/archive/refs/tags/%{version}.tar.gz
Source0: https://github.com/hukkin/tomli/archive/%{version}/%{name}-%{version}.tar.gz
BuildArch: noarch
BuildRequires: python3-devel
@ -19,6 +19,8 @@ Tomli is fully compatible with TOML v1.0.0.}
%package -n python3-tomli
Summary: %{summary}
Provides: python%{python3_pkgversion}dist(tomli) = %{version}
Provides: python%{python3_version}dist(tomli) = %{version}
%description -n python3-tomli %_description
@ -27,6 +29,7 @@ Summary: %{summary}
%build
%global distinfo tomli-%{version}+rpmbootstrap.dist-info
cp -rf src/tomli .
mkdir %{distinfo}
cat > %{distinfo}/METADATA << EOF
Metadata-Version: 2.2
@ -41,7 +44,7 @@ echo '%{python3_sitelib}/tomli/' > %{pyproject_files}
echo '%{python3_sitelib}/%{distinfo}/' >> %{pyproject_files}
%check
pytest
export PYTHONPATH=. && pytest
%files -n python3-tomli -f %{pyproject_files}
%doc README.md
@ -49,5 +52,8 @@ pytest
%license LICENSE
%changelog
* Tue Oct 25 2022 yaoxin <yaoxin30@h-partners.com> - 2.0.1-1
- Upgrade to 2.0.1
* Tue Mar 1 2022 zhangy <zhangy1317@foxmai.com> - 2.0.0
- Init packages