15
0
forked from pool/python-nox
Files
python-nox/python-nox.spec
Tomáš Chvátal 2ff2729955 Accepting request 738717 from home:jayvdb:branches:devel:languages:python
- Remove upper version specifiers preventing use with latest colorlog

colorlog bump approved upstream https://github.com/theacodes/nox/pull/257

But they will keep upper bounds pins so unfortunately the hack will likely be needed ongoing.

OBS-URL: https://build.opensuse.org/request/show/738717
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-nox?expand=0&rev=3
2019-10-16 08:22:45 +00:00

79 lines
2.3 KiB
RPMSpec

#
# spec file for package python-nox
#
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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
Version: 2019.8.20
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
Requires: python-virtualenv >= 14.0.0
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}
# Remove upper pins on dependencies
sed -Ei 's/,? ?<=?[0-9][0-9.]*//' setup.py
%build
%python_build
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%pytest
%files %{python_files}
%doc README.rst
%license LICENSE
%python3_only %{_bindir}/nox
%python3_only %{_bindir}/tox-to-nox
%{python_sitelib}/*
%changelog