diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..417fcae --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/tomli-w-0.4.0.tar.gz diff --git a/python-tomli-w.spec b/python-tomli-w.spec new file mode 100644 index 0000000..087327c --- /dev/null +++ b/python-tomli-w.spec @@ -0,0 +1,55 @@ +Name: python-tomli-w +Version: 0.4.0 +Release: 1%{?dist} +Summary: A Python library for writing TOML + +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} + + +%generate_buildrequires +%pyproject_buildrequires -t + + +%build +%pyproject_wheel + + +%install +%pyproject_install +%pyproject_save_files tomli_w + + +%check +%tox + + +%files -n python3-tomli-w -f %{pyproject_files} +%doc README.md +%doc CHANGELOG.md +%license LICENSE + + +%changelog +* Wed Oct 27 2021 Tomáš Hrnčiar - 0.4.0-1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..30b938d --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (tomli-w-0.4.0.tar.gz) = 0a3940fd738aa62c9409cf33c515c33e232796374c10a7d0b0a7fcaf2d39e846cc1cf87700b5e8d5601e4bd02e76f5ee322c9d5fb37d4706670d34d8313fd19d