14
0
forked from pool/python-twine

Accepting request 788516 from home:pgajdos:python

sorry, forgot about it

OBS-URL: https://build.opensuse.org/request/show/788516
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-twine?expand=0&rev=27
This commit is contained in:
Tomáš Chvátal
2020-03-26 11:28:03 +00:00
committed by Git OBS Bridge
parent 5ccc792dc5
commit 004e910e3e
4 changed files with 29 additions and 12 deletions

View File

@@ -17,21 +17,26 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%bcond_without python2
%define skip_python2 1
Name: python-twine
Version: 1.15.0
Version: 3.1.1
Release: 0
Summary: Collection of utilities for interacting with PyPI
License: Apache-2.0
URL: https://github.com/pypa/twine
Source: https://files.pythonhosted.org/packages/source/t/twine/twine-%{version}.tar.gz
BuildRequires: %{python_module jaraco.envs}
BuildRequires: %{python_module keyring}
BuildRequires: %{python_module munch}
BuildRequires: %{python_module pkginfo >= 1.4.2}
BuildRequires: %{python_module portend}
BuildRequires: %{python_module pretend}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module readme_renderer >= 21.0}
BuildRequires: %{python_module requests >= 2.17.0}
BuildRequires: %{python_module requests-toolbelt >= 0.8.0}
BuildRequires: %{python_module setuptools >= 0.7.0}
BuildRequires: %{python_module setuptools_scm >= 1.15}
BuildRequires: %{python_module tqdm >= 4.14}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
@@ -44,12 +49,6 @@ Requires: python-tqdm >= 4.14
Requires(post): update-alternatives
Requires(postun): update-alternatives
Recommends: python-keyring
%if %{with python2}
BuildRequires: python2-pyblake2
%endif
%ifpython2
Recommends: python-pyblake2
%endif
%python_subpackages
%description
@@ -72,7 +71,10 @@ sed -i '1s/^#!.*//' twine/__main__.py
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%pytest
# do not run integration tests
rm tests/test_integration.py
# test_check_status_code_for_wrong_repo_url is online test
%pytest -k 'not test_check_status_code_for_wrong_repo_url'
%post
%python_install_alternative twine