Convert to pyproject macros, update description, URL, .gitignore...
This commit is contained in:
parent
8e026ac0cd
commit
c6fbfeb07d
18
.gitignore
vendored
18
.gitignore
vendored
@ -1,16 +1,2 @@
|
|||||||
/six-1.0.0.tar.gz
|
/six-*.tar.gz
|
||||||
/six-1.1.0.tar.gz
|
/six-*/
|
||||||
/six-1.2.0.tar.gz
|
|
||||||
/six-1.3.0.tar.gz
|
|
||||||
/six-1.4.1.tar.gz
|
|
||||||
/six-1.5.2.tar.gz
|
|
||||||
/six-1.6.1.tar.gz
|
|
||||||
/six-1.7.3.tar.gz
|
|
||||||
/six-1.8.0.tar.gz
|
|
||||||
/six-1.9.0.tar.gz
|
|
||||||
/six-1.10.0.tar.gz
|
|
||||||
/six-1.11.0.tar.gz
|
|
||||||
/six-1.12.0.tar.gz
|
|
||||||
/six-1.14.0.tar.gz
|
|
||||||
/six-1.15.0.tar.gz
|
|
||||||
/six-1.16.0.tar.gz
|
|
||||||
|
@ -1,32 +1,29 @@
|
|||||||
# tests are enabled by default
|
# tests are enabled by default
|
||||||
%bcond_without tests
|
%bcond_without tests
|
||||||
|
|
||||||
%global python_wheelname six-%{version}-py2.py3-none-any.whl
|
|
||||||
|
|
||||||
Name: python-six
|
Name: python-six
|
||||||
Version: 1.16.0
|
Version: 1.16.0
|
||||||
Release: 1%{?dist}
|
Release: 1%{?dist}
|
||||||
Summary: Python 2 and 3 compatibility utilities
|
Summary: Python 2 and 3 compatibility utilities
|
||||||
|
|
||||||
License: MIT
|
License: MIT
|
||||||
URL: https://pypi.python.org/pypi/six
|
URL: https://github.com/benjaminp/six
|
||||||
Source0: %{pypi_source six}
|
Source0: %{pypi_source six}
|
||||||
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
BuildRequires: python%{python3_pkgversion}-devel
|
BuildRequires: python%{python3_pkgversion}-devel
|
||||||
BuildRequires: python%{python3_pkgversion}-setuptools
|
BuildRequires: pyproject-rpm-macros
|
||||||
BuildRequires: python%{python3_pkgversion}-pip
|
|
||||||
BuildRequires: python%{python3_pkgversion}-wheel
|
|
||||||
|
|
||||||
%if %{with tests}
|
%if %{with tests}
|
||||||
BuildRequires: python3-pytest
|
BuildRequires: python%{python3_pkgversion}-pytest
|
||||||
BuildRequires: python3-tkinter
|
BuildRequires: python%{python3_pkgversion}-tkinter
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%global _description %{expand:
|
%global _description %{expand:
|
||||||
%{name} provides simple utilities for wrapping over differences between
|
Six is a Python 2 and 3 compatibility library. It provides utility functions
|
||||||
Python 2 and Python 3.}
|
for smoothing over the differences between the Python versions with the goal
|
||||||
|
of writing Python code that is compatible on both Python versions.}
|
||||||
|
|
||||||
%description %{_description}
|
%description %{_description}
|
||||||
|
|
||||||
@ -41,24 +38,28 @@ Summary: %{summary}
|
|||||||
%autosetup -p1 -n six-%{version}
|
%autosetup -p1 -n six-%{version}
|
||||||
|
|
||||||
|
|
||||||
|
%generate_buildrequires
|
||||||
|
%pyproject_buildrequires -r
|
||||||
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%py3_build_wheel
|
%pyproject_wheel
|
||||||
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%py3_install_wheel %{python_wheelname}
|
%pyproject_install
|
||||||
|
%pyproject_save_files six
|
||||||
|
|
||||||
|
|
||||||
%if %{with tests}
|
%if %{with tests}
|
||||||
%check
|
%check
|
||||||
%pytest -rfsxX test_six.py
|
%pytest
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
|
||||||
%files -n python%{python3_pkgversion}-six
|
%files -n python%{python3_pkgversion}-six -f %{pyproject_files}
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
%doc README.rst documentation/index.rst
|
%doc README.rst documentation/index.rst
|
||||||
%{python3_sitelib}/six-*.dist-info/
|
|
||||||
%pycached %{python3_sitelib}/six.py
|
|
||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
Reference in New Issue
Block a user