fix the python3.10(dist) dependence
This commit is contained in:
parent
6f1c98efad
commit
455c16ee3b
BIN
python-tomli-2.0.1.tar.gz
Normal file
BIN
python-tomli-2.0.1.tar.gz
Normal file
Binary file not shown.
@ -1,19 +1,15 @@
|
|||||||
Name: python-tomli
|
Name: python-tomli
|
||||||
Version: 2.0.1
|
Version: 2.0.1
|
||||||
Release: 1
|
Release: 2
|
||||||
Summary: A little TOML parser for Python
|
Summary: A little TOML parser for Python
|
||||||
License: MIT
|
License: MIT
|
||||||
URL: https://github.com/hukkin/tomli
|
URL: https://pypi.org/project/tomli/
|
||||||
Source0: https://files.pythonhosted.org/packages/c0/3f/d7af728f075fb08564c5949a9c95e44352e23dee646869fa104a3b2060a3/tomli-2.0.1.tar.gz
|
Source0: https://github.com/hukkin/tomli/archive/%{version}/%{name}-%{version}.tar.gz
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
BuildRequires: python3-devel
|
BuildRequires: python3-devel
|
||||||
BuildRequires: python3-pytest
|
BuildRequires: python3-pytest
|
||||||
BuildRequires: python3-dateutil
|
BuildRequires: python3-dateutil
|
||||||
BuildRequires: python3-setuptools
|
|
||||||
BuildRequires: python3-pbr
|
|
||||||
BuildRequires: python3-pip
|
|
||||||
BuildRequires: python3-wheel
|
|
||||||
|
|
||||||
%global _description %{expand:
|
%global _description %{expand:
|
||||||
Tomli is a Python library for parsing TOML.
|
Tomli is a Python library for parsing TOML.
|
||||||
@ -23,6 +19,8 @@ Tomli is fully compatible with TOML v1.0.0.}
|
|||||||
|
|
||||||
%package -n python3-tomli
|
%package -n python3-tomli
|
||||||
Summary: %{summary}
|
Summary: %{summary}
|
||||||
|
Provides: python%{python3_pkgversion}dist(tomli) = %{version}
|
||||||
|
Provides: python%{python3_version}dist(tomli) = %{version}
|
||||||
|
|
||||||
%description -n python3-tomli %_description
|
%description -n python3-tomli %_description
|
||||||
|
|
||||||
@ -31,6 +29,7 @@ Summary: %{summary}
|
|||||||
|
|
||||||
%build
|
%build
|
||||||
%global distinfo tomli-%{version}+rpmbootstrap.dist-info
|
%global distinfo tomli-%{version}+rpmbootstrap.dist-info
|
||||||
|
cp -rf src/tomli .
|
||||||
mkdir %{distinfo}
|
mkdir %{distinfo}
|
||||||
cat > %{distinfo}/METADATA << EOF
|
cat > %{distinfo}/METADATA << EOF
|
||||||
Metadata-Version: 2.2
|
Metadata-Version: 2.2
|
||||||
@ -40,19 +39,22 @@ EOF
|
|||||||
|
|
||||||
%install
|
%install
|
||||||
mkdir -p %{buildroot}%{python3_sitelib}
|
mkdir -p %{buildroot}%{python3_sitelib}
|
||||||
cp -a src/tomli %{distinfo} %{buildroot}%{python3_sitelib}
|
cp -a tomli %{distinfo} %{buildroot}%{python3_sitelib}
|
||||||
echo '%{python3_sitelib}/tomli/' > %{pyproject_files}
|
echo '%{python3_sitelib}/tomli/' > %{pyproject_files}
|
||||||
echo '%{python3_sitelib}/%{distinfo}/' >> %{pyproject_files}
|
echo '%{python3_sitelib}/%{distinfo}/' >> %{pyproject_files}
|
||||||
|
|
||||||
#%check
|
%check
|
||||||
#no test items
|
export PYTHONPATH=. && pytest
|
||||||
#pytest
|
|
||||||
|
|
||||||
%files -n python3-tomli -f %{pyproject_files}
|
%files -n python3-tomli -f %{pyproject_files}
|
||||||
%doc README.md
|
%doc README.md
|
||||||
|
%doc CHANGELOG.md
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Aug 05 2022 OpenStack_SIG <openstack@openeuler.org> - 2.0.1-2
|
||||||
|
- Fix the python3.10(dist) dependence
|
||||||
|
|
||||||
* Sat Jun 04 2022 OpenStack_SIG <openstack@openeuler.org> - 2.0.1-1
|
* Sat Jun 04 2022 OpenStack_SIG <openstack@openeuler.org> - 2.0.1-1
|
||||||
- Upgrade python3-tomli to version 2.0.1
|
- Upgrade python3-tomli to version 2.0.1
|
||||||
|
|
||||||
|
|||||||
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user