diff --git a/2.0.0.tar.gz b/2.0.0.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..8c656cb40342f29f6492ff6ee955271e19e20e38 Binary files /dev/null and b/2.0.0.tar.gz differ diff --git a/python-tomli.spec b/python-tomli.spec new file mode 100644 index 0000000000000000000000000000000000000000..0547c7da8a9dd43e90be06587683891d428d8494 --- /dev/null +++ b/python-tomli.spec @@ -0,0 +1,53 @@ +Name: python-tomli +Version: 2.0.0 +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 +BuildArch: noarch + +BuildRequires: python3-devel +BuildRequires: python3-pytest +BuildRequires: python3-dateutil + +%global _description %{expand: +Tomli is a Python library for parsing TOML. +Tomli is fully compatible with TOML v1.0.0.} + +%description %_description + +%package -n python3-tomli +Summary: %{summary} + +%description -n python3-tomli %_description + +%prep +%autosetup -p1 -n tomli-%{version} + +%build +%global distinfo tomli-%{version}+rpmbootstrap.dist-info +mkdir %{distinfo} +cat > %{distinfo}/METADATA << EOF +Metadata-Version: 2.2 +Name: tomli +Version: %{version}+rpmbootstrap +EOF + +%install +mkdir -p %{buildroot}%{python3_sitelib} +cp -a tomli %{distinfo} %{buildroot}%{python3_sitelib} +echo '%{python3_sitelib}/tomli/' > %{pyproject_files} +echo '%{python3_sitelib}/%{distinfo}/' >> %{pyproject_files} + +%check +pytest + +%files -n python3-tomli -f %{pyproject_files} +%doc README.md +%doc CHANGELOG.md +%license LICENSE + +%changelog +* Tue Mar 1 2022 zhangy - 2.0.0 +- Init packages