!1 Init package to version 2.10.0 for python-isort upgrade and test

From: @desert-sailor 
Reviewed-by: @yangzhao_kl 
Signed-off-by: @yangzhao_kl
This commit is contained in:
openeuler-ci-bot 2023-06-19 03:08:48 +00:00 committed by Gitee
commit 4ee235f1a0
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 52 additions and 0 deletions

52
python-time-machine.spec Normal file
View File

@ -0,0 +1,52 @@
%global _empty_manifest_terminate_build 0
%global pypi_name time-machine
%global source_name time_machine
Name: python-%{pypi_name}
Version: 2.10.0
Release: 1
Summary: Travel through time in your tests.
License: MIT
URL: https://github.com/adamchainz/time-machine
Source0: https://files.pythonhosted.org/packages/ac/60/0793032eef5b1dcab2aee60deb5cf3e42fc6437cfa7428a87e2745f5d640/time_machine-2.10.0.tar.gz
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: python3-pip
BuildRequires: python3-wheel
BuildRequires: python3-editables
BuildRequires: python3-hatch-vcs
BuildRequires: python3-hatchling
BuildRequires: python3-virtualenv
%description
Travel through time in your tests.
%package -n python3-%{pypi_name}
Summary: %{summary}
%description -n python3-%{pypi_name}
Travel through time in your tests.
%prep
%autosetup -p1 -n %{source_name}-%{version}
%build
%pyproject_build
%install
%pyproject_install
%files -n python3-%{pypi_name}
%doc README.rst
%license LICENSE
%{python3_sitearch}/_time_machine*.so
%{python3_sitearch}/time_machine-*.dist-info/
%{python3_sitearch}/time_machine
%changelog
* Sun Jun 18 2023 Dongxing Wang <dxwangk@isoftstone.com> - 2.10.0-1
- Initial package 2.10.0 for isort test

BIN
time_machine-2.10.0.tar.gz Normal file

Binary file not shown.