Accepting request 610896 from devel:languages:python

- Recommend the pyblake2 on python2 as it is included in py3.6+
  but was never in py2

- Switch to github archive to have test fixtures
- Enable tests

- adjust requirements

- update to version 1.11.0
  - see https://github.com/pypa/twine/blob/master/docs/changelog.rst

OBS-URL: https://build.opensuse.org/request/show/610896
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-twine?expand=0&rev=4
This commit is contained in:
Dominique Leuenberger 2018-05-29 14:48:46 +00:00 committed by Git OBS Bridge
commit 02bbb784c8
4 changed files with 42 additions and 8 deletions

3
1.11.0.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:fdff00d235b964a9679fc0c127228eb83fb82b59552efb130cd878ace39f3473
size 55301

View File

@ -1,3 +1,26 @@
-------------------------------------------------------------------
Mon May 21 09:30:29 UTC 2018 - tchvatal@suse.com
- Recommend the pyblake2 on python2 as it is included in py3.6+
but was never in py2
-------------------------------------------------------------------
Mon May 21 09:23:53 UTC 2018 - tchvatal@suse.com
- Switch to github archive to have test fixtures
- Enable tests
-------------------------------------------------------------------
Sat May 19 09:44:51 UTC 2018 - hpj@urpla.net
- adjust requirements
-------------------------------------------------------------------
Fri May 18 12:16:54 UTC 2018 - hpj@urpla.net
- update to version 1.11.0
- see https://github.com/pypa/twine/blob/master/docs/changelog.rst
-------------------------------------------------------------------
Thu May 17 08:26:25 UTC 2018 - tchvatal@suse.com

View File

@ -18,22 +18,30 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-twine
Version: 1.9.1
Version: 1.11.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
Source: https://github.com/pypa/twine/archive/%{version}.tar.gz
BuildRequires: %{python_module pkginfo >= 1.4.2}
BuildRequires: %{python_module pretend}
BuildRequires: %{python_module pytest}
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 tqdm >= 4.14}
BuildRequires: python-rpm-macros
Requires: python-pkginfo >= 1.0
Requires: python-pkginfo >= 1.4.2
Requires: python-requests >= 2.17.0
Requires: python-requests-toolbelt >= 0.8.0
Requires: python-tqdm >= 4.11
Requires: python-setuptools >= 0.7.0
Requires: python-tqdm >= 4.14
Requires(post): update-alternatives
Requires(postun): update-alternatives
Recommends: python-keyring
%if 0%{?suse_version} <= 1320
%ifpython2
Recommends: python-pyblake2
%endif
%python_subpackages
@ -54,6 +62,9 @@ sed -i '1s/^#!.*//' twine/__main__.py
%python_install
%python_clone -a %{buildroot}%{_bindir}/twine
%check
%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} py.test-%{$python_version}
%post
%python_install_alternative twine

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:caa45b7987fc96321258cd7668e3be2ff34064f5c66d2d975b641adca659c1ab
size 36266