forked from pool/python-twine
- Fix build without python2
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-twine?expand=0&rev=26
This commit is contained in:
committed by
Git OBS Bridge
parent
ebdb688371
commit
5ccc792dc5
@@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Mar 12 07:53:47 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com>
|
||||
|
||||
- Fix build without python2
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Feb 25 11:22:38 UTC 2020 - Ondřej Súkup <mimi.vx@gmail.com>
|
||||
|
||||
|
@@ -17,12 +17,12 @@
|
||||
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
%bcond_without python2
|
||||
Name: python-twine
|
||||
Version: 1.15.0
|
||||
Release: 0
|
||||
Summary: Collection of utilities for interacting with PyPI
|
||||
License: Apache-2.0
|
||||
Group: Development/Languages/Python
|
||||
URL: https://github.com/pypa/twine
|
||||
Source: https://files.pythonhosted.org/packages/source/t/twine/twine-%{version}.tar.gz
|
||||
BuildRequires: %{python_module pkginfo >= 1.4.2}
|
||||
@@ -44,9 +44,10 @@ Requires: python-tqdm >= 4.14
|
||||
Requires(post): update-alternatives
|
||||
Requires(postun): update-alternatives
|
||||
Recommends: python-keyring
|
||||
%ifpython2
|
||||
# tests/test_package.py will fail without pyblake2
|
||||
%if %{with python2}
|
||||
BuildRequires: python2-pyblake2
|
||||
%endif
|
||||
%ifpython2
|
||||
Recommends: python-pyblake2
|
||||
%endif
|
||||
%python_subpackages
|
||||
|
Reference in New Issue
Block a user