Init tomil with 2.0.0
This commit is contained in:
parent
10040500c0
commit
422e5e9d10
BIN
2.0.0.tar.gz
Normal file
BIN
2.0.0.tar.gz
Normal file
Binary file not shown.
53
python-tomli.spec
Normal file
53
python-tomli.spec
Normal file
@ -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 <zhangy1317@foxmai.com> - 2.0.0
|
||||||
|
- Init packages
|
||||||
Loading…
x
Reference in New Issue
Block a user