From 186346e5b6535e60f378710ac1a0802439452918 Mon Sep 17 00:00:00 2001 From: Miro Hrončok Date: Mar 14 2019 08:32:30 +0000 Subject: Initial import (#1687851) --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..ebf31e4 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/pygments-pytest-*.tar.gz diff --git a/python-pygments-pytest.spec b/python-pygments-pytest.spec new file mode 100644 index 0000000..9477300 --- /dev/null +++ b/python-pygments-pytest.spec @@ -0,0 +1,61 @@ +%global pypi_name pygments_pytest +%global dash_name pygments-pytest + +# this is BRed by pytest, so we need to run without tests when bootstrapping +# also pygments-ansi-color is not available in Fedora yet +%bcond_with tests + +Name: python-%{dash_name} +Version: 1.2.0 +Release: 1%{?dist} +Summary: A pygments lexer for pytest output +License: MIT +URL: https://github.com/asottile/pygments-pytest +Source0: %{url}/archive/v%{version}/%{dash_name}-%{version}.tar.gz +BuildArch: noarch + +BuildRequires: python3-devel +BuildRequires: python3-setuptools +%if %{with tests} +BuildRequires: python3-pygments +BuildRequires: python3-pygments-ansi-color +BuildRequires: python3-pytest +%endif + +%description +This library provides a pygments lexer called pytest. +This library also provides a sphinx extension. + +%package -n python3-%{dash_name} +Summary: %{summary} +%{?python_provide:%python_provide python3-%{pypi_name}} + +%description -n python3-%{dash_name} +This library provides a pygments lexer called pytest. +This library also provides a sphinx extension. + + +%prep +%autosetup -n %{dash_name}-%{version} + +%build +%py3_build + +%install +%py3_install + +%if %{with tests} +%check +%{__python3} -m pytest -v +%endif + +%files -n python3-%{dash_name} +%license LICENSE +%doc README.md +%{python3_sitelib}/__pycache__/* +%{python3_sitelib}/%{pypi_name}.py +%{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info/ + +%changelog +* Tue Mar 12 2019 Miro Hrončok - 1.2.0-1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..152333f --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (pygments-pytest-1.2.0.tar.gz) = 955a07affd76cb6ca1b4175dc05e217d21831397912b41454a9d89cda134602de80f68d46f131b4db1c269d8a5bd01ea42609ff83830d36a280141a453e0edc3