Add check to pytest
This commit is contained in:
parent
6940fa2276
commit
34a926fd16
@ -1,10 +1,9 @@
|
||||
# Created by pyp2rpm-3.3.9
|
||||
%global pypi_name pyyaml_env_tag
|
||||
%global pypi_version 0.1
|
||||
|
||||
|
||||
Name: python-%{pypi_name}
|
||||
Version: %{pypi_version}
|
||||
Release: 1
|
||||
Version: 0.1
|
||||
Release: 2
|
||||
Summary: A custom YAML tag for referencing environment variables in YAML files
|
||||
|
||||
License: MIT
|
||||
@ -23,6 +22,7 @@ BuildRequires: python3-virtualenv
|
||||
#check requirements
|
||||
BuildRequires: python3-flit
|
||||
BuildRequires: python3-pyyaml
|
||||
BuildRequires: python3-pytest
|
||||
|
||||
%description
|
||||
A custom YAML tag for referencing environment variables in YAML files.
|
||||
@ -36,7 +36,7 @@ A custom YAML tag for referencing environment variables in YAML files.
|
||||
|
||||
|
||||
%prep
|
||||
%autosetup -n %{pypi_name}-%{pypi_version}
|
||||
%autosetup -n %{pypi_name}-%{version}
|
||||
|
||||
%build
|
||||
%pyproject_build
|
||||
@ -45,7 +45,7 @@ A custom YAML tag for referencing environment variables in YAML files.
|
||||
%pyproject_install
|
||||
|
||||
%check
|
||||
%{__python3} setup.py test
|
||||
%pytest
|
||||
|
||||
%files -n python3-%{pypi_name}
|
||||
%license LICENSE
|
||||
@ -55,5 +55,8 @@ A custom YAML tag for referencing environment variables in YAML files.
|
||||
%{python3_sitelib}/%{pypi_name}-0.1.dist-info
|
||||
|
||||
%changelog
|
||||
* Wed Aug 30 2023 luolu12 <luluoc@isoftstone.com> - 0.1-2
|
||||
- Add check to pytest.
|
||||
|
||||
* Tue Jun 20 2023 luolu12 <luluoc@isoftstone.com> - 0.1-1
|
||||
- Initial package.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user