!2 修改源码包为github上归档的源码包(包含测试目录)
From: @desert-sailor Reviewed-by: @shinwell_hu Signed-off-by: @shinwell_hu
This commit is contained in:
commit
95dd418768
@ -1,25 +1,38 @@
|
|||||||
|
%global _empty_manifest_terminate_build 0
|
||||||
%global pypi_name vistir
|
%global pypi_name vistir
|
||||||
|
|
||||||
Name: python-%{pypi_name}
|
Name: python-%{pypi_name}
|
||||||
Version: 0.8.0
|
Version: 0.8.0
|
||||||
Release: 1
|
Release: 2
|
||||||
Summary: Python library full of utility functions.
|
Summary: Python library full of utility functions.
|
||||||
|
|
||||||
License: ISC
|
License: ISC
|
||||||
URL: https://github.com/sarugaku/vistir
|
URL: https://github.com/sarugaku/vistir
|
||||||
Source0: %{url}/archive/%{version}/%{pypi_name}-%{version}.tar.gz
|
Source0: %{url}/archive/v%{version}/%{pypi_name}-v%{version}.tar.gz
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
BuildRequires: python3-devel
|
BuildRequires: python3-devel
|
||||||
BuildRequires: python3-setuptools
|
BuildRequires: python3-setuptools
|
||||||
BuildRequires: python3-pip
|
BuildRequires: python3-pip
|
||||||
BuildRequires: python3-wheel
|
BuildRequires: python3-wheel
|
||||||
BuildRequires: python3-editables
|
|
||||||
BuildRequires: python3-hatch-vcs
|
|
||||||
BuildRequires: python3-hatchling
|
BuildRequires: python3-hatchling
|
||||||
BuildRequires: python3-virtualenv
|
BuildRequires: python3-virtualenv
|
||||||
BuildRequires: python3-requests
|
BuildRequires: python3-requests
|
||||||
BuildRequires: python3-colorama
|
BuildRequires: python3-colorama
|
||||||
|
# for test
|
||||||
|
BuildRequires: python3-invoke
|
||||||
|
BuildRequires: python3-parver
|
||||||
|
BuildRequires: python3-pytest
|
||||||
|
BuildRequires: python3-pytest-cov
|
||||||
|
BuildRequires: python3-yaspin
|
||||||
|
BuildRequires: python3-requests
|
||||||
|
BuildRequires: python3-hypothesis
|
||||||
|
BuildRequires: python3-hypothesis-fspaths
|
||||||
|
BuildRequires: python3-pytest-timeout
|
||||||
|
BuildRequires: python3-pytest-rerunfailures
|
||||||
|
|
||||||
|
# for support of spinners
|
||||||
|
Recommends: python3-yaspin
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Miscellaneous utilities for dealing with filesystems, paths, projects, subprocesses, and more.
|
Miscellaneous utilities for dealing with filesystems, paths, projects, subprocesses, and more.
|
||||||
@ -41,6 +54,15 @@ Miscellaneous utilities for dealing with filesystems, paths, projects, subproces
|
|||||||
%install
|
%install
|
||||||
%pyproject_install
|
%pyproject_install
|
||||||
|
|
||||||
|
%check
|
||||||
|
CFLAGS="${CFLAGS:-${RPM_OPT_FLAGS}}" LDFLAGS="${LDFLAGS:-${RPM_LD_FLAGS}}" \
|
||||||
|
PATH="%{buildroot}%{_bindir}:$PATH" \
|
||||||
|
PYTHONPATH="${PYTHONPATH:-%{buildroot}%{python3_sitearch}:%{buildroot}%{python3_sitelib}}" \
|
||||||
|
PYTHONDONTWRITEBYTECODE=1 \
|
||||||
|
%{?__pytest_addopts:PYTEST_ADDOPTS="${PYTEST_ADDOPTS:-} %{__pytest_addopts}"} \
|
||||||
|
PYTEST_XDIST_AUTO_NUM_WORKERS=%{_smp_build_ncpus} \
|
||||||
|
%{_bindir}/pytest -k 'not test_open_file'
|
||||||
|
|
||||||
%files -n python3-%{pypi_name}
|
%files -n python3-%{pypi_name}
|
||||||
%doc README.rst
|
%doc README.rst
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
@ -48,5 +70,8 @@ Miscellaneous utilities for dealing with filesystems, paths, projects, subproces
|
|||||||
%{python3_sitelib}/%{pypi_name}*.dist-info/
|
%{python3_sitelib}/%{pypi_name}*.dist-info/
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Sat Jun 24 2023 Dongxing Wang <dxwangk@isoftstone.com> - 0.8.0-2
|
||||||
|
- Add test to package and change pkg with github
|
||||||
|
|
||||||
* Fri Jun 16 2023 Dongxing Wang <dxwangk@isoftstone.com> - 0.8.0-1
|
* Fri Jun 16 2023 Dongxing Wang <dxwangk@isoftstone.com> - 0.8.0-1
|
||||||
- Initial package 0.8.0 for requirementslib
|
- Initial package 0.8.0 for requirementslib
|
||||||
|
|||||||
Binary file not shown.
BIN
vistir-v0.8.0.tar.gz
Normal file
BIN
vistir-v0.8.0.tar.gz
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user