2019-10-14 10:51:06 +00:00
|
|
|
#
|
|
|
|
|
# spec file for package python-nox
|
|
|
|
|
#
|
2020-03-30 10:32:41 +00:00
|
|
|
# Copyright (c) 2020 SUSE LLC
|
2019-10-14 10:51:06 +00:00
|
|
|
#
|
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
|
|
|
|
%define skip_python2 1
|
|
|
|
|
Name: python-nox
|
- Update to version 2020.5.24:
* Add new options for `venv_backend`, including the ability to set the
backend globally. (#326)
* Fix various typos in the documentation. (#325, #326, #281)
* Add `session.create_tmp`. (#320)
* Place all of Nox's command-line options into argparse groups. (#306)
* Add the `--pythons` command-line option to allow specifying which versions
of Python to run. (#304)
* Add a significant amount of type annotations. (#297, #294, #290, #282, #274)
* Stop building universal wheels since we don't support Python 2. (#293)
* Add the ability to specify additional options for the virtualenv backend using `venv_params`. (#280)
* Prefer `importlib.metadata` for metadata loading, removing our dependency on `pkg_resources`. (#277)
* Add OmegaConf and Hydra to list of projects that use Nox. (#279)
* Use a more accurate error message, along with the cause, if loading of noxfile runs into error. (#272)
* Test against Python 3.8. (#270)
* Fix a syntax highlighting mistake in configuration docs. (#268)
* Use `stdout.isatty` to finalize color instead of `stdin.isatty`. (#267)
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-nox?expand=0&rev=9
2020-06-17 06:24:47 +00:00
|
|
|
Version: 2020.5.24
|
2019-10-14 10:51:06 +00:00
|
|
|
Release: 0
|
|
|
|
|
Summary: Flexible test automation
|
|
|
|
|
License: Apache-2.0
|
|
|
|
|
Group: Development/Languages/Python
|
|
|
|
|
URL: https://nox.thea.codes
|
|
|
|
|
Source: https://github.com/theacodes/nox/archive/%{version}.tar.gz#/nox-%{version}.tar.gz
|
|
|
|
|
BuildRequires: %{python_module base >= 3.5}
|
|
|
|
|
BuildRequires: %{python_module setuptools}
|
|
|
|
|
BuildRequires: fdupes
|
|
|
|
|
BuildRequires: python-rpm-macros
|
|
|
|
|
Requires: python-argcomplete >= 1.9.4
|
|
|
|
|
Requires: python-colorlog >= 2.6.1
|
|
|
|
|
Requires: python-py >= 1.4.0
|
2020-03-30 10:32:41 +00:00
|
|
|
Requires: python-setuptools
|
2019-10-14 10:51:06 +00:00
|
|
|
Requires: python-virtualenv >= 14.0.0
|
2020-05-21 18:33:47 +00:00
|
|
|
Requires(post): update-alternatives
|
|
|
|
|
Requires(postun): update-alternatives
|
2019-10-14 10:51:06 +00:00
|
|
|
Suggests: python-Jinja2
|
|
|
|
|
Suggests: python-tox
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
# SECTION test requirements
|
|
|
|
|
BuildRequires: %{python_module Flask}
|
|
|
|
|
BuildRequires: %{python_module argcomplete >= 1.9.4}
|
|
|
|
|
BuildRequires: %{python_module colorlog >= 2.6.1}
|
|
|
|
|
BuildRequires: %{python_module contexter}
|
|
|
|
|
BuildRequires: %{python_module py >= 1.4.0}
|
|
|
|
|
BuildRequires: %{python_module pytest}
|
|
|
|
|
BuildRequires: %{python_module tox}
|
|
|
|
|
BuildRequires: %{python_module virtualenv >= 14.0.0}
|
|
|
|
|
# Missing deps conda
|
|
|
|
|
# /SECTION
|
|
|
|
|
%python_subpackages
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
Flexible test automation.
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q -n nox-%{version}
|
2019-10-16 08:22:45 +00:00
|
|
|
# Remove upper pins on dependencies
|
|
|
|
|
sed -Ei 's/,? ?<=?[0-9][0-9.]*//' setup.py
|
2019-10-14 10:51:06 +00:00
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%python_build
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%python_install
|
2020-05-21 18:33:47 +00:00
|
|
|
%python_clone -a %{buildroot}%{_bindir}/tox-to-nox
|
|
|
|
|
%python_clone -a %{buildroot}%{_bindir}/nox
|
2019-10-14 10:51:06 +00:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
%pytest
|
|
|
|
|
|
2020-05-21 18:33:47 +00:00
|
|
|
%post
|
|
|
|
|
%python_install_alternative tox-to-nox
|
|
|
|
|
%python_install_alternative nox
|
|
|
|
|
|
|
|
|
|
%postun
|
|
|
|
|
%python_uninstall_alternative tox-to-nox
|
|
|
|
|
%python_uninstall_alternative nox
|
|
|
|
|
|
2019-10-14 10:51:06 +00:00
|
|
|
%files %{python_files}
|
|
|
|
|
%doc README.rst
|
|
|
|
|
%license LICENSE
|
2020-05-21 18:33:47 +00:00
|
|
|
%python_alternative %{_bindir}/nox
|
|
|
|
|
%python_alternative %{_bindir}/tox-to-nox
|
2019-10-14 10:51:06 +00:00
|
|
|
%{python_sitelib}/*
|
|
|
|
|
|
|
|
|
|
%changelog
|