Blame SPECS/python-tox.spec

aa255a
# Tests are disbaled by default, they require:
aa255a
#  a) tested tox to be installed
aa255a
#  b) internet connection
aa255a
# To test, do the following:
aa255a
#  1) Build --without tests (the default)
aa255a
#     (e.g. fedpkg mockbuild)
aa255a
#  2) Install the built package
aa255a
#     (e.g. mock install ./results_python-tox/.../python3-tox-...rpm)
aa255a
#  3) Build again --with tests (and internet connection)
aa255a
#     (e.g. fedpkg mockbuild --enable-network --no-clean-all --with tests)
aa255a
# The Fedora CI tests do this.
aa255a
%bcond_with tests
aa255a
aa255a
Name:           python-tox
aa255a
Version:        3.23.0
aa255a
Release:        2%{?dist}
aa255a
Summary:        Virtualenv-based automation of test activities
aa255a
aa255a
License:        MIT
aa255a
URL:            https://tox.readthedocs.io/
aa255a
Source0:        %{pypi_source tox}
aa255a
aa255a
# Allow building with setuptools_scm 6+
aa255a
Patch1:         https://github.com/tox-dev/tox/commit/a91c0935.patch
aa255a
aa255a
BuildArch:      noarch
aa255a
aa255a
BuildRequires:  python3-devel
aa255a
BuildRequires:  pyproject-rpm-macros
aa255a
aa255a
%if %{with tests}
aa255a
BuildRequires:  /usr/bin/gcc
aa255a
BuildRequires:  /usr/bin/git
aa255a
BuildRequires:  /usr/bin/pip
aa255a
BuildRequires:  /usr/bin/poetry
aa255a
BuildRequires:  /usr/bin/pytest
aa255a
BuildRequires:  /usr/bin/python
aa255a
BuildRequires:  libffi-devel
aa255a
# The tests only work if the tested tox is installed :(
aa255a
BuildRequires:  tox = %{version}-%{release}
aa255a
%endif
aa255a
aa255a
%global _description %{expand:
aa255a
Tox as is a generic virtualenv management and test command line tool you
aa255a
can use for:
aa255a
aa255a
 - checking your package installs correctly with different Python versions
aa255a
   and interpreters
aa255a
 - running your tests in each of the environments, configuring your test tool
aa255a
   of choice
aa255a
 - acting as a frontend to Continuous Integration servers, greatly reducing
aa255a
   boilerplate and merging CI and shell-based testing.}
aa255a
aa255a
%description %_description
aa255a
aa255a
aa255a
%package -n tox
aa255a
Summary:        %{summary}
aa255a
aa255a
# Recommend "all the Pythons"
aa255a
# Why? Tox exists to enable developers to test libraries against various Python
aa255a
# versions, with just "dnf install tox" and a config file.
aa255a
# See: https://developer.fedoraproject.org/tech/languages/python/python-installation.html#using-virtualenv
aa255a
# Tox itself runs on the system python3 (i.e. %%{python3_version},
aa255a
# however it launches other Python versions as subprocesses.
aa255a
# It recommends all Python versions it supports. (This is an exception to
aa255a
# the rule that Fedora packages may not require the alternative interpreters.)
aa255a
Recommends:     python2.7
aa255a
Recommends:     python3.5
aa255a
Recommends:     python3.6
aa255a
Recommends:     python3.7
aa255a
Recommends:     python3.8
aa255a
Recommends:     python3.9
aa255a
Recommends:     pypy2-devel
aa255a
Recommends:     pypy3-devel
aa255a
Recommends:     python2-devel
aa255a
Recommends:     python3-devel
aa255a
aa255a
# Replace detox (no longer supported, functionality is now in tox)
aa255a
# Remove this once Fedora 32 goes EOL
aa255a
Obsoletes:      python3-detox < 0.19-5
aa255a
aa255a
%py_provides    python3-tox
aa255a
# Remove this once Fedora 36 goes EOL:
aa255a
Obsoletes:      python3-tox < 3.21.0-2
aa255a
aa255a
%description -n tox %_description
aa255a
aa255a
aa255a
%prep
aa255a
%autosetup -p1 -n tox-%{version}
aa255a
aa255a
aa255a
%generate_buildrequires
aa255a
%pyproject_buildrequires %{?with_tests:-x testing}
aa255a
aa255a
aa255a
%build
aa255a
%pyproject_wheel
aa255a
aa255a
aa255a
%install
aa255a
%pyproject_install
aa255a
%pyproject_save_files tox
aa255a
aa255a
aa255a
%if %{with tests}
aa255a
%check
aa255a
%pytest -n auto
aa255a
%endif
aa255a
aa255a
aa255a
%files -n tox -f %{pyproject_files}
aa255a
%{_bindir}/tox
aa255a
%{_bindir}/tox-quickstart
aa255a
aa255a
aa255a
%changelog
aa255a
* Tue Mar 30 2021 Miro Hrončok <mhroncok@redhat.com> - 3.23.0-2
aa255a
- Allow building with setuptools_scm 6+
aa255a
aa255a
* Wed Mar 17 2021 Miro Hrončok <mhroncok@redhat.com> - 3.23.0-1
aa255a
- Update to 3.23.0
aa255a
aa255a
* Tue Feb 02 2021 Miro Hrončok <mhroncok@redhat.com> - 3.21.4-1
aa255a
- Update to 3.21.4
aa255a
aa255a
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 3.21.0-3
aa255a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
aa255a
aa255a
* Fri Jan 08 2021 Miro Hrončok <mhroncok@redhat.com> - 3.21.0-2
aa255a
- Rename the installable package to "tox"
aa255a
aa255a
* Fri Jan 08 2021 Miro Hrončok <mhroncok@redhat.com> - 3.21.0-1
aa255a
- Update to 3.21.0
aa255a
aa255a
* Mon Sep 07 2020 Tomas Hrnciar <thrnciar@redhat.com> - 3.20.0-1
aa255a
- Update to 3.20.0
aa255a
- Fixes rhbz#1874601
aa255a
aa255a
* Fri Aug 07 2020 Miro Hrončok <mhroncok@redhat.com> - 3.19.0-1
aa255a
- Update to 3.19.0
aa255a
- Fixes rhbz#1861313
aa255a
aa255a
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.18.0-2
aa255a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
aa255a
aa255a
* Thu Jul 23 2020 Miro Hrončok <mhroncok@redhat.com> - 3.18.0-1
aa255a
- Update to 3.18.0
aa255a
- Fixes rhbz#1859875
aa255a
aa255a
* Tue Jul 14 2020 Miro Hrončok <mhroncok@redhat.com> - 3.17.0-1
aa255a
- Update to 3.17.0
aa255a
- Fixes rhbz#1856985
aa255a
aa255a
* Thu Jul 09 2020 Miro Hrončok <mhroncok@redhat.com> - 3.16.1-1
aa255a
- Update to 3.16.1
aa255a
- Fixes rhbz#1851519
aa255a
aa255a
* Mon Jun 08 2020 Miro Hrončok <mhroncok@redhat.com> - 3.15.2-1
aa255a
- Update to 3.15.2 (#1844689)
aa255a
aa255a
* Mon Jun 01 2020 Charalampos Stratakis <cstratak@redhat.com> - 3.15.1-1
aa255a
- Update to 3.15.1 (#1838137)
aa255a
aa255a
* Sat May 23 2020 Miro Hrončok <mhroncok@redhat.com> - 3.15.0-2
aa255a
- Rebuilt for Python 3.9
aa255a
aa255a
* Wed May 13 2020 Tomas Hrnciar <thrnciar@redhat.com> - 3.15.0-1
aa255a
- Update to 3.15.0
aa255a
- Stop recommending Python 3.4
aa255a
aa255a
* Thu Mar 19 2020 Tomas Hrnciar <thrnciar@redhat.com> - 3.14.6-1
aa255a
- Update to 3.14.6
aa255a
aa255a
* Thu Feb 06 2020 Miro Hrončok <mhroncok@redhat.com> - 3.14.3-1
aa255a
- Update to 3.14.3 (#1725939)
aa255a
- Fix invocation with Python 3.9 (#1798929)
aa255a
- Recommend Python 3.9
aa255a
aa255a
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.13.2-5
aa255a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
aa255a
aa255a
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 3.13.2-4
aa255a
- Rebuilt for Python 3.8.0rc1 (#1748018)
aa255a
aa255a
* Fri Aug 16 2019 Miro Hrončok <mhroncok@redhat.com> - 3.13.2-3
aa255a
- Rebuilt for Python 3.8
aa255a
aa255a
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.13.2-2
aa255a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
aa255a
aa255a
* Mon Jul 08 2019 Miro Hrončok <mhroncok@redhat.com> - 3.13.2-1
aa255a
- Update to 3.13.2 (#1699032)
aa255a
aa255a
* Tue Apr 30 2019 Miro Hrončok <mhroncok@redhat.com> - 3.9.0-1
aa255a
- Update to 3.9.0
aa255a
- Obsolete detox
aa255a
- License is MIT
aa255a
aa255a
* Fri Feb 15 2019 Lumír Balhar <lbalhar@redhat.com> - 3.5.3-3
aa255a
- Recommend Python 3.8
aa255a
aa255a
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.5.3-2
aa255a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
aa255a
aa255a
* Thu Nov 22 2018 Artem Goncharov <artem.goncharov@gmail.com> - 3.5.3-1
aa255a
- Upgrade to 3.5.3 version
aa255a
aa255a
* Mon Nov 19 2018 Artem Goncharov <artem.goncharov@gmail.com> - 3.4.0-1
aa255a
- Upgrade to 3.4.0 version (#1652657)
aa255a
aa255a
* Thu Nov 01 2018 Matthias Runge <mrunge@redhat.com> - 3.0.0-6
aa255a
- remove and revert the change to recommend python 2.7 (rhbz#1645025)
aa255a
aa255a
* Tue Aug 28 2018 Miro Hrončok <mhroncok@redhat.com> - 3.0.0-4
aa255a
- Don't recommend Python 2.6, it doesn't work with tox 3
aa255a
aa255a
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.0-3
aa255a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
aa255a
aa255a
* Mon Jul 02 2018 Miro Hrončok <mhroncok@redhat.com> - 3.0.0-2
aa255a
- Rebuilt for Python 3.7
aa255a
aa255a
* Mon Jul 02 2018 Matthias Runge <mrunge@redhat.com> - 3.0.0-1
aa255a
- upgrade to 3.0.0
aa255a
aa255a
* Sun Jun 17 2018 Miro Hrončok <mhroncok@redhat.com> - 2.9.1-7
aa255a
- Rebuilt for Python 3.7
aa255a
aa255a
* Tue May 15 2018 Miro Hrončok <mhroncok@redhat.com> - 2.9.1-6
aa255a
- Remove the python2 version once again
aa255a
- Stop recommending python33 (it's retired)
aa255a
aa255a
* Mon May 07 2018 Miro Hrončok <mhroncok@redhat.com> - 2.9.1-5
aa255a
- Add python2 back, see #1575667
aa255a
aa255a
* Mon Apr 30 2018 Miro Hrončok <mhroncok@redhat.com> - 2.9.1-4
aa255a
- Remove the python2 version
aa255a
aa255a
* Thu Mar 15 2018 Miro Hrončok <mhroncok@redhat.com> - 2.9.1-3
aa255a
- Switch to automatic dependency generator (also fixes #1556164)
aa255a
- Recommend python37
aa255a
aa255a
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.9.1-2
aa255a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
aa255a
aa255a
* Mon Jan 29 2018 Matthias Runge <mrunge@redhat.com> - 2.9.1-1
aa255a
- update to 2.9.1
aa255a
aa255a
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.7.0-2
aa255a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
aa255a
aa255a
* Tue Apr 25 2017 Matthias Runge <mrunge@redhat.com> - 2.7.0-1
aa255a
- upgrade to 2.7.0
aa255a
aa255a
* Sun Apr 09 2017 Miro Hrončok <mhroncok@redhat.com> - 2.3.1-8
aa255a
- Recommend the devel subpackages of Pythons (so tox works with extension modules)
aa255a
aa255a
* Tue Feb 14 2017 Miro Hrončok <mhroncok@redhat.com> - 2.3.1-7
aa255a
- Recommend python36
aa255a
aa255a
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.1-6
aa255a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
aa255a
aa255a
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 2.3.1-5
aa255a
- Rebuild for Python 3.6
aa255a
aa255a
* Mon Oct 10 2016 Miro Hrončok <mhroncok@redhat.com> - 2.3.1-4
aa255a
- Recommend "all the Pythons"
aa255a
aa255a
* Thu Aug 11 2016 Miro Hrončok <mhroncok@redhat.com> - 2.3.1-3
aa255a
- /usr/bin/tox is Python3
aa255a
- Python 2 subpackage is python2-tox
aa255a
- Run the tests also on Python 3
aa255a
- Update Source URL and URL
aa255a
- Use modern macros
aa255a
- Get rid of Fedora 17 checks
aa255a
aa255a
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.3.1-2
aa255a
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
aa255a
aa255a
* Mon Feb 29 2016 Matthias Runge <mrunge@redhat.com> - 2.3.1-1
aa255a
- update to 2.3.1
aa255a
aa255a
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.1-4
aa255a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
aa255a
aa255a
* Thu Nov 12 2015 Kalev Lember <klember@redhat.com> - 2.1.1-3
aa255a
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
aa255a
aa255a
* Tue Aug 25 2015 Matthias Runge <mrunge@redhat.com> - 2.1.1-2
aa255a
- add requirement: python-pluggy
aa255a
aa255a
* Tue Aug 18 2015 Matthias Runge <mrunge@redhat.com> - 2.1.1-1
aa255a
- update to 2.1.1
aa255a
aa255a
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.8.1-2
aa255a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
aa255a
aa255a
* Tue Dec 16 2014 Matthias Runge <mrunge@redhat.com> - 1.8.1-1
aa255a
- update to 1.8.1
aa255a
aa255a
* Wed Aug 13 2014 Matthias Runge <mrunge@redhat.com> - 1.7.1-3
aa255a
- Fix ConfigError: ConfigError: substitution key 'posargs' not found
aa255a
  (rhbz#1127961, rhbz#1128562)
aa255a
aa255a
* Wed Jul 30 2014 Matthias Runge <mrunge@redhat.com> - 1.7.1-2
aa255a
- require virtualenv >= 1.11.2 (rhbz#1122603)
aa255a
aa255a
* Tue Jul 08 2014 Matthias Runge <mrunge@redhat.com> - 1.7.1-1
aa255a
- update to 1.7.1 (rhbz#111797)
aa255a
aa255a
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.6.1-2
aa255a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
aa255a
aa255a
* Tue Sep 24 2013 Matthias Runge <mrunge@redhat.com> - 1.6.1-1
aa255a
- update to 1.6.1
aa255a
aa255a
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.2-9
aa255a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
aa255a
aa255a
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.2-8
aa255a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
aa255a
aa255a
* Wed Nov 14 2012 Matthias Runge <mrunge@redhat.com> - 1.4.2-7
aa255a
- add requires python-py, python-virtualenv (rhbz#876246)
aa255a
aa255a
* Thu Oct 18 2012 Matthias Runge <mrunge@redhat.com> - 1.4.2-6
aa255a
- change license to GPLv2+ and MIT
aa255a
aa255a
* Tue Oct 16 2012 Matthias Runge <mrunge@redhat.com> - 1.4.2-5
aa255a
- totally disable python3 support for now
aa255a
aa255a
* Fri Oct 12 2012 Matthias Runge <mrunge@redhat.com> - 1.4.2-4
aa255a
- conditionalize checks, as internet connection required, not available on koji
aa255a
aa255a
* Thu Oct 11 2012 Matthias Runge <mrunge@redhat.com> - 1.4.2-3
aa255a
- buildrequirement: virtualenv
aa255a
- disable python3-tests because of missing build-requirement python3-virtualenv
aa255a
aa255a
* Wed Oct 10 2012 Matthias Runge <mrunge@redhat.com> - 1.4.2-2
aa255a
- include tests
aa255a
aa255a
* Tue Oct 09 2012 Matthias Runge <mrunge@redhat.com> - 1.4.2-1
aa255a
- initial packaging