- Switch to github archive to have test fixtures

- Enable tests

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-twine?expand=0&rev=13
This commit is contained in:
Tomáš Chvátal 2018-05-21 09:26:10 +00:00 committed by Git OBS Bridge
parent c5af6d116e
commit 752dfac0a1
4 changed files with 19 additions and 4 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,9 @@
-------------------------------------------------------------------
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

View File

@ -24,8 +24,14 @@ 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.4.2
Requires: python-requests >= 2.17.0
@ -56,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:2fd9a4d9ff0bcacf41fdc40c8cb0cfaef1f1859457c9653fd1b92237cc4e9f25
size 44683