python-pyyaml-env-tag/python-pyyaml_env_tag.spec

63 lines
1.6 KiB
RPMSpec
Raw Permalink Normal View History

%global pypi_name pyyaml_env_tag
2023-08-30 15:21:32 +08:00
Name: python-%{pypi_name}
2023-08-30 15:21:32 +08:00
Version: 0.1
Release: 2
Summary: A custom YAML tag for referencing environment variables in YAML files
License: MIT
URL: https://github.com/waylan/pyyaml-env-tag
Source0: https://files.pythonhosted.org/packages/fb/8e/da1c6c58f751b70f8ceb1eb25bc25d524e8f14fe16edcce3f4e3ba08629c/pyyaml_env_tag-0.1.tar.gz
BuildArch: noarch
BuildRequires: python3-devel
BuildRequires: python3dist(setuptools)
BuildRequires: python3-pip
BuildRequires: python3-wheel
BuildRequires: python3-editables
BuildRequires: python3-hatch-vcs
BuildRequires: python3-hatchling
BuildRequires: python3-virtualenv
#check requirements
BuildRequires: python3-flit
BuildRequires: python3-pyyaml
2023-08-30 15:21:32 +08:00
BuildRequires: python3-pytest
%description
A custom YAML tag for referencing environment variables in YAML files.
%package -n python3-%{pypi_name}
Summary: %{summary}
%{?python_provide:%python_provide python3-%{pypi_name}}
%description -n python3-%{pypi_name}
A custom YAML tag for referencing environment variables in YAML files.
%prep
2023-08-30 15:21:32 +08:00
%autosetup -n %{pypi_name}-%{version}
%build
%pyproject_build
%install
%pyproject_install
%check
2023-08-30 15:21:32 +08:00
%pytest
%files -n python3-%{pypi_name}
%license LICENSE
%doc README.md
%{python3_sitelib}/__pycache__/*
%{python3_sitelib}/yaml_env_tag.py
%{python3_sitelib}/%{pypi_name}-0.1.dist-info
%changelog
2023-08-30 15:21:32 +08:00
* 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.