You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
59 lines
1.4 KiB
59 lines
1.4 KiB
6 years ago
|
%global pypi_name tox-current-env
|
||
|
%global pypi_under tox_current_env
|
||
|
|
||
|
Name: python-%{pypi_name}
|
||
|
Version: 0.0.1
|
||
|
Release: 1%{?dist}
|
||
|
Summary: Tox plugin to run tests in current Python environment
|
||
|
|
||
|
License: MIT
|
||
|
URL: https://github.com/fedora-python/tox-current-env
|
||
|
Source0: %{pypi_source}
|
||
|
BuildArch: noarch
|
||
|
|
||
|
# Don't use %%pyproject_buildrequires to avoid a build dependency loop.
|
||
|
BuildRequires: python3-devel
|
||
|
BuildRequires: pyproject-rpm-macros
|
||
|
BuildRequires: python3dist(setuptools)
|
||
|
BuildRequires: python3dist(wheel)
|
||
|
|
||
|
%description
|
||
|
The tox-current-env plugin allows to run tests in current Python environment.
|
||
|
|
||
|
|
||
|
%package -n python3-%{pypi_name}
|
||
|
Summary: %{summary}
|
||
|
%{?python_provide:%python_provide python3-%{pypi_name}}
|
||
|
|
||
|
%description -n python3-%{pypi_name}
|
||
|
The tox-current-env plugin allows to run tests in current Python environment.
|
||
|
|
||
|
|
||
|
%prep
|
||
|
%autosetup -n %{pypi_name}-%{version}
|
||
|
|
||
|
|
||
|
%build
|
||
|
%pyproject_wheel
|
||
|
|
||
|
|
||
|
%install
|
||
|
%pyproject_install
|
||
|
|
||
|
|
||
|
#check
|
||
|
# the tests currently only work within actual tox and with various Python
|
||
|
# versions installed, so we skip them.
|
||
|
|
||
|
|
||
|
%files -n python3-%{pypi_name}
|
||
|
%license LICENSE
|
||
|
%doc README.rst
|
||
|
%{python3_sitelib}/%{pypi_under}/
|
||
|
%{python3_sitelib}/%{pypi_under}-%{version}.dist-info/
|
||
|
|
||
|
|
||
|
%changelog
|
||
|
* Wed Jul 24 2019 Miro Hrončok <mhroncok@redhat.com> - 0.0.1-1
|
||
|
- Initial package
|